Minor fix to the invitation system
[e_cidadania.git] / src / e_cidadania / templates / invite.html
blob4cf421b13abbdb8c46bbe5715d065d65a16e30b0
1 {% extends "base.html" %}
2 {% load i18n %}
4 {% comment %}
5 READ THIS: There is a reason why I made this instead of creating a proper
6 application with txt files and that's efficiency.
7 {% endcomment %}
9 {% block title %}{% trans "Invite your friends to e-cidadania" %}{% endblock %}
11 {% block content %}
13 <div class="row">
14 <div class="span12">
15 <h2>{% trans "Invite your friends"%}</h2>
16 <h4>Invite via social media</h4><br />
17 <a href="https://www.facebook.com/sharer.php?u={{ uri }}&t=Invitation to e-cidadania" target="_blank"><img src="{{ STATIC_URL }}/img/facebook.png" width="50" height="50"/></a><a href="https://twitter.com/share?text=Come to e-cidadania&url={{ uri }}" target="_blank"><img src="{{ STATIC_URL }}/img/twitter.png" width="50" height="50"/></a><a href="https://plusone.google.com/_/+1/confirm?hl=en&url={{ uri }}" target="_blank"><img src="{{ STATIC_URL }}/img/googleplus.jpg" width="50" height="50"/></a><br /><br />
19 {% if user.is_authenticated %}
20 <form action="/invite/" method="post">{% csrf_token %}
21 <label><h4>{% trans "Invite via E-mail" %}</h4></label>
22 <input name="email_addr" id="email_addr" type="text" class="span3" placeholder="{% trans 'Write the e-mail adresses here' %}">
23 <p class="help-block">{% trans "If you want to invite more than one person, you will have to write their adresses separated by commas. Example: this@that.com, foo@bar.net, black@white.org" %}</p><br />
24 <textarea name="mail_msg" id="mail_msg" rows="10" style="width:500px;">{% trans "Hi!, I would like you to join e-cidadania, the participative democracy platform for citizens."%}</textarea>
25 <p class="help-block">{% trans "You can write here whatever text you want for your invitation, or leave it by default." %}</p>
26 <button type="submit" class="btn btn-large">{% trans "Submit" %}</button>
27 </form>
28 {% else %}
29 <p>{% trans "To send invitations via e-mail you have to be <a href='/accounts/login/'>logged in</a>."%}
30 {% endif %}
31 </div>
32 </div>
34 {% endblock %}