root / invitations / templates / invitations.html @ a697f671
History | View | Annotate | Download (2.3 kB)
1 |
{% load i18n %} |
---|---|
2 |
<div class="invitations-left">({% blocktrans count invitations_left as left %} |
3 |
{{ left }} invitation left |
4 |
{% plural %} |
5 |
{{ left }} invitations left |
6 |
{% endblocktrans %})</div>
|
7 |
|
8 |
{% if invitations_left > 0 %}
|
9 |
<form action="/invitations/" method="post" id="invform"> |
10 |
{% csrf_token %} |
11 |
|
12 |
{% if errors %} |
13 |
<div id="errors"> |
14 |
<ul>
|
15 |
{% for error in errors %} |
16 |
<li>{{ error }}</li> |
17 |
{% endfor %} |
18 |
</ul>
|
19 |
</div>
|
20 |
{% endif %} |
21 |
|
22 |
<div id="fieldheaders" class="clearfix"> |
23 |
<span id="field_name_name">{% trans "Name" %}<span class="description">(e.g. John Smith)</span></span> |
24 |
<span id="field_email_name">{% trans "Email" %}</span> |
25 |
</div>
|
26 |
<div id="fields"> |
27 |
<div id="removable-name-container-1" class="removable-field-row"><input type="text" name="name_1" id="name_1" value="" class="textInput removable" /><input type="text" name="email_1" id="email_1" value="" class="textInput removable" /><img src="/static/spacer.gif" width="16" height="16" alt="" title="Remove This Item" class="" /> |
28 |
</div>
|
29 |
<div id="add-name-container" class="add-field-container"> |
30 |
<span class="add-field-trigger"> |
31 |
<img src="/static/add.gif" alt="" title="Add New Item" /> |
32 |
{% trans "Add invitation" %} |
33 |
</span>
|
34 |
</div>
|
35 |
</div>
|
36 |
<p><input class="submit" type="submit" value="{% trans "Send " %}" /></p> |
37 |
</form>
|
38 |
{% else %} |
39 |
|
40 |
<div class="no-invitations-left"> |
41 |
<p>
|
42 |
{% blocktrans %} |
43 |
You have no invitations left in your account. |
44 |
{% endblocktrans %} |
45 |
</p>
|
46 |
</div>
|
47 |
{% endif %} |
48 |
|
49 |
<div id="invsent"> |
50 |
|
51 |
<h3 class="clearfix">{% trans "Sent invitations" %} |
52 |
<span>(<img src="/static/invitation_accepted.png" alt="{% trans "Invitation " %}"> = {% trans "Invitation has been accepted" %})</span></h3> |
53 |
<div>
|
54 |
<ul>
|
55 |
{% for inv in invitations %} |
56 |
<li class="clearfix {% if inv.accepted %}accepted{% endif %}"> |
57 |
{% if inv.accepted %} |
58 |
<img src="/static/invitation_accepted.png" alt="{% trans "Invitation " %}"> |
59 |
{% endif %} |
60 |
<span class="name">{{ inv.targetname }}</span> <span class="email">{{ inv.target }}</span> |
61 |
</li>
|
62 |
{% endfor %} |
63 |
</ul>
|
64 |
</div>
|
65 |
</div>
|