root / invitations / templates / invitations.html @ 7970aa87
History | View | Annotate | Download (3.1 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" class="error-msg"> |
14 |
<p>{% trans "Invite error(s) occured" %}</p> |
15 |
|
16 |
<ul>
|
17 |
{% for error in errors %} |
18 |
<li>- {{ error }}</li> |
19 |
{% endfor %} |
20 |
</ul>
|
21 |
</div>
|
22 |
{% endif %} |
23 |
|
24 |
<div id="fieldheaders" class="clearfix"> |
25 |
<span id="field_name_name">{% trans "Name" %}<span class="description">(e.g. John Smith)</span></span> |
26 |
<span id="field_email_name">{% trans "Email" %}</span> |
27 |
</div>
|
28 |
<div id="fields"> |
29 |
<div id="removable-name-container-1" class="removable-field-row"><input |
30 |
type="text" name="name_1" id="name_1" value="" class="textInput |
31 |
removable" /><input type="text" name="email_1" id="email_1" value="" |
32 |
class="textInput removable" /><img src="{{ MEDIA_URL }}spacer.gif" width="16" height="16" alt="" title="Remove This Item" class="" /> |
33 |
</div>
|
34 |
<div id="add-name-container" class="add-field-container"> |
35 |
<span class="add-field-trigger"> |
36 |
<img src="{{ MEDIA_URL }}add.gif" alt="" title="Add New Item" /> |
37 |
{% trans "Add invitation" %} |
38 |
</span>
|
39 |
</div>
|
40 |
</div>
|
41 |
|
42 |
<p>
|
43 |
<input class="submit" type="submit" value="{% trans "Send " %}" /> |
44 |
<img src="{{ MEDIA_URL }}progress-tiny.gif" class="sending" /> |
45 |
</p>
|
46 |
</form>
|
47 |
{% else %} |
48 |
|
49 |
<div class="no-invitations-left"> |
50 |
<p>
|
51 |
{% blocktrans %} |
52 |
You have no invitations left in your account. |
53 |
{% endblocktrans %} |
54 |
</p>
|
55 |
</div>
|
56 |
{% endif %} |
57 |
|
58 |
<div id="invsent"> |
59 |
|
60 |
<h3 class="clearfix overlay-inner-title">{% trans "Sent invitations" %}</h3> |
61 |
|
62 |
<div class="messages"> |
63 |
<div class="message errormsg"></div> |
64 |
<div class="message success"></div> |
65 |
</div>
|
66 |
|
67 |
<div>
|
68 |
<ul class="invsent-list"> |
69 |
{% for inv in invitations %} |
70 |
<li class="clearfix {% if inv.accepted %}accepted{% endif %}"> |
71 |
{% if inv.accepted %} |
72 |
<img src="{{ MEDIA_URL }}invitation_accepted.png" alt="{% trans "Invitation " %}"> |
73 |
{% else %} |
74 |
<span class="resend-invitation" id="inv-{{ inv.id }}"> |
75 |
<img src="{{ MEDIA_URL }}resend.png" alt="{% trans "Resend " %}" class="resend"> |
76 |
</span>
|
77 |
{% endif %} |
78 |
<span class="name">{{ inv.targetname }}</span> <span class="email">{{ inv.target }}</span> |
79 |
</li>
|
80 |
{% endfor %} |
81 |
</ul>
|
82 |
|
83 |
<div class="pages clearfix"></div> |
84 |
|
85 |
<div class="icons-info"> |
86 |
<span>(<img src="{{ MEDIA_URL }}invitation_accepted.png" alt="{% trans "Invitation " %}"> = {% trans "Invitation has been accepted" %})</span> |
87 |
<span>(<img src="{{ MEDIA_URL }}resend.png" alt="{% trans "Resend " %}"> = {% trans "Send invitation again" %})</span> |
88 |
</div>
|
89 |
</div>
|
90 |
</div>
|