Sha256: 601ec41ba3021f334aa5446265a37ef593e01694ad6cc0c90b85a7104f91844e

Contents?: true

Size: 859 Bytes

Versions: 5

Compression:

Stored size: 859 Bytes

Contents

  .col-md-6
    .attributeContainer
      = label_tag 'exam_portion[score_selection_options][]', t('exam_portion.score_selection_options'), class: 'control-label'
      - unless f.object.score_selection_options.blank?
        - f.object.score_selection_options.each do |option|
          .row
            .col-md-9
              .form-group
                .controls
                  = text_field_tag 'exam_portion[score_selection_options][]', option, class: 'form-control', placeholder: 'e.g Good'
            .col-md-3
              = link_to t('exam_portion.remove_option'), '#', class: 'remove-option-row btn btn-danger col-md-12'
      = render 'gaku/shared/form_fields/exam_portions/options_template', f: f



    .row
      .col-md-12
        .form-group
          = link_to t('exam_portion.add_option'), '#', class: 'add-option-row btn btn-primary'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gaku_frontend-0.3.0 app/views/gaku/shared/form_fields/exam_portions/_selection.html.slim
gaku_frontend-0.3.0.pre.4 app/views/gaku/shared/form_fields/exam_portions/_selection.html.slim
gaku_frontend-0.3.0.pre.3 app/views/gaku/shared/form_fields/exam_portions/_selection.html.slim
gaku_frontend-0.3.0.pre.2 app/views/gaku/shared/form_fields/exam_portions/_selection.html.slim
gaku_frontend-0.3.0.pre.1 app/views/gaku/shared/form_fields/exam_portions/_selection.html.slim