56 lines
2.1 KiB
Plaintext
56 lines
2.1 KiB
Plaintext
|
|
<div class="row">
|
|
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
|
|
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
|
|
<%= simple_form_for([:settings, @commissioner]) do |f| %>
|
|
<%= f.error_notification %>
|
|
|
|
<div class="form-inputs">
|
|
<%= f.input :name %>
|
|
<%= f.label :emp_id, 'Employee' %>
|
|
<%= f.collection_select :emp_id, Employee.all.order('name asc'), :id, :name, {prompt: 'Select an Employee'}, {class: "form-control"} %>
|
|
<br/>
|
|
<%= f.label :commission_id, 'Commission' %><br/>
|
|
<%= f.select :commission_id, Commission.all.map {|l| [l.menu_item.name, l.id]}, {prompt: 'Select a Product'}, {class: 'form-control'} %>
|
|
<br/>
|
|
<%= f.label :joined_date %><br/>
|
|
<%= f.text_field :joined_date, {class: 'form-control datepicker', id: 'joined_date', readonly: true} %><br/>
|
|
<%= f.label :resigned_date %><br/>
|
|
<%= f.text_field :resigned_date, {class: 'form-control datepicker', id: 'resigned_date', readonly: true} %><br/>
|
|
<label><%= f.check_box :is_active %> Active </label>
|
|
</div>
|
|
<br/>
|
|
|
|
<div class="form-actions">
|
|
<%= f.submit "Submit",:class => 'btn btn-primary btn-lg waves-effect' %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
|
|
<div class="card">
|
|
<div class="body">
|
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
|
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
|
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function () {
|
|
$('#joined_date').datepicker({
|
|
format: 'yyyy-mm-dd',
|
|
autoclose: true
|
|
});
|
|
|
|
$('#resigned_date').datepicker({
|
|
format: 'yyyy-mm-dd',
|
|
autoclose: true
|
|
});
|
|
});
|
|
|
|
</script>
|