SFS/templates/file_edit.html

34 lines
1.6 KiB
HTML

{% extends "base.html" %}
{% block title %} Administration {% endblock %}
{% block titre %} Administration : Edit {{f.name}} {% endblock %}
{% block contenu %}
<div id="zone-de-contenu">
<form method="POST" action="">
<div style="width:100%;margin:20px;"> </div>
<fieldset class="fieldset"><legend style="font-size:25px;">File</legend>
{% for message in get_flashed_messages() %}
<div class="alert" id="alert{{loop.index}}">
<button type="button" class="close" onclick="javascript:hidealert('alert{{loop.index}}')">&times;</button>
{{ message }}
</div>
{% endfor %}
<table width=100%>
<tr><td>Name : </td><td> <input type="text" name="name" value="{{f.name}}" readonly="readonly" /></td></tr>
<tr><td>Description : </td><td> <input type="text" name="desc" placeholder="This is a file" {% if f.desc is not none %} value="{{f.desc}}" {% endif %} /></td></tr>
<tr><td> Password : </td><td> {% if f.password == "" %} No {% else %} Yes {% endif %}</td></tr>
<tr><td> Change password : </td><td> <input type="password" name="password" placeholder="XXXX"/></td></tr>
<tr><td>Publicly visible : </td><td> <input type="checkbox" name="visible" value='1' {% if f.visible %} checked {%endif%}/></td></tr>
<tr><td>Date : </td><td> {{f.date}} </td></tr>
<tr><td>&nbsp;</td> <td><input id="submit" type="submit" value="&nbsp;OK&nbsp;"></td></tr>
</table>
</fieldset>
</form>
</div>
{% endblock %}