<commit_before>{% extends 'Layout/Templates/base.html.twig' %}
{% import "Layout/Templates/macros.html.twig" as macro %}

{% block actionbar %}
    {% if not warnings %}
      <div class="btn-toolbar pull-right">
        <div class="btn-group" role="group">
          {% if showMediaGalleriesMediaGalleryAdd %}
            {{ macro.buttonIcon( geturl('MediaGalleryAdd'), 'plus-square', 'lbl.Add'|trans|capitalize, '', 'id=addMediaGroupType') }}
          {% endif %}
        </div>
      </div>
    {% endif %}
{% endblock %}

{% block content %}
  {% if warnings %}
    <div class="panel panel-default">
      <div class="panel-body">
        <ul>
          {% for warning in warnings %}
            <li>{{ warning.message | raw }}</li>
          {% endfor %}
        </ul>
      </div>
    </div>
  {% endif %}

  {% if not warnings %}
    <div class="row">
      <div class="col-md-12">
        {% if dataGrid %}
        <div class="content-block content-block-pb">
          <div class="content-title">
            <h2>{{ 'lbl.Galleries'|trans|capitalize }}</h2>
          </div>
          <div class="table-responsive">
            {{ dataGrid|raw }}
          </div>
        </div>
        {% endif %}
        {% if not dataGrid %}
          <p>{{ 'msg.NoItems'|trans }}</p>
        {% endif %}
      </div>
    </div>

    <div class="modal fade" id="addMediaGroupTypeDialog" role="dialog" tabindex="-1" aria-hidden="true" aria-labelledby="addMediaGroupTypeDialogTitle">
      {{ form_start(form) }}
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <h4 class="modal-title" id="addMediaGroupTypeDialogTitle">{{ 'lbl.MediaGalleryAdd'|trans|capitalize }}</h4>
          </div>
          <div class="modal-body">
            {{ form_label(form.type) }}
            {{ form_widget(form.type) }}
            {{ form_errors(form.type) }}
          </div>
          <div class="modal-footer">
            {{ macro.buttonIcon('', 'times', 'lbl.Cancel'|trans|ucfirst, 'btn-default', { "data-dismiss":"modal", "type":"button" } ) }}
            {{ macro.buttonIcon('', 'plus-square', 'lbl.Add'|trans|ucfirst, 'btn-primary', { "type":"submit", "id":"addMediaGroupTypeSubmit" } ) }}
          </div>
        </div>
      </div>
      {{ form_end(form) }}
    </div>
  {% endif %}

{% endblock %}
<commit_msg>Fix id for "addMediaGroupType" button in MediaGalleries module<commit_after>{% extends 'Layout/Templates/base.html.twig' %}
{% import "Layout/Templates/macros.html.twig" as macro %}

{% block actionbar %}
    {% if not warnings %}
      <div class="btn-toolbar pull-right">
        <div class="btn-group" role="group">
          {% if showMediaGalleriesMediaGalleryAdd %}
            {{ macro.buttonIcon( geturl('MediaGalleryAdd'), 'plus-square', 'lbl.Add'|trans|capitalize, '', { "id":"addMediaGroupType" }) }}
          {% endif %}
        </div>
      </div>
    {% endif %}
{% endblock %}

{% block content %}
  {% if warnings %}
    <div class="panel panel-default">
      <div class="panel-body">
        <ul>
          {% for warning in warnings %}
            <li>{{ warning.message | raw }}</li>
          {% endfor %}
        </ul>
      </div>
    </div>
  {% endif %}

  {% if not warnings %}
    <div class="row">
      <div class="col-md-12">
        {% if dataGrid %}
        <div class="content-block content-block-pb">
          <div class="content-title">
            <h2>{{ 'lbl.Galleries'|trans|capitalize }}</h2>
          </div>
          <div class="table-responsive">
            {{ dataGrid|raw }}
          </div>
        </div>
        {% endif %}
        {% if not dataGrid %}
          <p>{{ 'msg.NoItems'|trans }}</p>
        {% endif %}
      </div>
    </div>

    <div class="modal fade" id="addMediaGroupTypeDialog" role="dialog" tabindex="-1" aria-hidden="true" aria-labelledby="addMediaGroupTypeDialogTitle">
      {{ form_start(form) }}
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <h4 class="modal-title" id="addMediaGroupTypeDialogTitle">{{ 'lbl.MediaGalleryAdd'|trans|capitalize }}</h4>
          </div>
          <div class="modal-body">
            {{ form_label(form.type) }}
            {{ form_widget(form.type) }}
            {{ form_errors(form.type) }}
          </div>
          <div class="modal-footer">
            {{ macro.buttonIcon('', 'times', 'lbl.Cancel'|trans|ucfirst, 'btn-default', { "data-dismiss":"modal", "type":"button" } ) }}
            {{ macro.buttonIcon('', 'plus-square', 'lbl.Add'|trans|ucfirst, 'btn-primary', { "type":"submit", "id":"addMediaGroupTypeSubmit" } ) }}
          </div>
        </div>
      </div>
      {{ form_end(form) }}
    </div>
  {% endif %}

{% endblock %}

{'fraction_non_alphanumeric': 0.19178653324994788, 'fraction_numerical': 0.002918490723368772, 'mean_word_length': 2.233153638814016, 'pattern_counts': {'":': 9, '<': 83, '<?xml version=': 0, '>': 83, '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': '1697675', 'n_tokens_mistral': 1602, 'n_tokens_neox': 1488, 'n_words': 275}