<commit_before>{% extends '/Layout/Templates/base.html.twig' %}

{% block actionbar %}

{% endblock %}

{% block content %}
  {% form edit %}
  <div class="row fork-module-content">
    <div class="col-md-12">
      <div class="form-group">
        <label for="name" class="control-label">
          {{ 'lbl.ReferenceCode'|trans|capitalize }}
          <abbr data-toggle="tooltip" title="{{ 'lbl.RequiredField'|trans|capitalize }}">*</abbr>
        </label>
        <p class="help-block">{{ 'msg.HelpAddName'|trans }}</p>
        {% form_field_error name %} {% form_field name %}
      </div>
      <div class="form-group">
        <label for="value" class="control-label">
          {{ 'lbl.Translation'|trans|capitalize }}
          <abbr data-toggle="tooltip" title="{{ 'lbl.RequiredField'|trans|capitalize }}">*</abbr>
        </label>
        <p class="help-block">{{ 'msg.HelpAddValue'|trans }}</p>
        {% form_field_error value %} {% form_field value %}
      </div>
      <div class="row">
        <div class="col-md-3">
          <div class="form-group">
            <label for="language" class="control-label">{{ 'lbl.Language'|trans|capitalize }}</label>
            {% form_field_error language %} {% form_field language %}
          </div>
        </div>
        <div class="col-md-3">
          <div class="form-group">
            <label for="application" class="control-label">{{ 'lbl.Application'|trans|capitalize }}</label>
            {% form_field_error application %} {% form_field application %}
          </div>
        </div>
        <div class="col-md-3">
          <div class="form-group">
            <label for="module" class="control-label">{{ 'lbl.Module'|trans|capitalize }}</label>
            {% form_field_error module %} {% form_field module %}
          </div>
        </div>
        <div class="col-md-3">
          <div class="form-group">
            <label for="type" class="control-label">{{ 'lbl.Type'|trans|capitalize }}</label>
            {% form_field_error type %} {% form_field type %}
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="row fork-module-actions">
    <div class="col-md-12">
      <div class="btn-toolbar">
        <div class="btn-group pull-right" role="group">
          <button id="editButton" type="submit" name="edit" class="btn btn-primary">
            <span class="fa fa-floppy-o"></span>{{ 'lbl.Save'|trans|capitalize }}
          </button>
        </div>
      </div>
    </div>
  </div>
  {% endform %}
{% endblock %}
<commit_msg>Add a delete button for locale.<commit_after>{% extends '/Layout/Templates/base.html.twig' %}

{% block actionbar %}

{% endblock %}

{% block content %}
  {% form edit %}
  <div class="row fork-module-content">
    <div class="col-md-12">
      <div class="form-group">
        <label for="name" class="control-label">
          {{ 'lbl.ReferenceCode'|trans|capitalize }}
          <abbr data-toggle="tooltip" title="{{ 'lbl.RequiredField'|trans|capitalize }}">*</abbr>
        </label>
        <p class="help-block">{{ 'msg.HelpAddName'|trans }}</p>
        {% form_field_error name %} {% form_field name %}
      </div>
      <div class="form-group">
        <label for="value" class="control-label">
          {{ 'lbl.Translation'|trans|capitalize }}
          <abbr data-toggle="tooltip" title="{{ 'lbl.RequiredField'|trans|capitalize }}">*</abbr>
        </label>
        <p class="help-block">{{ 'msg.HelpAddValue'|trans }}</p>
        {% form_field_error value %} {% form_field value %}
      </div>
      <div class="row">
        <div class="col-md-3">
          <div class="form-group">
            <label for="language" class="control-label">{{ 'lbl.Language'|trans|capitalize }}</label>
            {% form_field_error language %} {% form_field language %}
          </div>
        </div>
        <div class="col-md-3">
          <div class="form-group">
            <label for="application" class="control-label">{{ 'lbl.Application'|trans|capitalize }}</label>
            {% form_field_error application %} {% form_field application %}
          </div>
        </div>
        <div class="col-md-3">
          <div class="form-group">
            <label for="module" class="control-label">{{ 'lbl.Module'|trans|capitalize }}</label>
            {% form_field_error module %} {% form_field module %}
          </div>
        </div>
        <div class="col-md-3">
          <div class="form-group">
            <label for="type" class="control-label">{{ 'lbl.Type'|trans|capitalize }}</label>
            {% form_field_error type %} {% form_field type %}
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="row fork-module-actions">
    <div class="col-md-12">
      <div class="btn-toolbar">
        {% if showLocaleDelete %}
          <div class="btn-group pull-left" role="group">
            <button type="button" class="btn btn-danger" data-toggle="modal" data-target="#confirmDelete">
              <span class="fa fa-trash-o"></span>
              {{ 'lbl.Delete'|trans|capitalize }}
            </button>
          </div>
        {% endif %}
        <div class="btn-group pull-right" role="group">
          <button id="editButton" type="submit" name="edit" class="btn btn-primary">
            <span class="fa fa-floppy-o"></span>{{ 'lbl.Save'|trans|capitalize }}
          </button>
        </div>
      </div>
    </div>
  </div>
  {% endform %}

  {% if showLocaleDelete %}
    <div class="modal fade" id="confirmDelete" tabindex="-1" role="dialog" aria-labelledby="{{ 'lbl.Delete'|trans|capitalize }}" aria-hidden="true">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <span class="modal-title h4">{{ 'lbl.Delete'|trans|capitalize }}</span>
          </div>
          <div class="modal-body">
            <p>{{ 'msg.ConfirmDelete'|trans|sprintf(item.title) }}</p>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">
              <span class="fa fa-times"></span>{{ 'lbl.Cancel'|trans|capitalize }}
            </button>
            <a href="{{ geturl('delete') }}&amp;id={{ id }}" class="btn btn-danger">
              <span class="fa fa-trash"></span>{{ 'lbl.Delete'|trans|capitalize }}
            </a>
          </div>
        </div>
      </div>
    </div>
  {% endif %}
{% endblock %}

{'fraction_non_alphanumeric': 0.19365868821883742, 'fraction_numerical': 0.0027976375505129004, 'mean_word_length': 2.3480749219562957, 'pattern_counts': {'":': 0, '<': 149, '<?xml version=': 0, '>': 149, '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': '5560939', 'n_tokens_mistral': 2092, 'n_tokens_neox': 1993, 'n_words': 382}