add two select box

This commit is contained in:
May Zin Oo
2018-03-05 11:27:20 +06:30
parent 30d71fa84e
commit b5b2b829c6
3 changed files with 11 additions and 4 deletions

View File

@@ -16,7 +16,15 @@
<label for="name" class="string optional control-label">Name:</label>
<%= f.input :order_ref ,:label =>false,:error => false,:placeholder =>'Please enter name',input_html: { class: "form-control" } %>
<%= f.error :order_ref ,style: 'color: red' %>
</div>
</div>
<div class="form-group">
<label for="client" class="string optional control-label">Select Client:</label>
<%= select_tag "client", options_from_collection_for_select(@clients, "id", "name"), :class => 'form-control'%>
</div>
<div class="form-group">
<label for="product" class="string optional control-label">Select Product:</label>
<%= select_tag "product", options_from_collection_for_select(@product, "id", "name"), :class => 'form-control'%>
</div>
<div class ="form-group" >
<label></label>
<div class="actions">