-
-
Notifications
You must be signed in to change notification settings - Fork 964
/
contributor-agreement.html
37 lines (30 loc) · 1.03 KB
/
contributor-agreement.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{% extends "base.html" %}
{% load i18n %}
{% load translations %}
{% load crispy_forms_tags %}
{% block breadcrumbs %}
{% path_object_breadcrumbs object %}
<li><a href="{% url 'contributor-agreement' path=object.get_url_path %}">{% trans "Contributor agreement" %}</a></li>
{% endblock %}
{% block content %}
<form action="{% url 'contributor-agreement' path=object.get_url_path %}" method="post" enctype="multipart/form-data">
<div class="panel panel-default">
<div class="panel-heading"><h4 class="panel-title">{% trans "Please review the contributor agreement" %}</h4></div>
<div class="panel-body">
<p>{% trans "Please read following contributor agreement:" %}</p>
<div class="list-group-item pre-scrollable">
{{ object.agreement|markdown }}
</div>
{% csrf_token %}
{% crispy form %}
</div>
<div class="panel-footer">
{% if has_agreed %}
{% trans "You have already agreed to this agreement." %}
{% else %}
<button type="submit" class="btn btn-primary">{% trans "Submit" %}</button>
{% endif %}
</div>
</div>
</form>
{% endblock %}