Commit 01443bc8ec343f8497b8dc5ff892678747185ce1
- Diff rendering mode:
- inline
- side by side
pm/urls.py
(4 / 1)
|   | |||
| 11 | 11 | import tutoriel.urls, tutoriel.views | |
| 12 | 12 | import membre.views | |
| 13 | 13 | import forum.urls, forum.views | |
| 14 | import pages.home | ||
| 14 | import pages.home, pages.help | ||
| 15 | 15 | ||
| 16 | 16 | import messages.views | |
| 17 | 17 | from utils.forms import MyComposeForm | |
| … | … | ||
| 67 | 67 | url(pfx(r'^messages/supprimer/(?P<message_id>[\d]+)/$'), messages.views.delete, name='messages_delete'), | |
| 68 | 68 | url(pfx(r'^messages/retablir/(?P<message_id>[\d]+)/$'), messages.views.undelete, name='messages_undelete'), | |
| 69 | 69 | ||
| 70 | |||
| 71 | # Aide memoire markdown | ||
| 72 | url(pfx(r'^help/markdown/'), pages.help.markdown), | ||
| 70 | 73 | ) | |
| 71 | 74 | ||
| 72 | 75 | if settings.DEBUG: |
public/assets/css/style.css
(1 / 0)
|   | |||
| 287 | 287 | .deplacer select { background-color : white; border : 1px solid grey; border-radius : 3px; -moz-border-radius : 3px;} | |
| 288 | 288 | input { border : 1px solid grey; /* border-radius : 3px; -moz-border-radius : 3px; */} | |
| 289 | 289 | input[type="submit"] { background-color : #EEE; border-radius : 3px; cursor: pointer;} | |
| 290 | input:hover { border : 1px solid orange; } | ||
| 290 | 291 | ||
| 291 | 292 | .haut-topic { padding-bottom : 10px; } |
templates/forum/edit.html
(1 / 0)
|   | |||
| 11 | 11 | <p><label for="titre">Titre :</label> <input id="titre"name="titre" type="texte" value="{{ post.topic.sujet }}" /></p> | |
| 12 | 12 | <p><label for="soustitre">Sous-titre :</label> <input id="soustitre" name="soustitre" type="texte" value="{{ post.topic.soustitre }}" /></p> | |
| 13 | 13 | {% endif %} | |
| 14 | {% include "markdown.html" %} | ||
| 14 | 15 | <p><textarea name="texte" rows="10" cols="50">{{ texte }}</textarea></p> | |
| 15 | 16 | <p><input type="submit" value="Envoyer" /> <input type="submit" name="preview" value="Aperçu" /></p> | |
| 16 | 17 | </form> |
templates/forum/new.html
(2 / 1)
|   | |||
| 8 | 8 | <form action="" method="POST"> | |
| 9 | 9 | <p><label for="id_sujet">Sujet:</label>{{ form.titre }}<p> | |
| 10 | 10 | <p><label for="id_soustitre">Sous-titre:</label>{{ form.soustitre }}</p> | |
| 11 | <p><label for="id_sujet">Texte:</label>{{ form.texte }}</p> | ||
| 11 | <p><label for="id_sujet">Texte:</label> | ||
| 12 | {% include "markdown.html" %}{{ form.texte }}</p> | ||
| 12 | 13 | <p><input type="submit" value="Envoyer" /> <input type="submit" name="preview" value="Aperçu" /></p> | |
| 13 | 14 | </form> | |
| 14 | 15 | {% if preview %} |
templates/forum/topic.html
(1 / 0)
|   | |||
| 116 | 116 | {% endif %} | |
| 117 | 117 | {% if user.is_authenticated %} | |
| 118 | 118 | <form action="{% url forum.views.reply topic_id=topic.id %}?page={{ id_page }}#view-post" method="POST"> | |
| 119 | {% include "markdown.html" %} | ||
| 119 | 120 | <p><textarea name="texte" rows="10" cols="50">{{ texte }}</textarea></p> | |
| 120 | 121 | <p><input type="submit" value="Envoyer" /> <input type="submit" name="preview" value="Aperçu" /></p> | |
| 121 | 122 | </form> |
|   | |||
| 7 | 7 | <form action="" method="POST"> | |
| 8 | 8 | <p><label for="id_website">Site web:</label>{{ form.website }}<p> | |
| 9 | 9 | <p><label for="id_avatar">Avatar:</label>{{ form.avatar }} <a href="{% url membre.views.use_gravatar half_key=half_key %}">Utiliser gravatar</a><p> | |
| 10 | <p><label for="id_signature">Signature:</label>{{ form.signature }}<p> | ||
| 10 | <p><label for="id_signature">Signature:</label> | ||
| 11 | {% include "markdown.html" %}{{ form.signature }}<p> | ||
| 11 | 12 | <p><label for="id_description">Présentation:</label>{{ form.description }}<p> | |
| 12 | 13 | <p><div style="float : left;">{{ form.afficher_mail }}</div><label for="id_afficher_mail">Afficher mon adresse mail aux utilisateur connectés (vivement conseillé)</label></p> | |
| 13 | 14 | <p><label for="id_timezone">Fuseau horaire:</label>{{ form.timezone }}</p> |
|   | |||
| 68 | 68 | </ul> | |
| 69 | 69 | {% endif %} | |
| 70 | 70 | <form action="{% url nouvelle.views.comment nouvelle_id=news.id%}#view-post" method="post"> | |
| 71 | {% include "markdown.html" %} | ||
| 71 | 72 | <p><textarea name="texte" rows="10" cols="50">{{ texte }}</textarea></p> | |
| 72 | 73 | <p><input type="submit" value="Envoyer" /> <input type="submit" name="preview" value="Aperçu"/></p> | |
| 73 | 74 | </form> |
templates/nouvelle/post.html
(1 / 0)
|   | |||
| 6 | 6 | {% block content %} | |
| 7 | 7 | ||
| 8 | 8 | <form action="" method="POST"> | |
| 9 | {% include "markdown.html" %} | ||
| 9 | 10 | {{ form.as_p }} | |
| 10 | 11 | <input type="submit" value="Proposer" /> | |
| 11 | 12 | </form> |

