Commit beee18ef authored by Paul "sarcozy" Baroux's avatar Paul "sarcozy" Baroux

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

parent e7c71c63
......@@ -10,6 +10,15 @@
<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">
......@@ -17,7 +26,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>
......@@ -29,14 +38,5 @@
{% 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