<commit_before>{% embed 'AppBundle:Components/Page:page-report.html.twig'%}

{% set translationDomain = "report-action" %}
{% trans_default_domain translationDomain %}

{% block bodyClasses %}action-page{% endblock %}
{% block pageTitle %}{{ 'page.htmlTitle' | trans }}{% endblock %}
{% block title %}{{ 'page.pageSectionTitle' | trans }}{% endblock %}


{% block pageBody %}


    {% block validationSummary %}
        {{ form_errors_list(form) }}
    {% endblock %}

    {{ form_start(form, {attr: {novalidate: 'novalidate' }}) }}

      <fiedset>
        <legend class="hidden">Future financial decisions</legend>
        {{ form_checkbox_group(form.doYouExpectFinancialDecisions, 'form.doYouExpectFinancialDecisions', {
            'fieldSetClass' : 'inline expect-financial-dec-radio',
            'legendClass' : 'form-label',
            'legendText' : 'form.doYouExpectFinancialDecisions.label' | trans({'%client%': report.client.firstname}, translationDomain),
            'hintText' : 'form.doYouExpectFinancialDecisions.hint' | trans({'%client%': report.client.firstname}, translationDomain),
            'items': [
                {'labelClass': 'block-label', 'elementClass': '' },
                {'labelClass': 'block-label', 'elementClass': '' }
            ]
        }) }}
        <div id="financial-decisions-textarea" class="hidden-detail">
          {{ form_input(form.doYouExpectFinancialDecisionsDetails, 'form.doYouExpectFinancialDecisionsDetails', {
              'labelClass': 'required',
              'labelParameters': { '%client%': report.client.firstname },
              'inputClass': 'expanding'
          }) }}
        </div>
    </fieldset>

    <fieldset>
        <legend class="hidden">Concerns for future</legend>
        {{ form_checkbox_group(form.doYouHaveConcerns, 'form.doYouHaveConcerns', {
            'fieldSetClass' : 'inline do-you-have-actions-radio',
            'legendClass' : 'form-label',
            'legendText' : 'form.doYouHaveConcerns.label' | trans({'%client%': report.client.firstname}, translationDomain),
            'hintText' : 'form.doYouHaveConcerns.hint' | trans({'%client%': report.client.firstname}, translationDomain),
            'items': [
                {'labelClass': 'block-label', 'elementClass': '' },
                {'labelClass': 'block-label', 'elementClass': '' }
            ]
        }) }}
        <div id="actions-details-textarea">
            {{ form_input(form.doYouHaveConcernsDetails, 'form.doYouHaveConcernsDetails', {
                'labelClass': 'required',
                'labelParameters': { '%client%': report.client.firstname },
                'inputClass': 'expanding'
            }) }}
        </div>
    </fieldset>

    {% include 'AppBundle:Components/ButtonBar:_start.html.twig' %}
    {{ form_submit(form.save,'form.save') }}
    {% include 'AppBundle:Components/ButtonBar:_end.html.twig' %}

    {{ form_end(form) }}

    <script type="text/javascript">
        $(document).ready(function() {
            new GOVUK.SelectionButtons('.form-group__checkbox-group :radio');
            new opg.RadioHide({
                radio:'.expect-financial-dec-radio input[type=radio]',
                content: '#financial-decisions-textarea',
                hideOnYes: false
            });
            new opg.RadioHide({
                radio:'.do-you-have-actions-radio input[type=radio]',
                content: '#actions-details-textarea',
                hideOnYes: false
            });
        });
    </script>

{% endblock %}

{% block pageBodyFooterNav %}
    {% include 'AppBundle:Components:nextprevious.html.twig' with {
    'previousLink': path("assets" , {'reportId': report.id }),
    'previousLabel': 'Assets',
    'nextLink': path("report_overview" , {'reportId': report.id }),
    'nextLabel': 'Report overview'
    } %}
{% endblock %}

{% endembed %}
<commit_msg>dd-1399-property actions form add left bars<commit_after>{% embed 'AppBundle:Components/Page:page-report.html.twig'%}

{% set translationDomain = "report-action" %}
{% trans_default_domain translationDomain %}

{% block bodyClasses %}action-page{% endblock %}
{% block pageTitle %}{{ 'page.htmlTitle' | trans }}{% endblock %}
{% block title %}{{ 'page.pageSectionTitle' | trans }}{% endblock %}


{% block pageBody %}


    {% block validationSummary %}
        {{ form_errors_list(form) }}
    {% endblock %}

    {{ form_start(form, {attr: {novalidate: 'novalidate' }}) }}

    <div class="form-section"> 
      <fiedset>
        <legend class="hidden">Future financial decisions</legend>
        {{ form_checkbox_group(form.doYouExpectFinancialDecisions, 'form.doYouExpectFinancialDecisions', {
            'fieldSetClass' : 'inline expect-financial-dec-radio',
            'legendClass' : 'form-label',
            'legendText' : 'form.doYouExpectFinancialDecisions.label' | trans({'%client%': report.client.firstname}, translationDomain),
            'hintText' : 'form.doYouExpectFinancialDecisions.hint' | trans({'%client%': report.client.firstname}, translationDomain),
            'items': [
                {'labelClass': 'block-label', 'elementClass': '' },
                {'labelClass': 'block-label', 'elementClass': '' }
            ]
        }) }}
        <div id="financial-decisions-textarea" class="hidden-detail">
          {{ form_input(form.doYouExpectFinancialDecisionsDetails, 'form.doYouExpectFinancialDecisionsDetails', {
              'labelClass': 'required',
              'labelParameters': { '%client%': report.client.firstname },
              'inputClass': 'expanding'
          }) }}
        </div>
    </fieldset>
    </div>
        
    <div class="form-section">     
    <fieldset>
        <legend class="hidden">Concerns for future</legend>
        {{ form_checkbox_group(form.doYouHaveConcerns, 'form.doYouHaveConcerns', {
            'fieldSetClass' : 'inline do-you-have-actions-radio',
            'legendClass' : 'form-label',
            'legendText' : 'form.doYouHaveConcerns.label' | trans({'%client%': report.client.firstname}, translationDomain),
            'hintText' : 'form.doYouHaveConcerns.hint' | trans({'%client%': report.client.firstname}, translationDomain),
            'items': [
                {'labelClass': 'block-label', 'elementClass': '' },
                {'labelClass': 'block-label', 'elementClass': '' }
            ]
        }) }}
        <div id="actions-details-textarea">
            {{ form_input(form.doYouHaveConcernsDetails, 'form.doYouHaveConcernsDetails', {
                'labelClass': 'required',
                'labelParameters': { '%client%': report.client.firstname },
                'inputClass': 'expanding'
            }) }}
        </div>
    </fieldset>
    </div>
        
    {% include 'AppBundle:Components/ButtonBar:_start.html.twig' %}
    {{ form_submit(form.save,'form.save') }}
    {% include 'AppBundle:Components/ButtonBar:_end.html.twig' %}

    {{ form_end(form) }}

    <script type="text/javascript">
        $(document).ready(function() {
            new GOVUK.SelectionButtons('.form-group__checkbox-group :radio');
            new opg.RadioHide({
                radio:'.expect-financial-dec-radio input[type=radio]',
                content: '#financial-decisions-textarea',
                hideOnYes: false
            });
            new opg.RadioHide({
                radio:'.do-you-have-actions-radio input[type=radio]',
                content: '#actions-details-textarea',
                hideOnYes: false
            });
        });
    </script>

{% endblock %}

{% block pageBodyFooterNav %}
    {% include 'AppBundle:Components:nextprevious.html.twig' with {
    'previousLink': path("assets" , {'reportId': report.id }),
    'previousLabel': 'Assets',
    'nextLink': path("report_overview" , {'reportId': report.id }),
    'nextLabel': 'Report overview'
    } %}
{% endblock %}

{% endembed %}

{'fraction_non_alphanumeric': 0.1616493802175563, 'fraction_numerical': 0.0005059448520111307, 'mean_word_length': 2.647140221402214, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '6737982', 'n_tokens_mistral': 2407, 'n_tokens_neox': 2251, 'n_words': 345}