26 lines
No EOL
972 B
HTML
26 lines
No EOL
972 B
HTML
{% extends 'gym/base.html' %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h1>{% block title %}{{ equipment.name }} ({{ equipment.room.name }}){% endblock %}</h1>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<a href="{% url 'room-detail' equipment.room.pk %}" class="btn btn-secondary">Retourner à la salle</a>
|
|
<a href="{% url 'setting-create' %}?equipment={{ equipment.pk }}" class="btn btn-success">Ajouter un réglage</a>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h2>Réglages</h2>
|
|
<ul class="list-group">
|
|
{% for setting in equipment.settings.all %}
|
|
<a href="{% url 'setting-edit' setting.pk %}" class="list-group-item">{{ setting.name }}
|
|
: {{ setting.value }}</a>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |