.comable-page .comable-main-fixed-top .comable-page-heading ul.pull-right.list-inline li = link_to_save h1.page-header ol.breadcrumb li> = link_to Comable.t('admin.nav.user'), comable.admin_users_path li> = link_to @user.human_id, comable.admin_user_path(@user) li.active = Comable.t('admin.actions.edit') .comable-page-body section = error_messages_for @user = form_for @user, url: comable.admin_user_path(@user) do |f| .hidden = f.submit fieldset .col-md-3 legend = Comable.t('admin.general') .help-block .col-md-9 .form-group = f.label :role = f.select :role, @user.class.role.options, {}, disabled: (@user == current_comable_user) .form-group = f.label :email = f.text_field :email .form-group = f.label :password = f.password_field :password - if @user.bill_address fieldset .col-md-3 legend = f.object.class.human_attribute_name(:bill_address) .help-block .col-md-9 = f.fields_for :bill_address do |ff| .form-group = ff.label :full_name .row .col-sm-6 = ff.text_field :family_name, placeholder: ff.object.class.human_attribute_name(:family_name) .col-sm-6 = ff.text_field :first_name, placeholder: ff.object.class.human_attribute_name(:first_name) .form-group = ff.label :zip_code = ff.text_field :zip_code, max_length: 8 .form-group = ff.label :state_name = ff.text_field :state_name .form-group = ff.label :city = ff.text_field :city .form-group = ff.label :detail = ff.text_field :detail .form-group = ff.label :phone_number = ff.text_field :phone_number, max_length: 18