Sha256: b6f6199fd0837ee60409aac157142e40a16cd55322c7860eb16096ef91cc8bb8

Contents?: true

Size: 1.41 KB

Versions: 50

Compression:

Stored size: 1.41 KB

Contents

<%= form_for([@user], :html => {:id=>"form_user", :class=>"mb-0 form-horizontal", :role => "form", :method => (@user.new_record? ? :post : :put), :remote=>true}) do |f| %>

      <div id="user_form_error">
        <%= @user.errors[:base].to_sentence %>
      </div>

      <div class="form-inputs mb-30 mt-30">
      
        <div class="row">
          <div class="col-md-6 col-xs-12">
            <%= theme_form_field(@user, :name) %>
            <%= theme_form_field(@user, :username) %>
            <%= theme_form_field(@user, :email) %>
            <%= theme_form_field(@user, :designation, required: false) %>
          </div>

          <div class="col-md-6 col-xs-12">
            <%= theme_form_field(@user, :phone, required: false) %>
            <% if @user.new_record? %>
              <%= theme_form_field(@user, :password, required: true, html_options: {type: :password}) %>
              <%= theme_form_field(@user, :password_confirmation, required: true, html_options: {type: :password}, label: "Retype Password") %>
            <% end %>
          </div>
        </div>
        
      </div>
    
      <div>

        <%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
        
        <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "closeLargeModal();", class: "pull-right ml-10 btn btn-white" %>
        
      </div>
      <%= clear_tag(10) %>
  </div>

<% end %>

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
usman-0.3.38 app/views/usman/users/_form.html.erb
usman-0.3.37 app/views/usman/users/_form.html.erb
usman-0.3.36 app/views/usman/users/_form.html.erb
usman-0.3.35 app/views/usman/users/_form.html.erb
usman-0.3.34 app/views/usman/users/_form.html.erb
usman-0.3.33 app/views/usman/users/_form.html.erb
usman-0.3.32 app/views/usman/users/_form.html.erb
usman-0.3.31 app/views/usman/users/_form.html.erb
usman-0.3.30 app/views/usman/users/_form.html.erb
usman-0.3.29 app/views/usman/users/_form.html.erb
usman-0.3.28 app/views/usman/users/_form.html.erb
usman-0.3.27 app/views/usman/users/_form.html.erb
usman-0.3.26 app/views/usman/users/_form.html.erb
usman-0.3.25 app/views/usman/users/_form.html.erb
usman-0.3.24 app/views/usman/users/_form.html.erb
usman-0.3.23 app/views/usman/users/_form.html.erb
usman-0.3.22 app/views/usman/users/_form.html.erb
usman-0.3.21 app/views/usman/users/_form.html.erb
usman-0.3.20 app/views/usman/users/_form.html.erb
usman-0.3.19 app/views/usman/users/_form.html.erb