<commit_before>{% extends "PROCERGSLoginCidadaoCoreBundle::base.loggedIn.html.twig" %}

{% block title %}{{ 'Services' | trans }} | {{ parent() }}{% endblock title %}

{% block content %}
<div class="content applications">

    <h1 class="visible-xs">{% trans %}Services{% endtrans %}</h1>

    {# ################# #
     #  ACTIVE SERVICES  #
     # ################# #}
     <div class="panel panel-default">
      <div class="panel-heading"><h2 class="panel-title">{% trans %}Active Services{% endtrans %}</h2></div>
      <div class="panel-body">
        {% if user.getAuthorizations|length > 0 %}
        <ul class="list-group">
          {% for auth in user.getAuthorizations %}
          <li class="list-group-item service">
            <a class="media clearfix" href="{{ path('lc_app_details', {'clientId': auth.client.id}) }}">
              <div class="pull-left">
                {% if auth.client.getPictureWebPath is not null and auth.client.getPictureWebPath != '' %}
                <img src="/{{ auth.client.getPictureWebPath }}" width="65" height="65" alt="" class="media-object">
                {% else %}
                <img src="//placehold.it/65x65" alt="">
                {% endif %}
              </div>
              <div class="media-body">
                <h5 class="media-heading">{{ auth.client.name }}</h5>
              </div>
              <div class="status label label-success pull-right">{% trans %}Active{%  endtrans %}</div>
            </a>
          </li>
          {% endfor %}
        </ul>

        {% else %}
        <p class="empty">{% trans %}There are no active services yet.{%  endtrans %}</p>
        {% endif %}
      </div>
    </div>

    {# ################ #
     #  OTHER SERVICES  #
     # ################ #}
     {% if apps|length > 0 %}
     <div class="panel panel-default">
      <div class="panel-heading"><h2 class="panel-title">{% trans %}Other Services{% endtrans %}</h2></div>
      <div class="panel-body">
          <ul class="list-group">
            {% for client in apps %}
            <li class="list-group-item service">
              <a class="media clearfix" href="{{ path('lc_app_details', {'clientId': client.id}) }}">
                <div class="pull-left">
                  {% if client.getPictureWebPath is not null and client.getPictureWebPath != '' %}
                  <img src="/{{ client.getPictureWebPath }}" width="65" height="65" alt="" class="media-object">
                  {% else %}
                  <img src="//placehold.it/65x65" alt="">
                  {% endif %}
                </div>
                <div class="media-body">
                  <h4 class="media-heading">{{ client.name }}</h4>
                </div>
                <div class="status"><span class="label label-default pull-right">{% trans %}Inactive{%  endtrans %}</span></div>
              </a>
            </li>
            {% endfor %}
          </ul>
      </div>
    </div>
    {% endif %}


    {# ################# #
     #  SUGGESTION FORM  #
     # ################# #}
     <div class="panel panel-default">
      <div class="panel-heading"><h2 class="panel-title">{{ 'Suggest a Service' | trans }}</h2></div>
      <div class="panel-body">
        {{ form_start(form, {'action': path('lc_suggestions_new_service'), 'attr': {'role':'form' } }) }}
        {{ form_errors(form) }}
        <div class="row">
          <div class="col-sm-12">
                        {{ form_row(form.text, { 'label': 'Suggestion'|trans } ) }}
            <div class="text-right">
              <input class="btn btn-success" type="submit" value="{{ 'Send' |trans }}" />
            </div><commit_msg>Fix other services media heading<commit_after>{% extends "PROCERGSLoginCidadaoCoreBundle::base.loggedIn.html.twig" %}

{% block title %}{{ 'Services' | trans }} | {{ parent() }}{% endblock title %}

{% block content %}
<div class="content applications">

    <h1 class="visible-xs">{% trans %}Services{% endtrans %}</h1>

    {# ################# #
     #  ACTIVE SERVICES  #
     # ################# #}
     <div class="panel panel-default">
      <div class="panel-heading"><h2 class="panel-title">{% trans %}Active Services{% endtrans %}</h2></div>
      <div class="panel-body">
        {% if user.getAuthorizations|length > 0 %}
        <ul class="list-group">
          {% for auth in user.getAuthorizations %}
          <li class="list-group-item service">
            <a class="media clearfix" href="{{ path('lc_app_details', {'clientId': auth.client.id}) }}">
              <div class="pull-left">
                {% if auth.client.getPictureWebPath is not null and auth.client.getPictureWebPath != '' %}
                <img src="/{{ auth.client.getPictureWebPath }}" width="65" height="65" alt="" class="media-object">
                {% else %}
                <img src="//placehold.it/65x65" alt="">
                {% endif %}
              </div>
              <div class="media-body">
                <h5 class="media-heading">{{ auth.client.name }}</h5>
              </div>
              <div class="status label label-success pull-right">{% trans %}Active{%  endtrans %}</div>
            </a>
          </li>
          {% endfor %}
        </ul>

        {% else %}
        <p class="empty">{% trans %}There are no active services yet.{%  endtrans %}</p>
        {% endif %}
      </div>
    </div>

    {# ################ #
     #  OTHER SERVICES  #
     # ################ #}
     {% if apps|length > 0 %}
     <div class="panel panel-default">
      <div class="panel-heading"><h2 class="panel-title">{% trans %}Other Services{% endtrans %}</h2></div>
      <div class="panel-body">
          <ul class="list-group">
            {% for client in apps %}
            <li class="list-group-item service">
              <a class="media clearfix" href="{{ path('lc_app_details', {'clientId': client.id}) }}">
                <div class="pull-left">
                  {% if client.getPictureWebPath is not null and client.getPictureWebPath != '' %}
                  <img src="/{{ client.getPictureWebPath }}" width="65" height="65" alt="" class="media-object">
                  {% else %}
                  <img src="//placehold.it/65x65" alt="">
                  {% endif %}
                </div>
                <div class="media-body">
                  <h5 class="media-heading">{{ client.name }}</h5>
                </div>
                <div class="status"><span class="label label-default pull-right">{% trans %}Inactive{%  endtrans %}</span></div>
              </a>
            </li>
            {% endfor %}
          </ul>
      </div>
    </div>
    {% endif %}


    {# ################# #
     #  SUGGESTION FORM  #
     # ################# #}
     <div class="panel panel-default">
      <div class="panel-heading"><h2 class="panel-title">{{ 'Suggest a Service' | trans }}</h2></div>
      <div class="panel-body">
        {{ form_start(form, {'action': path('lc_suggestions_new_service'), 'attr': {'role':'form' } }) }}
        {{ form_errors(form) }}
        <div class="row">
          <div class="col-sm-12">
                        {{ form_row(form.text, { 'label': 'Suggestion'|trans } ) }}
            <div class="text-right">
              <input class="btn btn-success" type="submit" value="{{ 'Send' |trans }}" />
            </div>
{'fraction_non_alphanumeric': 0.20993873383253914, 'fraction_numerical': 0.008713410483321988, 'mean_word_length': 2.019317714755446, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 139, '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': '3406496', 'n_tokens_mistral': 2336, 'n_tokens_neox': 2101, 'n_words': 461}