<commit_before>{% extends 'UMRAMemberBundle::nav.html.twig' %}

{% block modulecontent -%}
    <div class="page-header">
        <h2>Household of {{ entity.firstname }} {{ entity.lastname }}</h2>
        <h4 class="text-muted">Postal Name: <small>{{ entity.postalname }}</small>
    </div>

    <div class="panel panel-primary">
        <header class="panel-heading"><span class="glyphicon glyphicon-home"></span> Residences</header>
        <table class="table">
            <thead>
                <th>Type</th>
                <th>Address</th>
                <th>Since</th>
                <th>Season(s)</th>
                <th>Actions</th>
            </thead>
            <tbody>
                {% for residence in entity.residences %}
                <tr>
                    <td>
                        {% if residence.primary %}
                            <span class="label label-success">Primary</span>
                        {% else %}
                            <span class="label">Secondary</span>
                        {% endif %}
                    </td>
                    <td>
                        <a href="{{ path('UMRA_Residence_show', { 'id': residence.id }) }}">
                            <address>
                                {{ residence.address1 }}<br />
                                {% if residence.address2 %}
                                    {{ residence.address2 }}<br />
                                {% endif %}
                                {% if residence.address3 %}
                                    {{ residence.address3 }}<br />
                                {% endif %}
                                {{ residence. city }}{% if residence.state %}, {{ residence.state }}{% endif %} {{ residence.zip }}<br />
                                {{ residence.country }}
                            </address>
                        </a>
                    </td><commit_msg>List residence phones on Household show page<commit_after>{% extends 'UMRAMemberBundle::nav.html.twig' %}

{% block modulecontent -%}
    <div class="page-header">
        <h2>Household of {{ entity.firstname }} {{ entity.lastname }}</h2>
        <h4 class="text-muted">Postal Name: <small>{{ entity.postalname }}</small>
    </div>

    <div class="panel panel-primary">
        <header class="panel-heading"><span class="glyphicon glyphicon-home"></span> Residences</header>
        <table class="table">
            <thead>
                <th>Type</th>
                <th>Address</th>
                <th>Phones</th>
                <th>Since</th>
                <th>Season(s)</th>
                <th>Actions</th>
            </thead>
            <tbody>
                {% for residence in entity.residences %}
                <tr>
                    <td>
                        {% if residence.primary %}
                            <span class="label label-success">Primary</span>
                        {% else %}
                            <span class="label">Secondary</span>
                        {% endif %}
                    </td>
                    <td>
                        <a href="{{ path('UMRA_Residence_show', { 'id': residence.id }) }}">
                            <address>
                                {{ residence.address1 }}<br />
                                {% if residence.address2 %}
                                    {{ residence.address2 }}<br />
                                {% endif %}
                                {% if residence.address3 %}
                                    {{ residence.address3 }}<br />
                                {% endif %}
                                {{ residence. city }}{% if residence.state %}, {{ residence.state }}{% endif %} {{ residence.zip }}<br />
                                {{ residence.country }}
                            </address>
                        </a>
                    </td>
                    <td>
                        <ul class="list-unstyled">
                            {% for phone in residence.phones %}
                                <li>{{ phone.phnumber }} - {{ phone.phtype }}</li>
                            {% endfor %}
                        </ul>
                        <li>
                            <a href="{{ path('UMRA_Phone_new', { 'resId': residence.id }) }}">
                                <small><span class="glyphicon glyphicon-plus"></span> Add</small>
                            </a>
                        </li>
                    </td>
{'fraction_non_alphanumeric': 0.13852242744063326, 'fraction_numerical': 0.003518029903254178, 'mean_word_length': 0.9515229515229515, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 105, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 19, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7661209', 'n_tokens_mistral': 1173, 'n_tokens_neox': 1036, 'n_words': 200}