<commit_before><%= form_for ([@requirement.requirements_template, @requirement]), html: { :class => 'form-horizontal' } do |f| %>
  <%= render partial: "shared/errors", locals: {model: @requirement } %>
  <fieldset>
    <div class="control-group">
      <%= f.hidden_field :parent_id %>
      <%= f.check_box :group, id: 'if_group', style: 'display: none;' %>
    </div>
    <div class="control-group">
      <% if params[:node_type] == 'group'%>
        <%= f.label :text_brief, 'Group Label', :class => 'control-label required' %>
      <% else %>
        <%= f.label :text_brief, 'Requirement Label', :class => 'control-label required' %>
      <% end %>
      <div class="controls">
        <%= f.text_field(:text_brief, :class => 'input-block-level') %>
      </div>
    </div>
    <div class="control-group">
      <%= f.label :text_full, 'Detailed Question', :class => 'control-label required' %>
      <div class="controls">
        <%= f.text_area(:text_full, rows: 5, :class => 'input-block-level') %>
      </div>
    </div>
    <div class="control-group" id="obligation">
      <%= f.label :obligation, :class => 'control-label' %>
      <div class="controls checkbox-controls">
        <%= f.radio_button :obligation, :mandatory, :class => 'radio inline' %>
        <%= label_tag :mandatory, "Mandatory", :class => "radio-label" %><br/>
        <%= f.radio_button :obligation, :mandatory_applicable, :class => 'radio inline' %>
        <%= label_tag :mandatory_applicable, "Mandatory If Applicable", :class => "radio-label" %><br/>
        <%= f.radio_button :obligation, :recommended, :class => 'radio inline' %>
        <%= label_tag :recommended, "Recommended", :class => "radio-label" %><br/>
        <% if @requirement.new_record? %>
          <%= f.radio_button :obligation, :optional, checked: true , :class => 'radio inline' %>
          <%= label_tag :optional, "Optional", :class => "radio-label" %>
        <% else %>
          <%= f.radio_button :obligation, :optional, :class => 'radio inline' %>
          <%= label_tag :optional, "Optional", :class => "radio-label" %>
        <% end %>
      </div>
    </div>
    <div class="control-group">
      <%= f.label :requirement_type, 'Question Type', :class => 'control-label' %>
      <div class="controls">
        <%= f.select :requirement_type, options_for_select([:text, :numeric, :date, :enum], @requirement.requirement_type) %>
      </div>
    </div>

    <fieldset class="requirement_type_enum">
      <%= f.fields_for :enumerations do |builder| %>
        <%= render 'enumeration_fields', f: builder %>
      <% end %>
      <%= link_to_add_fields 'Click to Add Item', f, :enumerations %>
    </fieldset>

    <fieldset class="requirement_type_numeric">
      <%= f.fields_for :labels do |builder| %>
        <%= render 'label_fields', f: builder %>
      <% end %>
      <%= link_to_add_fields 'Click to Add Unit', f, :labels %>
    </fieldset>
  </fieldset>
  <div class="buttons"><commit_msg>apply accessibility fixes to Template Details page<commit_after><%= form_for ([@requirement.requirements_template, @requirement]), html: { :class => 'form-horizontal' } do |f| %>
  <%= render partial: "shared/errors", locals: {model: @requirement } %>
  <fieldset>
    <div class="control-group">
      <%= f.hidden_field :parent_id %>
      <%= f.check_box :group, id: 'if_group', style: 'display: none;' %>
    </div>
    <div class="control-group">
      <% if params[:node_type] == 'group'%>
        <%= f.label :text_brief, 'Group Label', :class => 'control-label required' %>
      <% else %>
        <%= f.label :text_brief, 'Requirement Label', :class => 'control-label required' %>
      <% end %>
      <div class="controls">
        <%= f.text_field(:text_brief, :class => 'input-block-level') %>
      </div>
    </div>
    <div class="control-group">
      <%= f.label :text_full, 'Detailed Question', :class => 'control-label required' %>
      <div class="controls">
        <%= f.text_area(:text_full, rows: 5, :class => 'input-block-level') %>
      </div>
    </div>
    <div class="control-group" id="obligation">
      <%= f.label :obligation, :class => 'control-label' %>
      <div class="controls checkbox-controls">
        <%= f.radio_button :obligation, :mandatory, :class => 'radio inline', :id => 'mandatory'%>
        <%= label_tag :mandatory, "Mandatory", :class => "radio-label" %><br/>
        <%= f.radio_button :obligation, :mandatory_applicable, :class => 'radio inline', :id => 'mandatory_applicable'%>
        <%= label_tag :mandatory_applicable, "Mandatory If Applicable", :class => "radio-label" %><br/>
        <%= f.radio_button :obligation, :recommended, :class => 'radio inline', :id => 'recommended' %>
        <%= label_tag :recommended, "Recommended", :class => "radio-label" %><br/>
        <% if @requirement.new_record? %>
          <%= f.radio_button :obligation, :optional, checked: true, :class => 'radio inline', :id => 'optional' %>
          <%= label_tag :optional, "Optional", :class => "radio-label" %>
        <% else %>
          <%= f.radio_button :obligation, :optional, :class => 'radio inline', :id => 'optional' %>
          <%= label_tag :optional, "Optional", :class => "radio-label" %>
        <% end %>
      </div>
    </div>
    <div class="control-group">
      <%= f.label :requirement_type, 'Question Type', :class => 'control-label' %>
      <div class="controls">
        <%= f.select :requirement_type, options_for_select([:text, :numeric, :date, :enum], @requirement.requirement_type) %>
      </div>
    </div>

    <fieldset class="requirement_type_enum">
      <%= f.fields_for :enumerations do |builder| %>
        <%= render 'enumeration_fields', f: builder %>
      <% end %>
      <%= link_to_add_fields 'Click to Add Item', f, :enumerations %>
    </fieldset>

    <fieldset class="requirement_type_numeric">
      <%= f.fields_for :labels do |builder| %>
        <%= render 'label_fields', f: builder %>
      <% end %>
      <%= link_to_add_fields 'Click to Add Unit', f, :labels %>
    </fieldset>
  </fieldset>
  <div class="buttons">
{'fraction_non_alphanumeric': 0.19433065705390792, 'fraction_numerical': 0.00032770768474520726, 'mean_word_length': 3.1608725289706885, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 172, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3382691', 'n_tokens_mistral': 2126, 'n_tokens_neox': 1958, 'n_words': 439}