2020-11-29 02:05:19 +01:00
{% extends 'up_squelette.html' %}
{% block navbar %}
<!-- Fixed navbar -->
< div class = "navbar navbar-inverse navbar-fixed-top" role = "navigation" >
< div class = "container" >
< div class = "navbar-header" >
< button type = "button" class = "navbar-toggle" data-toggle = "collapse" data-target = ".navbar-collapse" >
< span class = "sr-only" > Toggle navigation< / span >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< / button >
<!-- <li class="active"><a href="/blog/">Blog</a></li> -->
< / div >
< div class = "navbar-collapse collapse" >
< ul class = "nav navbar-nav" >
< li class = "active" > < a href = "/blog" > < span class = "glyphicon glyphicon-globe" aria-hidden = "true" > < / span > Blog< / a > < / li >
< li > < a href = "/upload/" > < span class = "glyphicon glyphicon-cloud-upload" aria-hidden = "true" > < / span > Upload< / a > < / li >
< li > < a href = "/view/" > < span class = "glyphicon glyphicon-cloud-download" aria-hidden = "true" > < / span > Fichiers< / a > < / li >
< li > < a href = "/gallery/" > < span class = "glyphicon glyphicon-eye-open" aria-hidden = "true" > < / span > Gallerie< / a > < / li >
< li > < a href = "/logs/" > < span class = "glyphicon glyphicon-floppy-disk" aria-hidden = "true" > < / span > Logs< / a > < / li >
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > < span class = "glyphicon glyphicon-home" aria-hidden = "true" > < / span > < span id = "majuscule" > {{ session['username'] }} < / span > < span class = "caret" > < / span > < / a >
< ul class = "dropdown-menu" role = "menu" >
< li > < a href = "/profil/{{ session['username'] }}" > < span class = "glyphicon glyphicon-user" aria-hidden = "true" > < / span > Profil< / a > < / li >
< li > < a href = "/parametres/" > < span class = "glyphicon glyphicon-cog" aria-hidden = "true" > < / span > Paramètres< / a > < / li >
< li class = "divider" > < / li >
<!-- <li class="dropdown - header">Nav header</li> -->
< li > < a href = "/logout/" > < span class = "glyphicon glyphicon-off" aria-hidden = "true" > < / span > Déconnexion< / a > < / li >
< / ul >
< / li >
< / ul >
< ul class = "nav navbar-nav navbar-right" >
< li > < a href = "/logout/" > < span class = "glyphicon glyphicon-off" aria-hidden = "true" > < / span > Exit< / a > < / li >
< / ul >
< / div > <!-- /.nav - collapse -->
< / div >
< / div >
{% endblock %}
{% block main %}
2022-07-05 05:41:20 +02:00
<!-- Main jumbotron for a primary marketing message or call to action
2020-11-29 02:05:19 +01:00
< div class = "jumbotron" >
< h1 > Blog< / h1 >
< p > < span id = "majuscule" > Hello {{ session['username'] }} ! < / span > Bienvenue sur ce blog communautaire. Les articles de tous les auteurs du site sont actuellement disponibles sur cette page. Une page personnelle vous est fournie à l'adresse : < a href = "/blog/{{ session['username'] }}" > Page perso< / a > < / p >
< p > < a href = "http://flask.pocoo.org/" class = "btn btn-primary btn-lg" role = "button" > En savoir plus » < / a > < / p >
< / div > -->
< div class = "row" >
< div class = "col-sm-1" > < / div >
< div class = "col-sm-10" >
< br / >
< div class = "well" > Vous pouvez modifier votre article. Actuellement seule la date de première édition sera publiée. Prochainement : intégration des edit'time dans la base de donnée.< / div >
< / div >
< / div >
< p class = "lead" >
< form action = "" method = "POST" id = "postform" >
< input type = "text" name = "title" id = "title" placeholder = "Titre" class = "form-control" value = "{{ oldpost[0] }}" > < br / >
2022-07-05 05:41:20 +02:00
< textarea class = "form-control" form = "postform" name = "content" id = "content" placeholder = "Contenu" style = "height: 50%;" > {{ oldpost[1] }}< / textarea > < br / >
2020-11-29 02:05:19 +01:00
< div class = "row" >
< div class = "col-sm-4" > < / div >
< div class = "col-sm-1" > < input type = "radio" name = "status" value = "prive" checked > Privé< / div >
< div class = "col-sm-2" > < / div >
< div class = "col-sm-1" > < input type = "radio" name = "status" value = "public" > Public< br > < / div >
< div class = "col-sm-4" > < / div >
< / div >
< br / >
< button id = "tada" class = "btn btn-default btn-primary" type = "submit" > Publier< / button >
< / form >
< / p >
< br >
{% endblock %}
< / div >