Coverage for gui/templates/gui/membership_application.html: 100%

41 statements  

« prev     ^ index     » next       coverage.py v7.2.1, created at 2023-03-14 06:24 +0000

1{% extends 'gui/base.html' %} 

2  

3{% load bootstrap3 %} 

4  

5{% block content %} 

6 <h1>Membership application - {{current_membership_period.short_name}}</h1> 

7  

8 <div class="row"> 

9 <div class="col-md-12"> 

10 <div class="panel panel-default panel-warning" > 

11 <div class="panel-heading">Important information</div> 

12 <div class="panel-body text-center"> 

13 <p>You are about to apply for membership at the X.Org Foundation. Please take the time to review 

14 carefully the <a href="{{current_membership_period.agreement_url}}">membership agreement</a> before proceeding.</p> 

15  

16 <p>Make sure your public statement is accurate and up to date, as administrators will use this information to accept or deny your membership application.</p> 

17 </div> 

18 </div> 

19 </div> 

20  

21 <div class="col-md-12"> 

22 <div class="panel panel-default" > 

23 <div class="panel-heading">Application form</div> 

24 <div class="panel-body"> 

25 <form id="form" method="post"> 

26 {% csrf_token %} 

27 {% bootstrap_form form %} 

28 {% buttons %} 

29 <button type="submit" class="btn btn-primary pull-right"> 

30 Apply 

31 </button> 

32 {% endbuttons %} 

33 </form> 

34 </div> 

35 </div> 

36 </div> 

37  

38 <!-- replace the membership agreement text by a link, for convenience --> 

39 <script type="text/javascript"> 

40 (function($) { 

41 var form = $("#form"); 

42 form.html(form.html().replace(/membership agreement/g, '<a href="{{current_membership_period.agreement_url}}">membership agreement</a>')); 

43 })(jQuery) 

44 </script> 

45 </div> 

46{% endblock %}