Sha256: c8c6e2bfc0c99e18352f778226b1df9d92b5c5c0d31674f8910a3dab39246cc2

Contents?: true

Size: 851 Bytes

Versions: 5

Compression:

Stored size: 851 Bytes

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-th"></i>'.html_safe, class: "add-on calendar" %><%= f.input_field :purchase_date, as: :datepicker, data: { 'date-format' => 'dd/mm/yyyy' } %>
    <% end %>
    <%= f.input :warranty_duration, collection: [["6 months", 6], ["1 year", 12], ["2 years", 24], ["3 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

5 entries across 5 versions & 1 rubygems

Version Path
bookkeeper-0.0.4 app/views/bookkeeper/purchases/_form.html.erb
bookkeeper-0.0.3 app/views/bookkeeper/purchases/_form.html.erb
bookkeeper-0.0.2 app/views/bookkeeper/purchases/_form.html.erb
bookkeeper-0.0.1 app/views/bookkeeper/purchases/_form.html.erb
bookkeeper-0.0.1.beta2 app/views/bookkeeper/purchases/_form.html.erb