Created
February 21, 2015 00:28
-
-
Save jordanhudgens/43932e7584af0f5b4845 to your computer and use it in GitHub Desktop.
Bug fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<%= form_for @invoice, html: { class: 'form-horizontal' } do |f| %> | |
<% if @invoice.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@invoice.errors.count, "error") %> prohibited this invoice from being saved:</h2> | |
<ul> | |
<% @invoice.errors.full_messages.each do |msg| %> | |
<li><%= msg %></li> | |
<% end %> | |
</ul> | |
</div> | |
<% end %> | |
<div class="control-group"> | |
<%= f.label :date, class: 'control-label' %><br> | |
<div class="controls"> | |
<%= f.date_select :date %> | |
</div> | |
</div> | |
<div class="control-group"> | |
<%= f.label :company, class: 'control-label' %><br> | |
<div class="controls"> | |
<%= f.text_field :company %> | |
</div> | |
</div> | |
<div class="control-group"> | |
<%= f.label :tax, class: 'control-label' %><br> | |
<div class="controls"> | |
<%= f.text_field :tax %> | |
</div> | |
</div> | |
<div class="control-group"> | |
<%= f.label :salesperson, class: 'control-label' %><br> | |
<div class="controls"> | |
<%= f.text_field :salesperson %> | |
</div> | |
</div> | |
<div class="control-group"> | |
<div class="controls"> | |
<%= f.submit 'Submit', class: 'btn btn-default' %> | |
</div> | |
</div> | |
<% end %> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment