Sha256: 072abc3b42f9d3b3953e6d05697c4b4da94bdc4bdc91b8fa0715dacd6d6ac634

Contents?: true

Size: 1.31 KB

Versions: 1

Compression:

Stored size: 1.31 KB

Contents

<div class='container-fluid'>
  <div class="row">
    <%= form.hidden_field :id %>
    <div class='col-xs-12 col-sm-8 col-md-4'>
      <div class="form-group">
        <%= form.label :first_name, class: 'control-label' %>
        <%= form.text_field :first_name, class: 'form-control' %>
      </div>
      <div class="form-group">
        <%= form.label :last_name, class: 'control-label' %>
        <%= form.text_field :last_name, class: 'form-control' %>
      </div>
    </div>
    <div class='col-xs-12 col-sm-8 col-md-4'>
      <div class="form-group">
        <%= form.label :date_of_birth, class: 'control-label' %>
        <div class="form-group form-inline">
          <%= form.date_select :date_of_birth, { start_year: 100.years.ago.year, end_year: Date.today.year }, class: 'form-control' %>
        </div>
      </div>
      <div class="form-group">
        <%= form.label :gender, class: 'control-label' %>
        <%= form.select :gender, [['Male', 'm'], ['Female', 'f'], ['Other', 'o']], { prompt: 'Select one of...' }, class: 'form-control' %>
      </div>
    </div>
  </div>

  <div class="row">
    <%= form.button(type: 'submit', data: { 'disable-with': 'Saving...' }, class: 'btn btn-primary btn-lg') do %>
      <%= glyphicon('floppy-save') %>
      Save
    <% end %>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kadmin-0.3.2 test/dummy/app/views/admin/people/_form.html.erb