feedbackform.html 3.47 KB
Newer Older
okhin's avatar
okhin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
    <div class="row">
        <div class="container">
            <div class="col m6 s12">
                <include href="argumentation.html">
            </div>
            <div class="col m6 s12">
                <div class="card horizontal sticky-action">
                    <div class="card-image">
                        <img src="<check if="{{ @contact.photo == '' }}">/static/img/placeholder.jpg<false>{{ @contact.photo }}</false></check>">
                        <p>{{ _("Phone number") }}: <a href="tel:{{ @contact.phone }}">{{ @contact.phone }}</a></p>
                    </div>
                    <div class="card-content">
                        <span class="card-title grey-text text-darken-4">{{ @contact.first_name }} {{ @contact.last_name }}</span>
                        <div class="groups">
                            <repeat group="{{ @contact.groups }}" value="{{ @group }}">
                            <check if="{{ @group.type == 'country' }}">
                            <span class="chip">
                                <img src="{{ 'http://www.europarl.europa.eu/ep_framework/img/flag/flag_icon_' . str_replace('/', '', strtolower(@group.name)) . '.gif'}}">
                                {{ @group.name }}
                            </span>
okhin's avatar
okhin committed
21
                            </check>
okhin's avatar
okhin committed
22 23 24 25 26 27 28 29 30
                            </repeat>
                            <repeat group="{{ @contact.groups }}" value="{{ @group }}">
                            <check if="{{ @group.type == 'group' }}">
                            <span class="chip">
                                <img src="{{ 'http://www.europarl.europa.eu/ep_framework/img/group/group_iconsmall_' . str_replace('/', '', strtolower(@group.name)) . '.png'}}">
                                {{ @group.name }}
                            </span>
                            </check>
                            </repeat>
okhin's avatar
okhin committed
31
                        </div>
okhin's avatar
okhin committed
32 33 34 35 36 37 38 39 40 41
                        <div class="groups">
                            <repeat group="{{ @contact.groups }}" value="{{ @group }}">
                            <check if="{{ @group.type == 'committee'}}">
                            <span class="chip blue white-text committee">
                                {{ @group.name }}
                            </span>
                            </check>
                            </repeat>
                        </div>
                    </div>
42
                </div>
okhin's avatar
okhin committed
43 44 45 46 47 48 49 50 51 52 53 54 55 56
                <h4>{{ _("Feedback Form") }}</h4>
                <p class="small">{{ _("Please tell us what happened if you were able to talk to someone. Your feedback is important to us.") }}</p>
                <form class="form" method="post" action="/feedback/" >
                    <input type="hidden" id="contact_id" name="contact_id" value="{{ @contact_id }}" />
                    <select name="feedback_category" id="feedback_category" class="input-field">
                    <repeat group="{{ @feedback_categories }}" value="{{ @feedback_category }}">
                        <option value="{{ @feedback_category.id }}">{{ @feedback_category.name }}</option>
                    </repeat>
                    </select>
                    <div class="input-field">
                        <textarea class="materialize-textarea" id="feedback" name="feedback"></textarea>
                    </div>
                    <input type="submit" class="btn btn-primary" name="go" value="{{ _("Send my feedback") }}" />
                </form>
57 58 59 60
            </div>
        </div>
    </div>
</div>