|
| 1 | +<!-- Get the org owner of the template --> |
| 2 | +<% org = Org.find(q.section.phase.template.org_id)%> |
| 3 | + |
1 | 4 | <div class="row"> |
2 | 5 | <div class="col-md-3 bold mb-2"> |
3 | 6 | <%= _('Order')%> |
4 | 7 | </div> |
5 | 8 | <div class="col-md-3 mb-2"> |
6 | | - <%= f.label(:text, _('Text'), class: "form-label") %> |
| 9 | + <%= f.label(:text, _('Text'), class: "control-label") %> |
7 | 10 | </div> |
| 11 | + <!--answer indentifier block--> |
| 12 | + <% if org.can_add_question_identifiers? %> |
| 13 | + <div class="col-md-3 bold mb-2"> |
| 14 | + <%= _('Answer Identifier')%> |
| 15 | + </div> |
| 16 | + <%end%> |
8 | 17 | <div class="col-md-3 bold mb-2"> |
9 | 18 | <%= _('Default')%> |
10 | 19 | </div> |
|
22 | 31 | <% options_q.number = i %> |
23 | 32 | <div class="row mb-2" data-attribute="question_option"> |
24 | 33 | <div class="col-md-3 pe-2"> |
25 | | - <%= op.number_field :number, min: 1, class: 'form-control', readonly: true %> |
| 34 | + <%= op.number_field :number, min: 1, class: 'form-control' %> |
26 | 35 | </div> |
27 | 36 | <div class="col-md-3 pe-2"> |
28 | 37 | <% if i == 1 %> |
|
31 | 40 | <%= op.text_field :text, as: :string, class: 'form-control', spellcheck: true %> |
32 | 41 | <% end %> |
33 | 42 | </div> |
| 43 | + <!--answer indentifier block--> |
| 44 | + <% if org.can_add_question_identifiers? %> |
| 45 | + <div class="col-md-3 pe-2"> |
| 46 | + <%= op.text_field :answer_identifier, as: :string, class: 'form-control', spellcheck: true %> |
| 47 | + </div> |
| 48 | + <% end %> |
34 | 49 | <div class="col-md-3 pe-2"> |
35 | 50 | <%= op.check_box :is_default %> |
36 | 51 | </div> |
|
0 commit comments