Coverage for ivatar/ivataraccount/templates/_import_photo_form.html: 92%
38 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-22 00:11 +0000
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-22 00:11 +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></div>
26 <div class="panel-body">
27 <center>
28 <img src="{{ photo.thumbnail_url }}" style="max-width: 80px; max-height: 80px;" alt="{{ photo.service_name }} image">
29 </center>
30</div>
31</div>
32 {% endfor %}
33 </div>
34 <p>
35 <button type="submit" class="button">{% trans 'Import' %}</button>
36 </p>
37 </form>
38 {% endif %}
39{% endif %}