{% extends "base.html" %}
{% load i18n %} 

<!--
        Title
-->
{% block title %}{% trans "Set details" %}{% endblock %}


<!--
        Main Content
-->
{% block content %}

<h2>{% trans "Edit" %} {{ day.description }}</h2>

{% if set.id %}
<form action="/workout/{{ workout.id}}/day/{{ day.id }}/edit/set/{{ set.id }}" method="post">
{% else %}
<form action="/workout/{{ workout.id}}/day/{{ day.id }}/edit/set/" method="post">
{% endif %}
    {% csrf_token %}
    {{ set_form.as_p }}
    <input type="submit" value="{% trans "Save" %}" />
</form>


{% endblock %}


<!--
        Side bar
-->
{% block sidebar %}
{% endblock %}
{% extends "base.html" %}
{% load i18n %} 

<!--
        Title
-->
{% block title %}{% trans "Set details" %}{% endblock %}


<!--
        Main Content
-->
{% block content %}

<h2>{% trans "Edit" %} {{ day.description }}</h2>

<form action="/workout/{{ workout.id}}/day/{{ day.id }}/edit/set/{% if set.id %}{{ set.id }}{% endif %}"
      method="post"
      class="ym-form">
<table>
    {% csrf_token %}
    {% include "form_snippet.html" with field=set_form.exercises css_class="ym-fbox-select" %}
    {% include "form_snippet.html" with field=set_form.order %}
    {% include "form_snippet.html" with field=set_form.sets %}
    
    <tr>
        <td><input type="submit" value="{% trans "Save" %}" /></td>
        <td></td>
    </tr>
</table>
</form>


{% endblock %}


<!--
        Side bar
-->
{% block sidebar %}
{% endblock %}
Use the form_snippet on the sets form
Use the form_snippet on the sets form
