mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-26 11:04:20 +00:00
26 lines
743 B
Django/Jinja
26 lines
743 B
Django/Jinja
{% extends "core/base.jinja" %}
|
|
|
|
{% block title %}
|
|
{% trans %}Launderette admin list{% endtrans %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if user.is_root %}
|
|
<p><a href="{{ url('launderette:launderette_new') }}">{% trans %}New launderette{% endtrans %}</a></p>
|
|
{% endif %}
|
|
{% if launderette_list %}
|
|
<h3>{% trans %}Launderette admin list{% endtrans %}</h3>
|
|
<ul>
|
|
{% for l in launderette_list %}
|
|
<li><a href="{{ url('launderette:launderette_admin', launderette_id=l.id) }}">{{ l }}</a> -
|
|
<a href="{{ url('launderette:launderette_edit', launderette_id=l.id) }}">{% trans %}Edit{% endtrans %}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
{% trans %}There is no launderette in this website.{% endtrans %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
|
|
|