Sha256: ac92767d0007d7c490f71e56b955d3fcc735add5a148fd826b8b5730b7983ac3

Contents?: true

Size: 1.07 KB

Versions: 7

Compression:

Stored size: 1.07 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] = form_label(@resource, 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

7 entries across 7 versions & 1 rubygems

Version Path
faalis-2.2.0.pre.rc1 app/views/faalis/dashboard/resource/_form.html.slim
faalis-2.2.1 app/views/faalis/dashboard/resource/_form.html.slim
faalis-2.2.0 app/views/faalis/dashboard/resource/_form.html.slim
faalis-2.1.1 app/views/faalis/dashboard/resource/_form.html.slim
faalis-2.1.0 app/views/faalis/dashboard/resource/_form.html.slim
faalis-2.0.8 app/views/faalis/dashboard/resource/_form.html.slim
faalis-2.0.7 app/views/faalis/dashboard/resource/_form.html.slim