38 lines
No EOL
1.2 KiB
HTML
38 lines
No EOL
1.2 KiB
HTML
{% extends 'gym/base.html' %}
|
|
{% load bootstrap4 %}
|
|
{% load static %}
|
|
{% load l10n %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h1>{% block title %}{{ title }} une série{% endblock %}</h1>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
{% if equipment %}
|
|
<a href="{% url 'equipment-detail' equipment.pk %}" class="btn btn-secondary">Retourner à la machine</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<form action="" method="post">
|
|
{% csrf_token %}
|
|
{% bootstrap_form form %}
|
|
{% buttons %}
|
|
<button type="submit" class="btn btn-success">Valider</button>
|
|
{% if edit %}
|
|
<a href="{% url 'setting-delete' setting.pk %}" class="btn btn-danger">Supprimer</a>
|
|
{% endif %}
|
|
{% endbuttons %}
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
|
<script>var max_theorique = {% localize off %}{{ equipment.last_theoretical_max.value }}{% endlocalize %};</script>
|
|
<script src="{% static 'gym/round.js' %}"></script>
|
|
{% endblock %} |