Coverage for ivatar/ivataraccount/templates/_import_photo_form.html: 92%
39 statements
« prev ^ index » next coverage.py v7.8.0, created at 2025-05-12 23:12 +0000
« prev ^ index » next coverage.py v7.8.0, created at 2025-05-12 23:12 +0000
1{% load i18n %}
3{% if not user.is_anonymous %}
4 {% if photos %}
5 <h3>{% trans 'Would you like to import some of these externally hosted photos?' %}</h3>
6 {% if email_id %}
7 <form action="{% url 'import_photo' email_id %}" method="post">{% csrf_token %}
8 <input type="hidden" name="email_id" value="{{ email_id }}">
9 {% else %}
10 <form action="{% url 'import_photo' %}" method="post">{% csrf_token %}
11 <input type="hidden" name="email_addr" value="{{ email_addr }}">
12 {% endif %}
13 <div class="row">
14 {% for photo in photos %}
15 <div class="panel panel-tortin" style="width:182px;float:left;margin-left:20px">
16 <div class="panel-heading">
17 <h3 class="panel-title">
18 <input type="checkbox" name="photo_{{photo.service_name}}" id="photo_{{photo.service_name}}" checked="checked">
19 <label for="photo_{{photo.service_name}}" style="width:100%">
20 {{ photo.service_name }}
21 {% if photo.service_url %}
22 <a href="{{ photo.service_url }}" style="float:right;color:#FFFFFF"><i class="fa fa-external-link"></i></a>
23 {% endif %}
24 </label>
25 </h3>
26 </div>
27 <div class="panel-body">
28 <center>
29 <img src="{{ photo.thumbnail_url }}" style="max-width: 80px; max-height: 80px;" alt="{{ photo.service_name }} image">
30 </center>
31 </div>
32 </div>
33 {% endfor %}
34 </div>
35 <p>
36 <button type="submit" class="button">{% trans 'Import' %}</button>
37 </p>
38 </form>
39 {% endif %}
40{% endif %}