Sha256: 1d57f019c367dcc11c38e663889959c63fe53224c28b89c827ac62ac4d901cc5

Contents?: true

Size: 1.23 KB

Versions: 2

Compression:

Stored size: 1.23 KB

Contents

<%= simple_form_for @purchase, html: { class: 'form-horizontal' } do |f| %>

  <%= f.error_notification %>

  <div class="form-inputs">
    <%= f.input :title %>
    <%= f.input :description, input_html: { class: 'input-xxlarge', rows: 4 } %>
    <%= f.input :purchase_date, :wrapper => :prepend do %>
      <%= content_tag :span, '<i class="icon-calendar"></i>'.html_safe, class: "add-on calendar" %>
      <%= f.input_field :purchase_date, as: :datepicker, data: { 'date-format' => 'dd/mm/yyyy' } %>
    <% end %>
    <%= f.input :invoice %>
    <%= f.input :amount, :wrapper => :prepend do %>
      <%= content_tag :span, '<i class="icon-money"></i>'.html_safe, class: "add-on calendar" %>
      <%= f.input_field :amount, class: "input-mini" %>
    <% end %>
    <%= f.input :warranty_duration, collection: [["6 #{t('simple_form.labels.purchase.months')}", 6], ["1 #{t('simple_form.labels.purchase.year')}", 12], ["2 #{t('simple_form.labels.purchase.years')}", 24], ["3 #{t('simple_form.labels.purchase.years')}", 36]], input_html: { class: 'input-small' } %>
    <%= f.input :receipt %>
  </div>
  <div class="form-actions">
    <%= button_tag ('<i class="icon-ok"></i> ' + t('bookkeeper.actions.save')).html_safe, class: 'btn' %>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bookkeeper-0.0.7 app/views/bookkeeper/purchases/_form.html.erb
bookkeeper-0.0.6 app/views/bookkeeper/purchases/_form.html.erb