Sha256: f747d24cbab6c2c3f1fe9842a34aeace108322d641cbb6a272465e403e1a3a69

Contents?: true

Size: 1.14 KB

Versions: 2

Compression:

Stored size: 1.14 KB

Contents

%fieldset.question.preview
  .question-action-links
    =link_to 'Edit', '#', class: 'edit-question-link'
    |
    = f.hidden_field :_destroy
    = link_to "Remove", '#', class: "remove_fields"
  .hidden.position-wrapper
    =f.hidden_field(:position)
  .edit-question-fields
    %table.question-details
      %tbody
        %tr
          %th
            %span.askwidget-fieldlabel=f.label(:name)
          %td=f.text_field :name, class: 'askwidget-inputfield'
        %tr
          %th
            %span.askwidget-fieldlabel= f.label(:instructions, 'Help Text')
          %td=f.text_field :instructions, class: 'askwidget-inputfield'
        %tr.select-question-type
          %th
            %span.askwidget-fieldlabel=f.label(:type)
          %td=f.collection_select :type, Question::TYPES, :to_s, :titleize, class: 'askwidget-inputfield'


    .edit-question-choices
      =render 'asker/choices', f: f

    .askwidget-buttons
      =link_to "Done", "#", class: 'edit-question-link btn'
      .required-option
        =f.check_box :required, class: 'askwidget-inputfield'
        %span.askwidget-fieldlabel=f.label(:required, "Make this a required question")

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ask-0.4.1 app/views/asker/_question_fields.html.haml
ask-0.4.0 app/views/asker/_question_fields.html.haml