2017-03-07 09:37:28 +00:00
|
|
|
<% content_for :page_menu do %>
|
|
|
|
<ul class="list-sidebar">
|
|
|
|
<li class="item-sidebar"><a class="btn-sidebar" href="/cpanel/sites"><i class="fa fa-home" aria-hidden="true"></i><%= t("client_management.my_sites") %></a></li>
|
|
|
|
<li class="item-sidebar active"><a class="btn-sidebar" href="<%= cpanel_myprofile_path %>"><i class="fa fa-address-card" aria-hidden="true"></i><%= t("client_management.profile") %></a></li>
|
2017-03-16 07:13:53 +00:00
|
|
|
<li class="item-sidebar"><a class="btn-sidebar" href="<%= cpanel_myhistory_path %>"><i class="fa fa-history" aria-hidden="true"></i><%= t("client_management.history") %></a></li>
|
2017-03-07 09:37:28 +00:00
|
|
|
<li class="item-sidebar"><a class="btn-sidebar" href="#"><i class="fa fa-question-circle-o" aria-hidden="true"></i><%= t("client_management.help_and_faq") %></a></li>
|
|
|
|
<li class="item-sidebar"><a class="btn-sidebar" href="#"><i class="fa fa-user-circle-o" aria-hidden="true"></i><%= t("client_management.get_in_contact") %></a></li>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<section class="cp-content col-md-10">
|
|
|
|
<h2 class="cp-page-title">
|
|
|
|
<%= t("client_management.profile_password") %>
|
|
|
|
</h2>
|
|
|
|
<div class="cp-profile-setting">
|
|
|
|
<% if !@error.nil? && @error != "success" %>
|
|
|
|
<div class="alert alert-danger" role="alert"><%= @error %></div>
|
|
|
|
<% elsif @error == "success" %>
|
|
|
|
<div class="alert alert-success" role="alert">Password has been updated successfully.</div>
|
|
|
|
<% end %>
|
|
|
|
<%= form_for @user, :url => {:action => "update_member_profile_password"} do |f| %>
|
|
|
|
<div class="line-profile">
|
|
|
|
<label for="current-password">Current Password</label>
|
|
|
|
<input type="password" id="current-password" name="current_password">
|
|
|
|
</div>
|
|
|
|
<div class="line-profile">
|
|
|
|
<label for="new-password">New Password</label>
|
|
|
|
<input type="password" id="new-password" name="new_password">
|
|
|
|
</div>
|
|
|
|
<div class="line-profile">
|
|
|
|
<label for="repeat-password">Repeat Password</label>
|
|
|
|
<input type="password" id="repeat-password" name="repeat_password">
|
|
|
|
</div>
|
|
|
|
<div class="line-profile">
|
|
|
|
<%= f.submit "Save", :class => "btn btn-primary" %>
|
|
|
|
</div>
|
|
|
|
<div class="line-profile">
|
2017-03-16 07:13:53 +00:00
|
|
|
<div class="pull-r">
|
|
|
|
<a href="<%= cpanel_myprofile_path %>" class="link-profile">Click here to change profile.</a>
|
|
|
|
</div>
|
2017-03-07 09:37:28 +00:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</section>
|