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="block" id="block-login"> |
||||
<div class="page-header"> |
||||
<h1>Edit <%= resource_name.to_s.humanize %></h1> |
||||
</div> |
||||
|
||||
<h2>Edit <%= resource_name.to_s.humanize %></h2> |
||||
<div class="content login"> |
||||
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), |
||||
:html => { :method => :put }) do |f| %> |
||||
<%= devise_error_messages! %> |
||||
|
||||
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), |
||||
:html => { :method => :put }) do |f| %> |
||||
<%= devise_error_messages! %> |
||||
<div><%= f.label :first_name %> |
||||
<%= f.text_field :first_name %></div> |
||||
|
||||
<div><%= f.label :first_name %> |
||||
<%= f.text_field :first_name %></div> |
||||
<div><%= f.label :last_name %> |
||||
<%= f.text_field :last_name %></div> |
||||
|
||||
<div><%= f.label :last_name %> |
||||
<%= f.text_field :last_name %></div> |
||||
<div><%= f.label :email %> |
||||
<%= f.email_field :email %></div> |
||||
|
||||
<div><%= f.label :email %> |
||||
<%= f.email_field :email %></div> |
||||
<div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br /> |
||||
<%= f.password_field :password %></div> |
||||
|
||||
<div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br /> |
||||
<%= f.password_field :password %></div> |
||||
<div><%= f.label :password_confirmation %> |
||||
<%= f.password_field :password_confirmation %></div> |
||||
|
||||
<div><%= f.label :password_confirmation %> |
||||
<%= f.password_field :password_confirmation %></div> |
||||
<div><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br /> |
||||
<%= f.password_field :current_password %></div> |
||||
|
||||
<div><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br /> |
||||
<%= f.password_field :current_password %></div> |
||||
<div><%= f.submit "Update", class: 'btn-primary' %> |
||||
<%= link_to "Back", :back %></div> |
||||
<% end %> |
||||
|
||||
<div><%= f.submit "Update", class: 'btn-primary' %> |
||||
<%= link_to "Back", :back %></div> |
||||
<% end %> |
||||
<hr /> |
||||
|
||||
<hr /> |
||||
|
||||
<div class="danger-zone"> |
||||
<h3>Danger zone</h3> |
||||
<p> |
||||
If you cancel your account all your data will be deleted! |
||||
<%= button_to "Cancel account", registration_path(resource_name), |
||||
class: 'btn-danger', |
||||
confirm: "All your data will be deleted! Are you sure?", |
||||
method: :delete %> |
||||
</p> |
||||
</div> |
||||
|
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="alert alert-error"> |
||||
<h3>Danger zone</h3> |
||||
<%= link_to "Cancel account", registration_path(resource_name), |
||||
class: 'btn btn-danger pull-right', |
||||
confirm: "All your data will be deleted! Are you sure?", |
||||
method: :delete %> |
||||
<p>If you cancel your account all your data will be deleted!</p> |
||||
</div> |
||||
|
@ -1,33 +1,28 @@
|
||||
<div id="box"> |
||||
<div class="block" id="block-login"> |
||||
<h2>Sign up</h2> |
||||
<div class="content login"> |
||||
<div class="page-header"> |
||||
<h1>Sign up</h1> |
||||
</div> |
||||
|
||||
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %> |
||||
<%= devise_error_messages! %> |
||||
|
||||
<%= honeypot %> |
||||
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %> |
||||
<%= devise_error_messages! %> |
||||
|
||||
<div><%= f.label :first_name %> |
||||
<%= f.text_field :first_name %></div> |
||||
<%= honeypot %> |
||||
|
||||
<div><%= f.label :last_name %> |
||||
<%= f.text_field :last_name %></div> |
||||
<div><%= f.label :first_name %> |
||||
<%= f.text_field :first_name %></div> |
||||
|
||||
<div><%= f.label :email %> |
||||
<%= f.email_field :email %></div> |
||||
<div><%= f.label :last_name %> |
||||
<%= f.text_field :last_name %></div> |
||||
|
||||
<div><%= f.label :password %> |
||||
<%= f.password_field :password %> |
||||
<div><%= f.label :email %> |
||||
<%= f.email_field :email %></div> |
||||
|
||||
<div><%= f.label :password_confirmation %> |
||||
<%= f.password_field :password_confirmation %></div> |
||||
<div><%= f.label :password %> |
||||
<%= f.password_field :password %> |
||||
|
||||
<div><%= f.submit "Sign up", class: 'btn-primary' %></div> |
||||
<% end %> |
||||
<div><%= f.label :password_confirmation %> |
||||
<%= f.password_field :password_confirmation %></div> |
||||
|
||||
<%= render :partial => "devise/shared/links" %> |
||||
<div><%= f.submit "Sign up", class: 'btn-primary' %></div> |
||||
<% end %> |
||||
|
||||
</div> |
||||
</div> |
||||
</div> |
||||
<%= render :partial => "devise/shared/links" %> |
||||
|
@ -1,24 +1,19 @@
|
||||
<div id="box"> |
||||
<div class="block" id="block-login"> |
||||
<h2>Sign in</h2> |
||||
<div class="content login"> |
||||
<div class="page-header"> |
||||
<h1>Sign in</h1> |
||||
</div> |
||||
|
||||
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %> |
||||
<div><%= f.label :email %> |
||||
<%= f.email_field :email %></div> |
||||
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %> |
||||
<div><%= f.label :email %> |
||||
<%= f.email_field :email %></div> |
||||
|
||||
<div><%= f.label :password %> |
||||
<%= f.password_field :password %></div> |
||||
<div><%= f.label :password %> |
||||
<%= f.password_field :password %></div> |
||||
|
||||
<% if devise_mapping.rememberable? -%> |
||||
<div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div> |
||||
<% end -%> |
||||
<% if devise_mapping.rememberable? -%> |
||||
<div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div> |
||||
<% end -%> |
||||
|
||||
<div><%= f.submit "Sign in", class: 'btn-primary' %></div> |
||||
<% end %> |
||||
<div><%= f.submit "Sign in", class: 'btn-primary' %></div> |
||||
<% end %> |
||||
|
||||
<%= render :partial => "devise/shared/links" %> |
||||
|
||||
</div> |
||||
</div> |
||||
</div> |
||||
<%= render :partial => "devise/shared/links" %> |
||||
|
Loading…
Reference in new issue