Sha256: fea76106bfbf2f0218bef8e76e6f48a33abceebfac36435733dbe2c166222e55
Contents?: true
Size: 1.11 KB
Versions: 8
Compression:
Stored size: 1.11 KB
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] || {} - hash[:label] = I18n.t("forms.#{@resource.class.name.underscore.to_s}.#{name}") unless hash.include?(:label) = 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
8 entries across 8 versions & 1 rubygems