summaryrefslogtreecommitdiffstats
path: root/virtualenv/pffedportal
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2012-06-29 14:00:37 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2012-06-29 14:00:37 (GMT)
commit2f961a9238afe9879a14eb136f4dfb9f4515bda2 (patch)
tree01a49a072242e2a27617d87de02ae2a063b5443e /virtualenv/pffedportal
parent4234547917d2e09f2b657cc2a9b951eeb71cf0c5 (diff)
downloadunivnautes-old-2f961a9238afe9879a14eb136f4dfb9f4515bda2.zip
univnautes-old-2f961a9238afe9879a14eb136f4dfb9f4515bda2.tar.gz
univnautes-old-2f961a9238afe9879a14eb136f4dfb9f4515bda2.tar.bz2
mail form, mobile template
Diffstat (limited to 'virtualenv/pffedportal')
-rw-r--r--virtualenv/pffedportal/media/mobile/eduspot.css4
-rw-r--r--virtualenv/pffedportal/templates/mobile/mail.html37
2 files changed, 41 insertions, 0 deletions
diff --git a/virtualenv/pffedportal/media/mobile/eduspot.css b/virtualenv/pffedportal/media/mobile/eduspot.css
index cf5ab8a..189b3df 100644
--- a/virtualenv/pffedportal/media/mobile/eduspot.css
+++ b/virtualenv/pffedportal/media/mobile/eduspot.css
@@ -8,3 +8,7 @@ img.logo-eduspot {
height: 64px;
}
+span.error {
+ color: red;
+}
+
diff --git a/virtualenv/pffedportal/templates/mobile/mail.html b/virtualenv/pffedportal/templates/mobile/mail.html
new file mode 100644
index 0000000..f2d35af
--- /dev/null
+++ b/virtualenv/pffedportal/templates/mobile/mail.html
@@ -0,0 +1,37 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block title %}Accès Internet :: Formulaire de contact{% endblock %}
+
+{% block content %}
+<nav>
+<h2>Formulaire de contact</h2>
+
+ <p>Utilisez ce formulaire pour signaler les soucis que vous avez
+ rencontrés en utilisant ce système.</p>
+
+ {% if messages %}
+ <p class="messages"><strong>
+ {% for message in messages %}
+ <span{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</span><br />
+ {% endfor %}
+ </strong></p>
+ {% endif %}
+
+ <form action="/mail" method="POST" data-ajax="false">
+ {% csrf_token %}
+ {% for field in form %}
+ <p>
+ {{ field.label }}<br />
+ {% for error in field.errors %}<span class="error">{{error}}</span><br />{% endfor %}
+ {{ field }}
+ <br/>
+ <span class="help">{{ field.help_text }}</span>
+ </p>
+ {% endfor %}
+ <br />
+ <input id="submit" type="submit" value="Envoyer le message" data-icon="gear" data-iconpos="top" data-ajax="false" />
+ </form>
+</nav>
+{% endblock %}
+