contact.html 1.61 KB
Newer Older
Mindiell's avatar
Mindiell committed
1
<!-- contact page -->
okhin's avatar
okhin committed
2 3 4 5 6 7 8 9 10
<div class="card sticky-action">
    <div class="card-image">
        <img src="/static/img/124786.jpg">
        <a class="btn-floating btn-large halfway-fab waves-effect activator green"><i class="material-icons">phone</i></a>
    </div>
    <div class="card-content">
        <span class="card-title grey-text text-darken-4">
            {{ @contact.first_name }} {{ @contact.last_name }}
        </span>
okhin's avatar
okhin committed
11 12
        <repeat group="{{ @group_types }}" value="{{ @group_type }}">
        <ul>{{ @group_type.name }}
okhin's avatar
okhin committed
13
        <repeat group="{{ @contact.groups }}" value="{{ @group }}">
okhin's avatar
okhin committed
14 15 16 17 18 19 20 21 22 23
        <check if="{{ @group.type == @group_type.name }}">
            <li class="chip">
                <check if="{{ @group.media }}">
                <img src="{{ @group.media }}" alt="{{ @group.type }}">
                </check>
                {{ @group.name }}
            </li>
        </check>
        </repeat>
        </ul>
okhin's avatar
okhin committed
24 25 26 27 28 29
        </repeat>
    </div>
    <div class="card-reveal">
        <span class="card-title grey-text text-darken-4">{{ @contact.first_name }} {{ @contact.last_name }}
            <i class="material-icons right">close</i>
        </span>
30
        <h5>{{ _("Call this representative" }}</h5>
okhin's avatar
okhin committed
31 32
        <form method="post" action="/call/{{ @contact.id }}">
            <input type="text" id="contact_id" name="contact_id" hidden="hidden" value="{{ @contact.id }}">
33 34
            <a type="button" href="tel:{{ @contact.phone }}" target="_blank">{{ @contact.phone }}</a>
            <input class="btn btn-default" type="submit" value="{{ _('Make the call') }}" />
okhin's avatar
okhin committed
35 36
        </form>
    </div>
37
</div>
Mindiell's avatar
Mindiell committed
38
<!-- contact page -->