diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2012-11-07 01:27:36 +0100 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2012-11-07 01:27:36 +0100 |
| commit | df25a48abd69292af55f3356a48a737da829cd20 (patch) | |
| tree | fdb3ba7d659ee5dd379eb41b284bac6832a2d729 /templates/news/show.html | |
| parent | e143cf83baf0c50da27251cee4f5e3a8929586a6 (diff) | |
| download | famille-flask-df25a48abd69292af55f3356a48a737da829cd20.tar.gz | |
Add basic news feature: list, show, add
Diffstat (limited to 'templates/news/show.html')
| -rw-r--r-- | templates/news/show.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/templates/news/show.html b/templates/news/show.html new file mode 100644 index 0000000..da188fe --- /dev/null +++ b/templates/news/show.html @@ -0,0 +1,39 @@ +{% extends 'layout.html' %} + +{% block content %} +<div class="quickview"/> +<h2>Détails</h2> +<ul> + <li>Auteur : <a href="">{{news.name}}</a></li> +<li>Date : {{news.date}} </li> +<!--<li><a href="#comments">{{coments}}</a></li>--> +</div> + +<div class="news"/> +<h1>{{news.title}}</h1> + +<div class="news_content"> +{{news.content}} +</div> + +<hr/> +<!-- +<h2 id="comments">Commentaires</h2> +{% for comment in comments %} +<h3 class="comment">Posté par <a href="/user/view/name/<?=$comment['name']?>">{{comment.author}}</a> le {{comment.date}} </h3> +<div class="comment_content"/> +{{comment.text}} +</div> +{% endfor %} + +<h2 id="add">Ajouter un commentaire</h2> + +<form class="comment_add" method="post" action="/home/view/id/<?=$this->news['id']?>/#add"> +<textarea name="content" cols="90" rows="10"> +</textarea> + +<p class="submit"><input type="submit" value="Ajouter"/></p> +--> +</div> +<div style="clear:both"/> +{% endblock %} |
