56 lines
2.3 KiB
Django/Jinja
56 lines
2.3 KiB
Django/Jinja
{% extends "cao_blogr:templates/layout.jinja2" %}
|
|
|
|
{% block content %}
|
|
{% if message %}
|
|
{{ message }}
|
|
{% endif %}
|
|
|
|
<p class="text-center">
|
|
<img src="{{ file_url }}" alt="" />
|
|
</p>
|
|
|
|
<form action="{{request.route_url('image_edit', filename=filename)}}" method="post" class="form">
|
|
|
|
<div class="form-group">
|
|
<label for="password">Nouveau nom</label>
|
|
<input type="text" name="new_name" class="form-control" value="{{ filename }}">
|
|
</div>
|
|
<br>
|
|
<div class="form-group">
|
|
<a class="btn btn-default" href="{{ request.route_url('images') }}"><span class="glyphicon glyphicon-chevron-left"></span> Retour</a>
|
|
<button class="btn btn-primary" type="submit" name="form.submitted">
|
|
<span class="glyphicon glyphicon-ok"></span> Renommer</button>
|
|
<button class="btn btn-danger" type="button" data-toggle="modal" data-target="#confirmDelete">
|
|
<span class="glyphicon glyphicon-remove"></span> Supprimer</button>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<!-- Modal : Confirmation SUPRESSION -->
|
|
<div id="confirmDelete" class="modal" role="dialog">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Supprimer une IMAGES</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<!-- The form is placed inside the body of modal -->
|
|
<p>Etes-vous certain(e) de vouloir supprimer cette image :<br>
|
|
<b>{{ filename }}</b> ?</p>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<div class="form-group">
|
|
<div class="text-center">
|
|
<form id="confirmForm" method="post">
|
|
<button type="submit" class="btn btn-danger" name="form.deleted">Supprimer</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|