Orbit/app/views/devise/registrations/edit.html.erb

40 lines
1.6 KiB
Plaintext
Raw Normal View History

2013-01-07 02:45:27 +00:00
<h1 class="login-logo"><%= t(:ruling_site) %></h1>
<div id="signin-header">
<h3><%= t(:password_change) %></h3>
</div>
<div id="container" class="sign-in">
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :class => 'user_new form-horizontal' }) do |f| %>
<div class="content">
2012-02-22 06:43:24 +00:00
2013-01-07 02:45:27 +00:00
<% unless f.error_messages.blank? %>
<div class="modal alert alert-error hide" id="myModal">
<p type="button" class="close" data-dismiss="modal">×</p>
<%= f.error_messages %>
</div>
<script>
$('#myModal').modal('show')
</script>
<% end -%>
2013-01-07 02:45:27 +00:00
<div class="main">
<div class="control-group clear">
<%= f.label :password, t(:password)%>
<%= f.text_field :password, :placeholder => t(:password), :style => "width: 330px;" %>
</div>
<div class="control-group clear">
<%= f.label :password_confirmation, t(:password_confirmation)%>
<%= f.text_field :password_confirmation, :placeholder => t(:password_confirmation), :style => "width: 330px;" %>
</div>
<div class="control-group clear">
<%= f.label :current_password, t(:password_current)%>
<%= f.text_field :current_password, :placeholder => t(:password_current), :style => "width: 330px;" %>
</div>
</div>
</div>
<div class="form-actions clear">
<%= link_to t(:back), :back, :class => 'btn' %>
<%= content_tag :button, t(:update), :type => :submit, :class => 'btn btn-primary pull-right' %>
</div>
<% end %>
2012-12-05 08:10:15 +00:00
</div>