Sha256: 9aac0f80f73e4de5b19db7d7558c72cf7c285200b7f86b146bcac50fb66d9981

Contents?: true

Size: 924 Bytes

Versions: 1

Compression:

Stored size: 924 Bytes

Contents

%h3= t '.labels'
.table-responsive
  %table.table.labels
    %thead
      %tr
        %th.position= Helena::Label.human_attribute_name :position
        %th.preselected
        %th.text= Helena::Label.human_attribute_name :text
        %th.value= Helena::Label.human_attribute_name :value
        %th.delete
    %tbody
      = form.simple_fields_for :labels  do |label|
        %tr[label.object]
          %td.position
            = label.input :position, as: :integer, label: false
          %td.preselected
            = label.input :preselected, as: :boolean, label: Helena::Label.human_attribute_name(:preselected)
          %td.text
            = label.input :text, label: false
          %td.value
            = label.input :value, label: false
          %td.delete
            - unless label.object.new_record?
              = label.input :_destroy, as: :boolean, label: Helena::Label.human_attribute_name(:_destroy)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
helena-0.3.3 app/views/helena/admin/questions/_labels.html.haml