<commit_before>Formbuilder.registerField 'radio',

  order: 15

  view: """
    <%
      var optionsForLooping = rf.get(Formbuilder.options.mappings.OPTIONS) || [];
      for (var i = 0 ; i < optionsForLooping.length ; i++) {
    %>
      <div>
        <label class='fb-option'>
          <input type='radio' <%= rf.get(Formbuilder.options.mappings.OPTIONS)[i].checked && 'checked' %> onclick="javascript: return false;" />
          <%= rf.get(Formbuilder.options.mappings.OPTIONS)[i].label %>
        </label>
      </div>
    <% } %>

    <% if (rf.get(Formbuilder.options.mappings.INCLUDE_OTHER)) { %>
      <div class='other-option'>
        <label class='fb-option'>
          <input type='radio' />
          Other
        </label>

        <input type='text' />
      </div>
    <% } %>
  """

  edit: """
    <%= Formbuilder.templates['edit/options']() %>
  """
  ### was: """
    <%= Formbuilder.templates['edit/options']({ includeOther: true }) %>
  """###

  addButton: """
    <span class="symbol"><span class="fa fa-circle-o"></span></span> Multiple Choice
  """

  defaultAttributes: (attrs) -><commit_msg>renamed "Multiple Choice" field name to "Radio Buttons". Addresses https://app.asana.com/0/691627771928/9256827698625<commit_after>Formbuilder.registerField 'radio',

  order: 15

  view: """
    <%
      var optionsForLooping = rf.get(Formbuilder.options.mappings.OPTIONS) || [];
      for (var i = 0 ; i < optionsForLooping.length ; i++) {
    %>
      <div>
        <label class='fb-option'>
          <input type='radio' <%= rf.get(Formbuilder.options.mappings.OPTIONS)[i].checked && 'checked' %> onclick="javascript: return false;" />
          <%= rf.get(Formbuilder.options.mappings.OPTIONS)[i].label %>
        </label>
      </div>
    <% } %>

    <% if (rf.get(Formbuilder.options.mappings.INCLUDE_OTHER)) { %>
      <div class='other-option'>
        <label class='fb-option'>
          <input type='radio' />
          Other
        </label>

        <input type='text' />
      </div>
    <% } %>
  """

  edit: """
    <%= Formbuilder.templates['edit/options']() %>
  """
  ### was: """
    <%= Formbuilder.templates['edit/options']({ includeOther: true }) %>
  """###

  addButton: """
    <span class="symbol"><span class="fa fa-circle-o"></span></span> Radio Buttons
  """

  defaultAttributes: (attrs) ->
{'fraction_non_alphanumeric': 0.20179180887372014, 'fraction_numerical': 0.013651877133105802, 'mean_word_length': 2.6640625, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, 'https://': 1, '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': '5606418', 'n_tokens_mistral': 817, 'n_tokens_neox': 748, 'n_words': 121}