= semantic_form_for(@resource, url: form_target, remote: true, html: { multipart: @multipart }) do |f| .row .col-sm-12.col-lg-12 .box.box-primary .box-header .box-title / TODO: add a DSL to provide a message for this section .box-body - @_fields.each_with_index do |name, index| - if index % 2 == 0 |
.col-sm-12.col-lg-6.col-md-6 .form-group data-name=(name) - hash = @_fields_properties[name.to_sym] || {} = f.send(:input, name, hash) - if index % 2 != 0 |
.box-footer .row .col-sm-2 button.btn.btn-success.btn-block type="submit" i.fa.fa-check | = t('faalis.save') .col-sm-2.pull-right a.btn.btn-danger.btn-block href=(index) i.fa.fa-times = t('faalis.cancel')