cartodb-4.42/app/views/password_resets/edit.html.erb

31 lines
1.5 KiB
Plaintext
Raw Normal View History

2024-04-06 13:25:13 +08:00
<%= render :layout => 'form' do %>
<% url = CartoDB.url(self, 'edit_password_reset', params: { id: params[:id] }) %>
<%= form_for @user, url: url, class: "js-Loading-form" do |f| %>
<div class="Sessions-fieldsGorup">
<div class="Sessions-field">
<%= f.password_field :password, autocomplete: "off", class: "CDB-Size-medium #{@organization.present? ? 'Sessions-input' : 'Sessions-navy-input'} topBorderRadius", placeholder: 'Password' %>
<% if @user.errors['password'].present? %>
<div class="Sessions-fieldError js-Sessions-fieldError" data-content="<%= @user.errors['password'].first %>.">!</div>
<% end %>
</div>
<div class="Sessions-field">
<%= f.password_field :password_confirmation, autocomplete: "off", class: "CDB-Size-medium #{@organization.present? ? 'Sessions-input' : 'Sessions-navy-input'} bottomBorderRadius", placeholder: 'Retype your password' %>
<% if @user.errors['password_confirmation'].present? %>
<div class="Sessions-fieldError js-Sessions-fieldError" data-content="<%= @user.errors['password_confirmation'].first %>.">!</div>
<% end %>
</div>
<div class="Sessions-field">
<p>
<button type="submit" class="Sessions-submitButton u-tupper js-Sessions-button js-Loading">
<span class="js-Loading-text"><%= 'Save' %></span>
<%= render :partial => 'shared/loading_animation' %>
</button>
</p>
</div>
</div>
<% end %>
<% end %>