Sha256: 96529931a262d1aaa4a7fb55af95876474e5587dc5935dd47849dc2860bd9fe5
Contents?: true
Size: 1010 Bytes
Versions: 2
Compression:
Stored size: 1010 Bytes
Contents
= 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 | <div class="row"> .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 | </div> .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')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
faalis-2.0.0.rc3 | app/views/faalis/dashboard/resource/_form.html.slim |
faalis-2.0.0.rc2 | app/views/faalis/dashboard/resource/_form.html.slim |