Coverage for ivatar/ivataraccount/templates/choose_libravatar_export.html: 100%
49 statements
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-26 00:11 +0000
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-26 00:11 +0000
1{% extends 'base.html' %}
2{% load i18n %}
3{% load static %}
5{% block title %}{% trans 'Choose items to be uploaded' %}{% endblock title %}
7{% block content %}
8<style>
9input[type=checkbox] {display:none}
10input[type=checkbox].image + label:before {
11font-family: FontAwesome;
12display: inline-block;
13}
14input[type=checkbox].image + label:before {content: "\f096"}
15input[type=checkbox].image + label:before {letter-spacing: 5px}
16input[type=checkbox].image:checked + label:before {content: "\f046"}
17input[type=checkbox].image:checked + label:before {letter-spacing: 3px}
18</style>
19 <h1>{% trans 'Choose items to be imported' %}</h1>
21 <form method="post" action="{% url 'upload_export' 'save' %}">{% csrf_token %}
22 {% if emails %}
23 <h4>{% trans 'Email addresses we found in the export - existing ones will not be re-added' %}</h4>
24 {% for email in emails %}
25 <div class="checkbox">
26 <input type="checkbox" checked name="email_{{ forloop.counter }}" id="email_{{ forloop.counter }}" value="{{ email.email }}" class="text"><label for="email_{{ forloop.counter }}">{{ email.email }}</label>
27 </div>
28 {% endfor %}
29 {% endif %}
30 {% if photos %}
31 <h4>{% trans 'Photos we found in the export' %}</h4>
32<div class="row">
33 {% for photo in photos %}
34<div class="panel panel-tortin" style="width:132px;float:left;margin-left:20px">
35 <div class="panel-heading">
36 <h3 class="panel-title">
37 <input type="checkbox" checked name="photo_{{ forloop.counter }}" id="photo_{{ forloop.counter }}" value="{{ photo.data }}" class="image">
38<label for="photo_{{ forloop.counter }}">{% trans 'Image' %} {{ forloop.counter }}</label>
39</label>
40</h3></div>
41 <div class="panel-body">
42 <center>
43 <img style="max-height:100px;max-width:100px" src="data:image/{{ photo.format }};base64,{{ photo.data }}">
44 </center>
45</div>
46</div>
47 {% endfor %}
48</div>
49 {% endif %}
50<p>
51 <button type="submit" class="button">{% trans 'Upload' %}</button>
52</p>
53 </form>
54<div style="height:40px"></div>
55{% endblock content %}