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

37 statements  

« prev     ^ index     » next       coverage.py v7.4.4, created at 2024-04-22 23:10 +0000

1{% extends 'base.html' %} 

2{% load i18n %} 

3  

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

5  

6{% block content %} 

7<style> 

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

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

10font-family: FontAwesome; 

11display: inline-block; 

12} 

13input[type=checkbox] + label:before {content: "\f096"} 

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

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

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

17</style> 

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

19  

20{% if not email_id %} 

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

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

23<div class="form-group"> 

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

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

26</div> 

27<div class="form-group"> 

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

29</div> 

30 </form> 

31 <script> 

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

33 function(self) { 

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

35 return false; 

36 }; 

37 </script> 

38</div> 

39{% endif %} 

40  

41{% include '_import_photo_form.html' %} 

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

43{% endblock content %}