aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2015-03-28 17:10:43 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2015-03-28 17:10:43 -0400
commit334044d3c9c4814759bcc47228be35c7cfacc888 (patch)
tree78b493cb3b155a35edbd499a48d89c9c805a5163
parentf9f2df0dba03833963e81441d92da399d0017d9a (diff)
downloadfamille-flask-334044d3c9c4814759bcc47228be35c7cfacc888.tar.gz
nicer alignment
-rw-r--r--templates/news/news.html16
1 files changed, 9 insertions, 7 deletions
diff --git a/templates/news/news.html b/templates/news/news.html
index bf59233..08399f3 100644
--- a/templates/news/news.html
+++ b/templates/news/news.html
@@ -16,22 +16,24 @@
{% endif %}
<form class="news_add form-horizontal" role="form" action="{{ url_for('edit_news', news_id=news.id) if news.id else url_for('add_news')}}" method="post">
<div class="form-group">
- <label for="title" class="col-md-3">Titre :</label>
+ <label for="title" class="col-md-3 control-label">Titre :</label>
<div class="col-md-9">
<input id="title" type="text" name="title" class="form-control" value="{{news.title if news}}"/>
</div>
</div>
<div class="form-group">
- <label for="content" class="col-md-3">Contenu :</label>
+ <label for="content" class="col-md-3 control-label">Contenu :</label>
<div class="col-md-9">
<textarea rows="15" name="content" class="form-control">{{news.content if news}}</textarea>
</div>
</div>
- <div class="col-md-offset-3">
- <button type="submit" class="btn btn-primary"
- name="Add">Ajouter</button>
- <button type="submit" class="btn btn-primary"
- name="Modifier">Aperçu</button>
+ <div class="form-group">
+ <div class="col-md-offset-3 col-md-9">
+ <button type="submit" class="btn btn-primary"
+ name="Add">Ajouter</button>
+ <button type="submit" class="btn btn-primary"
+ name="Modifier">Aperçu</button>
+ </div>
</div>
</form>
{% endblock %}