contact.html 2.26 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 30 31 32 33 34
        </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>
        <h5>{{ _("Call for free") }}</h5>
        <form method="post" action="/call/{{ @contact.id }}">
            <input type="text" id="contact_id" name="contact_id" hidden="hidden" value="{{ @contact.id }}">
            <p>{{ _("If you want to call for free, you must provide us with your phone number 
            (the PiPhone will call that number to initiate the communication).") }}</p>
okhin's avatar
okhin committed
35
            <div class="input-field col s12">
okhin's avatar
okhin committed
36 37 38 39 40 41 42 43 44 45 46 47
                <label for="phone">{{_("Your phone number:") }}</label>
                <input type="text" name="phone" id="phone" />
            </div>
            <p>
                {{ _('Starting with your <a href="https://en.wikipedia.org/wiki/List_of_country_calling_codes#Zones_3-4:_Europe">country code</a>, without the initial 0') }}
            </p>
            <input class="btn btn-default" type="submit" value="{{ _('Call me') }}" />
        </form>
    </div>
    <div class="card-action">
        <a type="button" href="#">{{ _("More info") }}</a>
        <a type="button" href="tel:{{ @contact.phone }}" target="_blank">{{ @contact.phone }}</a>
48 49
    </div>
</div>
Mindiell's avatar
Mindiell committed
50
<!-- contact page -->