Customer Update

This commit is contained in:
Aung Myo
2017-06-13 11:35:30 +06:30
parent f8df5147a4
commit 6717becf92
4 changed files with 79 additions and 60 deletions

View File

@@ -78,17 +78,25 @@
<div class="form-group">
<%= f.input :name, :class => "form-control col-md-6 name" %>
<% if flash[:errors] && !flash[:errors].empty? then -%>
<span style="color:red"><%= flash[:errors]["name"] %></span>
<% end -%>
</div>
<div class="form-group">
<%= f.input :company, :class => "form-control col-md-6 company" %>
</div>
<div class="form-group">
<%= f.input :contact_no, :class => "form-control col-md-6 contact_no" %>
<% if flash[:errors] && !flash[:errors].empty? then -%>
<span style="color:red"><%= flash[:errors]["contact_no"] %></span>
<% end -%>
</div>
<div class="form-group">
<%= f.input :email, :class => "form-control col-md-6 email" %>
<%= f.input :email, :class => "form-control col-md-6 email" %>
<% if flash[:errors] && !flash[:errors].empty? then -%>
<span style="color:red"><%= flash[:errors]["email"] %></span>
<% end -%>
</div>
<div class="form-group">
@@ -103,7 +111,11 @@
<option value="<%= member.value %>">
<%= member.name %></option>
<%end %>
</select>
</select>
<% if flash[:errors] && !flash[:errors].empty? then -%>
<span style="color:red"><%= flash[:errors]["member_group_id"] %></span>
<% end -%>
</div>
<div class="form-group">