Coverage for ivatar/ivataraccount/templates/import_photo.html: 0%

38 statements  

« prev     ^ index     » next       coverage.py v7.11.0, created at 2025-10-22 11:08 +0000

1{% extends 'base.html' %} 

2{% load i18n %} 

3  

4{% block title %}{% trans 'Import photo' %} - Libravatar{% endblock title %} 

5  

6{% block content %} 

7<style> 

8 input[type=checkbox] {display:none} 

9 input[type=checkbox] + label:before { 

10 font-family: "Font Awesome 7 Free"; 

11 font-weight: 900; 

12 display: inline-block; 

13 } 

14 input[type=checkbox] + label:before {content: "\f0c8"} 

15 input[type=checkbox] + label:before {letter-spacing: 5px} 

16 input[type=checkbox]:checked + label:before {content: "\f14a"} 

17 input[type=checkbox]:checked + label:before {letter-spacing: 3px} 

18</style> 

19<h1>{% trans 'Import photo' %}</h1> 

20  

21{% if not email_id %} 

22 <div style="max-width:640px"> 

23 <form action="{% url 'import_photo' %}" method="get" id="check_mail_form"> 

24 <div class="form-group"> 

25 <label for="check_email_addr">{% trans 'Email Address' %}</label> 

26 <input type="text" name="check_email_addr" class="form-control" value="{{ email_addr }}"> 

27 </div> 

28 <div class="form-group"> 

29 <button type="submit" class="button">{% trans 'Check' %}</button> 

30 </div> 

31 </form> 

32 <script> 

33 document.getElementById('check_mail_form').onsubmit = 

34 function(self) { 

35 window.location.href = "{% url 'import_photo' %}" + document.getElementsByName('check_email_addr')[0].value; 

36 return false; 

37 }; 

38 </script> 

39 </div> 

40{% endif %} 

41  

42{% include '_import_photo_form.html' %} 

43<div style="height:40px"></div> 

44{% endblock content %}