Welcome to mirror list, hosted at ThFree Co, Russian Federation.

new.html.erb « registrations « views « app - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b9421b0e4a6fc16cd84e8293929577e88d18e5c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<div id="registration">
  <div class="container">

    <div class="row">
        <div class="span4" id="image-container">
            <%= image_tag('signupimages@2x_mini.jpg', :id => "collage") %>
        </div>

        <div class="span8">
            <h1 id="create-something-text">
              HEY,
              <br/>
              MAKE
              <br/>
              SOMETHING.
            </h1>

            <h3 id="diaspora-hearts">
              <3 Diaspora*
            </h3>

            <h4 id="sign-up-text">
              SIGN UP
            </h4>

            <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => {:class => "form-horizontal block-form", :autocomplete => "off"}, :validate => true) do |f| %>
                <fieldset>
                  <div class="control-group">
                    <label class="control-label" for="user_email">
                        EMAIL
                    </label>

                    <div class="controls">
                        <%= f.email_field :email, :validate => {:presence => true}, :placeholder => "luke@hoth.net", :title => t('registrations.new.enter_email'), :required => true %>
                    </div>
                  </div>

                  <div class="control-group">
                      <label class="control-label" for="user_username">
                        USERNAME
                      </label>

                      <div class="controls">
                        <%= f.text_field :username, :validate => {:presence => true}, :placeholder => "jedi_guy", :title => t('registrations.new.enter_username'), :required => true, :pattern => "[A-Za-z0-9_]+" %>
                      </div>
                  </div>

                  <div class="control-group">
                    <label class="control-label" for="user_password">
                        PASSWORD
                    </label>

                    <div class="controls">
                        <%= f.password_field :password, :validate => {:presence => true}, :placeholder => "••••••••", :title => t('registrations.new.enter_password'), :required => true, :pattern => "......+" %>
                    </div>
                  </div>
                  <%= invite_hidden_tag(invite) %>
                </fieldset>

                <%= f.submit "Continue", :class => "new-btn" %>
            <% end %>
        </div>
    </div>
  </div>
</div>