<commit_before>
.form-element.form-group.clearfix
  - case element.data_type
  - when 'text'
    input.form-control placeholder=element.label
    .control-bar
      = link_to edit_form_form_element_path(form, element), remote: true do
        small
          span.glyphicon.glyphicon-edit
      = link_to form_form_element_path(form, element),
        { method: :delete,
          remote: true,
          data: { confirm: t('common.confirm') } } do
        small
          span.glyphicon.glyphicon-remove


  - when 'checkbox'
    = check_box_tag element.name
    '&nbsp;
    = element.label


<commit_msg>Add remove link for all form elements<commit_after>
.form-element.form-group.clearfix
  - case element.data_type
  - when 'text'
    input.form-control placeholder=element.label

  - when 'checkbox'
    = check_box_tag element.name
    '&nbsp;
    = element.label

  .control-bar
    = link_to form_form_element_path(form, element),
      { method: :delete,
        remote: true,
        data: { confirm: t('common.confirm') } } do
      small
        span.glyphicon.glyphicon-remove

{'fraction_non_alphanumeric': 0.10550458715596331, 'fraction_numerical': 0.0, 'mean_word_length': 2.553745928338762, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1542473', 'n_tokens_mistral': 351, 'n_tokens_neox': 339, 'n_words': 70}