Commit 02c39918 authored by Paul "sarcozy" Baroux's avatar Paul "sarcozy" Baroux

Revert "Bouton pour rajouter les alias en haut (loin du bouton pour tout supprimer"

This reverts commit beee18ef.
parent bd11d9b7
......@@ -10,15 +10,6 @@
<h1><small>{% trans "Gestion des alias" %}</small></h1>
</div>
{% if compte %}
<form action="" method="post" class="well form-inline">{% csrf_token %}
{{ form.non_field_errors }}
{% for hidden in form.hidden_fields %}
{{ hidden }}
{% endfor %}
<input type="text" autocomplete="off" placeholder="{% trans "Nouvel alias" %}" id="alias" name="alias"/>
<input type="submit" class="btn btn-primary" value="{% trans "Ajouter" %}"/>
</form>
<div class="panel panel-default">
<div class="panel-heading lead">{% blocktrans with pseudo=compte.pseudo%}Alias de {{ pseudo }}{% endblocktrans %}</div>
<table class="table table-condensed table-hover">
......@@ -26,7 +17,7 @@
<tbody>
{% for alias in compte.aliases %}
<tr>
<td>{{ alias.alias }}</td><td><a class="btn btn-danger btn-sm" href="{{ NOTE_ROOT_URL }}comptes/{{ compte.idbde }}/aliases/delete/{{ alias.id }}/">{% trans "Supprimer" %}</a></td>
<td>{{ alias.alias }}</td> <td><a class="btn btn-danger btn-sm" href="{{ NOTE_ROOT_URL }}comptes/{{ compte.idbde }}/aliases/delete/{{ alias.id }}/">{% trans "Supprimer" %}</a></td>
</tr>
{% endfor %}
</tbody>
......@@ -38,5 +29,14 @@
{% endif %}
</table>
</div>
<form action="" method="post" class="well form-inline">{% csrf_token %}
{{ form.non_field_errors }}
{% for hidden in form.hidden_fields %}
{{ hidden }}
{% endfor %}
<input type="text" autocomplete="off" placeholder="{% trans "Nouvel alias" %}" id="alias" name="alias"/>
<input type="submit" class="btn btn-primary" value="{% trans "Ajouter" %}"/>
</form>
{% endif %}
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment