Commit f265dbf30627d221dc53534d57b52290576ec9dd

Authored by Fernando Brito
1 parent a27b6478
Exists in master and in 2 other branches v2, wikilibras

Fix layout on registration form

app/views/devise/registrations/new.html.haml
... ... @@ -2,25 +2,28 @@
2 2 %h2 Cadastrar Usuário
3 3  
4 4 .row-fluid
5   - .span6.well.offset3
6   - = html5_video_tag("/video.mp4", 'cadastro-video', 'video-instructions')
  5 + .span5.well
  6 + = html5_video_tag('/system/videos/cadastro.mp4', 'video-vlibras', 'video-instructions', :autoplay => 'autoplay')
7 7  
8   -.row-fluid
9   - .well
  8 + .span7.well
10 9 %h2 Dados do Usuário
11 10  
12 11 = simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f|
13   - = f.error_notification
14   - .span3
15   - = f.input :name, :label => "Nome", :required => true, :autofocus => true
16   - = f.input :email, :required => true
17   - = f.input :password, :required => true, :label => "Senha"
18   - = f.input :password_confirmation, :required => true, :label => "Confirmar Senha"
19   - .span3
20   - = f.input :address, :label => "Endereço", :input_html => { :rows => 4 }
21   - = f.input :zipcode,:label => "CEP"
22   - = f.input :phone, :label => "Telefone"
23   - .span3
24   - %center
25   - %p= f.button :submit, "Cadastrar", :class => "btn btn-large btn-primary"
26   - = render :partial => "devise/shared/links"
27 12 \ No newline at end of file
  13 +
  14 + .row-fluid
  15 + = f.error_notification
  16 + .span6
  17 + = f.input :name, :label => "Nome", :required => true, :autofocus => true
  18 + = f.input :email, :required => true
  19 + = f.input :password, :required => true, :label => "Senha"
  20 + = f.input :password_confirmation, :required => true, :label => "Confirmar Senha"
  21 + .span6
  22 + = f.input :address, :label => "Endereço", :input_html => { :rows => 4 }
  23 + = f.input :zipcode,:label => "CEP"
  24 + = f.input :phone, :label => "Telefone"
  25 +
  26 + .row{ :style => "margin-top: 20px;" }
  27 + .span12
  28 + %center
  29 + %p= f.button :submit, "Cadastrar", :class => "btn btn-large btn-primary"
  30 + = render :partial => "devise/shared/links"
... ...
app/views/devise/sessions/new.html.haml
... ... @@ -9,8 +9,4 @@
9 9 = f.input :password, :label => "Senha", :required => false
10 10 = f.input :remember_me, :label => "Lembre-me da senha", :as => :boolean if devise_mapping.rememberable?
11 11 = f.button :submit, "Entrar", :class => 'btn btn-primary'
12   - = render "devise/shared/links"
13   -
14   -
15   -= javascript_include_tag "plugins/flowplayer-3.2.8.min"
16   -= javascript_include_tag "site/user"
17 12 \ No newline at end of file
  13 + = render "devise/shared/links"
18 14 \ No newline at end of file
... ...