client_management/app/views/client_managements/myprofile.html.erb

35 lines
1.8 KiB
Plaintext

<% 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>
<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") %>
</h2>
<div class="cp-profile-setting">
<%= form_for @user, :url => {:action => "update_member_profile"} do |f| %>
<div class="line-profile">
<%= f.label :fullname, t("client_management.fullname") %>
<%= f.text_field :fullname, :class => "form-control" %>
</div>
<div class="line-profile">
<%= f.label :phone_number, t("client_management.phone_number") %>
<%= f.phone_field :phone_number, :class => "form-control" %>
</div>
<div class="line-profile">
<%= f.label :address, t("client_management.address") %>
<%= f.text_area :address, :class => "form-control" %>
</div>
<div class="line-profile">
<%= f.submit "Save", :class => "btn btn-primary" %>
</div>
<div class="line-profile">
<a href="<%= cpanel_myprofilepassword_path %>" class="link-profile">Click here to change password.</a>
</div>
<% end %>
</div>
</section>