<commit_before>{% extends 'application.html.twig' %}
{% block pageTitle %}Deputyship service{% endblock %}
{% block contentClass %}external-report{% endblock %}
{% set page = 'reportPeriod' %}

{% set translationDomain = "report-overview" %}

{% if constant('AppBundle\\Entity\\Report::PROPERTY_AND_AFFAIRS') == report.courtOrderType %}
    {% set reportType = "propertyAndAffairs" %}
{% else %}
    {% set reportType = "healthAndWelfare" %}
{% endif %}

{% block pageContent %}

    <div class="navigation-back report-back">
        <a href="{{ path('client_home') }}" class="behat-link-back-to-client">< Back to my client</a>
    </div>
    <!-- set class to external-report -->
    {% include 'AppBundle:Components/PageHeader:_report-header-submission.html.twig' %}
    {% include 'AppBundle:Report:_submission_declaration.html.twig' %}

    <div class="external-report-section external-report-section-contacts">
        {% include 'AppBundle:Components/Page:_page-section-title.html.twig' with {
            transDomain: translationDomain,
            pageSectionTitle: 'pages.reportPeriod.healthAndWelfare.contacts.subSectionTitle'
        } %}

        {% if report.contacts | length == 0 %}
            <p class="page-section-description">{{ report.reasonForNoContacts }}</p>
        {% else %}
            {% include 'AppBundle:Contact:_listContact.html.twig' with {
                'showListData': true,
                'showEditForm': false,
                'showEditLink': false,
                'showDeleteConfirm': false
            } %}
        {% endif %}
    </div>

    <div class="external-report-section external-report-section-decisions">
        {% include 'AppBundle:Components/Page:_page-section-title.html.twig' with {
            transDomain: translationDomain,
            pageSectionTitle: 'decisionsMadeAsDeputy'
        } %}

        {% if report.decisions | length == 0 %}
            <p class="page-section-description">{{ report.reasonForNoDecisions }}</p>
        {% else %}
            {% include 'AppBundle:Decision:_listDecision.html.twig' with {
            'showListData': true,
            'showEditForm': false,
            'showEditLink': false,
            'showDeleteConfirm': false
            } %}
        {% endif %}
    </div>

    {% if reportType is sameas("propertyAndAffairs") %}

        <div class="external-report-section external-report-section-accounts">
            {% include 'AppBundle:Components/Page:_page-section-title.html.twig' with {
                transDomain: translationDomain,
                pageSectionTitle: 'pages.reportPeriod.propertyAndAffairs.accounts.subSectionTitle'
            } %}

            {% if report.accounts | length == 0 %}
                <p class="page-section-description">{{ report.reasonForNoAccounts }}</p>
            {% else %}
                {% include 'AppBundle:Account:_report_accounts.html.twig' with {
                    'accounts': report.accounts
                } %}
            {% endif %}
        </div>

        <div class="external-report-section external-report-section-assets">
            {% include 'AppBundle:Components/Page:_page-section-title.html.twig' with {
                transDomain: translationDomain,
                pageSectionTitle: 'pages.reportPeriod.propertyAndAffairs.assets.subSectionTitle'
            } %}

            {% if report.assets | length == 0 %}
                <p class="page-section-description">{{ 'pages.reportPeriod.propertyAndAffairs.assets.noAssets' | trans({}, translationDomain) }}</p>
            {% else %}
                {% include 'AppBundle:Asset:_listAsset.html.twig' with {
                    'showEditForm': false,
                    'showDeleteConfirm': false,
                    'form': report.assets,
                    'showEditLink': false
                } %}
            {% endif %}
        </div>

    {% endif %}
{% endblock %}
  
{% block popups %}
  {% if isEmailAttachment is not defined or not isEmailAttachment%}
      {% include 'AppBundle:Components/Resources:_popups.html.twig' %}
  {% endif %}
{% endblock %}
<commit_msg>remove back-link from report sent by email<commit_after>{% extends 'application.html.twig' %}
{% block pageTitle %}Deputyship service{% endblock %}
{% block contentClass %}external-report{% endblock %}
{% set page = 'reportPeriod' %}

{% set translationDomain = "report-overview" %}

{% if constant('AppBundle\\Entity\\Report::PROPERTY_AND_AFFAIRS') == report.courtOrderType %}
    {% set reportType = "propertyAndAffairs" %}
{% else %}
    {% set reportType = "healthAndWelfare" %}
{% endif %}

{% block pageContent %}

    {% if not isEmailAttachment%}
      <div class="navigation-back report-back">
          <a href="{{ path('client_home') }}" class="behat-link-back-to-client">< Back to my client</a>
      </div>
    {% endif %}
    
    <!-- set class to external-report -->
    {% include 'AppBundle:Components/PageHeader:_report-header-submission.html.twig' %}
    {% include 'AppBundle:Report:_submission_declaration.html.twig' %}

    <div class="external-report-section external-report-section-contacts">
        {% include 'AppBundle:Components/Page:_page-section-title.html.twig' with {
            transDomain: translationDomain,
            pageSectionTitle: 'pages.reportPeriod.healthAndWelfare.contacts.subSectionTitle'
        } %}

        {% if report.contacts | length == 0 %}
            <p class="page-section-description">{{ report.reasonForNoContacts }}</p>
        {% else %}
            {% include 'AppBundle:Contact:_listContact.html.twig' with {
                'showListData': true,
                'showEditForm': false,
                'showEditLink': false,
                'showDeleteConfirm': false
            } %}
        {% endif %}
    </div>

    <div class="external-report-section external-report-section-decisions">
        {% include 'AppBundle:Components/Page:_page-section-title.html.twig' with {
            transDomain: translationDomain,
            pageSectionTitle: 'decisionsMadeAsDeputy'
        } %}

        {% if report.decisions | length == 0 %}
            <p class="page-section-description">{{ report.reasonForNoDecisions }}</p>
        {% else %}
            {% include 'AppBundle:Decision:_listDecision.html.twig' with {
            'showListData': true,
            'showEditForm': false,
            'showEditLink': false,
            'showDeleteConfirm': false
            } %}
        {% endif %}
    </div>

    {% if reportType is sameas("propertyAndAffairs") %}

        <div class="external-report-section external-report-section-accounts">
            {% include 'AppBundle:Components/Page:_page-section-title.html.twig' with {
                transDomain: translationDomain,
                pageSectionTitle: 'pages.reportPeriod.propertyAndAffairs.accounts.subSectionTitle'
            } %}

            {% if report.accounts | length == 0 %}
                <p class="page-section-description">{{ report.reasonForNoAccounts }}</p>
            {% else %}
                {% include 'AppBundle:Account:_report_accounts.html.twig' with {
                    'accounts': report.accounts
                } %}
            {% endif %}
        </div>

        <div class="external-report-section external-report-section-assets">
            {% include 'AppBundle:Components/Page:_page-section-title.html.twig' with {
                transDomain: translationDomain,
                pageSectionTitle: 'pages.reportPeriod.propertyAndAffairs.assets.subSectionTitle'
            } %}

            {% if report.assets | length == 0 %}
                <p class="page-section-description">{{ 'pages.reportPeriod.propertyAndAffairs.assets.noAssets' | trans({}, translationDomain) }}</p>
            {% else %}
                {% include 'AppBundle:Asset:_listAsset.html.twig' with {
                    'showEditForm': false,
                    'showDeleteConfirm': false,
                    'form': report.assets,
                    'showEditLink': false
                } %}
            {% endif %}
        </div>

    {% endif %}
{% endblock %}
  
{% block popups %}
  {% if not isEmailAttachment%}
      {% include 'AppBundle:Components/Resources:_popups.html.twig' %}
  {% endif %}
{% endblock %}

{'fraction_non_alphanumeric': 0.1391441005802708, 'fraction_numerical': 0.0009671179883945841, 'mean_word_length': 2.2973296133917898, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 45, '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': '6716171', 'n_tokens_mistral': 2449, 'n_tokens_neox': 2196, 'n_words': 395}