Nicolae Claudius
13 years ago
14 changed files with 110 additions and 155 deletions
@ -1,8 +0,0 @@ |
|||||||
.danger-zone { |
|
||||||
h3 { |
|
||||||
color: #cc4831; |
|
||||||
} |
|
||||||
p { |
|
||||||
color: #cc4831; |
|
||||||
} |
|
||||||
} |
|
@ -1,29 +0,0 @@ |
|||||||
@import 'compass/css3/border-radius'; |
|
||||||
@import 'compass/css3/text-shadow'; |
|
||||||
|
|
||||||
.content { |
|
||||||
#error_explanation { |
|
||||||
@include border-top-radius(6px); |
|
||||||
border-left: 1px solid #993624; |
|
||||||
border-right: 1px solid #993624; |
|
||||||
border-bottom: 1px solid #993624; |
|
||||||
h2 { |
|
||||||
background-color: #cc4831; |
|
||||||
color: white; |
|
||||||
padding: 10px 15px; |
|
||||||
margin: 0; |
|
||||||
@include text-shadow(none); |
|
||||||
@include border-top-radius(6px); |
|
||||||
} |
|
||||||
} |
|
||||||
.field_with_errors { |
|
||||||
display: inline; |
|
||||||
|
|
||||||
label { |
|
||||||
color: #cc4831; |
|
||||||
} |
|
||||||
input, textarea, select { |
|
||||||
border: 1px solid #cc4831; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
@ -0,0 +1,22 @@ |
|||||||
|
@import 'compass/css3/border-radius'; |
||||||
|
@import 'twitter/bootstrap/variables'; |
||||||
|
@import 'twitter/bootstrap/alerts'; |
||||||
|
|
||||||
|
|
||||||
|
#error_explanation { |
||||||
|
@extend .alert; |
||||||
|
@extend .alert-error; |
||||||
|
h2 { |
||||||
|
color: $errorText; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.field_with_errors { |
||||||
|
display: table; |
||||||
|
label { |
||||||
|
color: $errorText; |
||||||
|
} |
||||||
|
input, textarea, select { |
||||||
|
border: 1px solid $errorBorder;; |
||||||
|
} |
||||||
|
} |
@ -1,48 +1,40 @@ |
|||||||
<div id="box"> |
<div class="page-header"> |
||||||
<div class="block" id="block-login"> |
<h1>Edit <%= resource_name.to_s.humanize %></h1> |
||||||
|
</div> |
||||||
|
|
||||||
<h2>Edit <%= resource_name.to_s.humanize %></h2> |
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), |
||||||
<div class="content login"> |
:html => { :method => :put }) do |f| %> |
||||||
|
<%= devise_error_messages! %> |
||||||
|
|
||||||
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), |
<div><%= f.label :first_name %> |
||||||
:html => { :method => :put }) do |f| %> |
<%= f.text_field :first_name %></div> |
||||||
<%= devise_error_messages! %> |
|
||||||
|
|
||||||
<div><%= f.label :first_name %> |
<div><%= f.label :last_name %> |
||||||
<%= f.text_field :first_name %></div> |
<%= f.text_field :last_name %></div> |
||||||
|
|
||||||
<div><%= f.label :last_name %> |
<div><%= f.label :email %> |
||||||
<%= f.text_field :last_name %></div> |
<%= f.email_field :email %></div> |
||||||
|
|
||||||
<div><%= f.label :email %> |
<div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br /> |
||||||
<%= f.email_field :email %></div> |
<%= f.password_field :password %></div> |
||||||
|
|
||||||
<div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br /> |
<div><%= f.label :password_confirmation %> |
||||||
<%= f.password_field :password %></div> |
<%= f.password_field :password_confirmation %></div> |
||||||
|
|
||||||
<div><%= f.label :password_confirmation %> |
<div><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br /> |
||||||
<%= f.password_field :password_confirmation %></div> |
<%= f.password_field :current_password %></div> |
||||||
|
|
||||||
<div><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br /> |
<div><%= f.submit "Update", class: 'btn-primary' %> |
||||||
<%= f.password_field :current_password %></div> |
<%= link_to "Back", :back %></div> |
||||||
|
<% end %> |
||||||
|
|
||||||
<div><%= f.submit "Update", class: 'btn-primary' %> |
<hr /> |
||||||
<%= link_to "Back", :back %></div> |
|
||||||
<% end %> |
|
||||||
|
|
||||||
<hr /> |
<div class="alert alert-error"> |
||||||
|
<h3>Danger zone</h3> |
||||||
<div class="danger-zone"> |
<%= link_to "Cancel account", registration_path(resource_name), |
||||||
<h3>Danger zone</h3> |
class: 'btn btn-danger pull-right', |
||||||
<p> |
confirm: "All your data will be deleted! Are you sure?", |
||||||
If you cancel your account all your data will be deleted! |
method: :delete %> |
||||||
<%= button_to "Cancel account", registration_path(resource_name), |
<p>If you cancel your account all your data will be deleted!</p> |
||||||
class: 'btn-danger', |
</div> |
||||||
confirm: "All your data will be deleted! Are you sure?", |
|
||||||
method: :delete %> |
|
||||||
</p> |
|
||||||
</div> |
|
||||||
|
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
|
@ -1,33 +1,28 @@ |
|||||||
<div id="box"> |
<div class="page-header"> |
||||||
<div class="block" id="block-login"> |
<h1>Sign up</h1> |
||||||
<h2>Sign up</h2> |
</div> |
||||||
<div class="content login"> |
|
||||||
|
|
||||||
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %> |
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %> |
||||||
<%= devise_error_messages! %> |
<%= devise_error_messages! %> |
||||||
|
|
||||||
<%= honeypot %> |
|
||||||
|
|
||||||
<div><%= f.label :first_name %> |
<%= honeypot %> |
||||||
<%= f.text_field :first_name %></div> |
|
||||||
|
|
||||||
<div><%= f.label :last_name %> |
<div><%= f.label :first_name %> |
||||||
<%= f.text_field :last_name %></div> |
<%= f.text_field :first_name %></div> |
||||||
|
|
||||||
<div><%= f.label :email %> |
<div><%= f.label :last_name %> |
||||||
<%= f.email_field :email %></div> |
<%= f.text_field :last_name %></div> |
||||||
|
|
||||||
<div><%= f.label :password %> |
<div><%= f.label :email %> |
||||||
<%= f.password_field :password %> |
<%= f.email_field :email %></div> |
||||||
|
|
||||||
<div><%= f.label :password_confirmation %> |
<div><%= f.label :password %> |
||||||
<%= f.password_field :password_confirmation %></div> |
<%= f.password_field :password %> |
||||||
|
|
||||||
<div><%= f.submit "Sign up", class: 'btn-primary' %></div> |
<div><%= f.label :password_confirmation %> |
||||||
<% end %> |
<%= f.password_field :password_confirmation %></div> |
||||||
|
|
||||||
<%= render :partial => "devise/shared/links" %> |
<div><%= f.submit "Sign up", class: 'btn-primary' %></div> |
||||||
|
<% end %> |
||||||
|
|
||||||
</div> |
<%= render :partial => "devise/shared/links" %> |
||||||
</div> |
|
||||||
</div> |
|
||||||
|
@ -1,24 +1,19 @@ |
|||||||
<div id="box"> |
<div class="page-header"> |
||||||
<div class="block" id="block-login"> |
<h1>Sign in</h1> |
||||||
<h2>Sign in</h2> |
</div> |
||||||
<div class="content login"> |
|
||||||
|
|
||||||
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %> |
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %> |
||||||
<div><%= f.label :email %> |
<div><%= f.label :email %> |
||||||
<%= f.email_field :email %></div> |
<%= f.email_field :email %></div> |
||||||
|
|
||||||
<div><%= f.label :password %> |
<div><%= f.label :password %> |
||||||
<%= f.password_field :password %></div> |
<%= f.password_field :password %></div> |
||||||
|
|
||||||
<% if devise_mapping.rememberable? -%> |
<% if devise_mapping.rememberable? -%> |
||||||
<div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div> |
<div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div> |
||||||
<% end -%> |
<% end -%> |
||||||
|
|
||||||
<div><%= f.submit "Sign in", class: 'btn-primary' %></div> |
<div><%= f.submit "Sign in", class: 'btn-primary' %></div> |
||||||
<% end %> |
<% end %> |
||||||
|
|
||||||
<%= render :partial => "devise/shared/links" %> |
<%= render :partial => "devise/shared/links" %> |
||||||
|
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
|
Loading…
Reference in new issue