merge with ui ux and add public menus in gitignore

This commit is contained in:
Yan
2018-04-19 15:26:57 +06:30
4 changed files with 9 additions and 5 deletions

View File

@@ -434,15 +434,14 @@
</div>
<div class="modal-footer ">
<div class="row m-b-10 m-r-30">
<div class="col-md-5 m-r-20">
<div class="col-md-5 m-r-15">
<button type="button" class="btn btn-link bg-red waves-effect print_receipt">Print</button>
</div>
<div class="col-md-5 m-r-20">
<div class="col-md-5 m-r-13">
<button type="button" class="btn btn-link bg-blue waves-effect btn_pdf_close" data-dismiss="modal">CLOSE</button>
</div>
</div>
</div>
</div>
</div>

View File

@@ -7,7 +7,11 @@
<div class="form-inputs p-l-15">
<%= f.input :name %>
<%= f.input :role, :collection => Lookup.collection_of("employee_roles"),:class=>'form-group' %>
<% if current_user.role == "administrator" %>
<%= f.input :role, :collection => Lookup.collection_of("employee_roles"),:class=>'form-group' %>
<% else %>
<%= f.input :role, :collection => Lookup.collection_of("employee_roles").select{|r| r[1] != "administrator"},:class=>'form-group' %>
<% end %>
<%= f.input :emp_id, :label => "Employee Numberic ID (*Unique)" %>
<%= f.input :password %>