update adminbsbs

This commit is contained in:
Aung Myo
2017-10-30 12:14:11 +06:30
parent 5bdc8e25c8
commit a687b45193
7 changed files with 76 additions and 17 deletions

View File

@@ -8,10 +8,14 @@
<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"} %>
<%= 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'} %>
<%= f.label :commission_id, 'Commission'%>
<%= f.select :commission_id, Commission.all.map {|l| [l.menu_item.name, l.id]}, { :include_blank => 'Choose Commission Product', :selected => ''}, {class: 'form-control'} %>
<br/>
<%= f.label :joined_date %><br/>
<%= f.text_field :joined_date, {class: 'form-control datepicker', id: 'joined_date', readonly: true} %><br/>
@@ -53,7 +57,9 @@
</div>
<script type="text/javascript">
$(document).on('turbolinks:load', function() {
$(document).on('page:load', function() {
// $(document).on('turbolinks:load', function() {
$('body').bootstrapMaterialDesign();
});
</script>