Self hosted FLOSS fitness/workout, nutrition and weight tracker
Delete edit templates, this is done now with generic views
Roland Geider32fda02d4e61
diff --git a/exercises/templates/edit_category.html b/exercises/templates/edit_category.htmldeleted file mode 100644index 498f43e98..000000000--- a/exercises/templates/edit_category.html+++ /dev/null@@ -1,43 +0,0 @@-{% extends "base.html" %}-{% load i18n %}--<!--- Title--->-{% block title %}{% trans "Category details" %}{% endblock %}---<!--- Main Content--->-{% block content %}--<h2>{% if category.id %}- {% trans "Edit" %} {{ category.name }}- {% else %}- {% trans "New category" %}- {% endif %}-</h2>-<form action="{% url exercises.views.exercise_category_edit None %}"- method="post"- class="ym-form"- id="category_edit_form">- {% csrf_token %}- {{ category_form.non_field_errors }}-<table>- {% include "form_snippet.html" with field=category_form.name %}- <tr>- <td><input type="submit" value="{% trans 'Save' %}" /></td>- <td></td>- </tr>-</table>-</form>---{% endblock %}---<!--- Side bar--->-{% block sidebar %}{% endblock %}\ No newline at end of filediff --git a/exercises/templates/edit_exercise.html b/exercises/templates/edit_exercise.htmldeleted file mode 100644index 16729d5ad..000000000--- a/exercises/templates/edit_exercise.html+++ /dev/null@@ -1,63 +0,0 @@-{% extends "base.html" %}-{% load i18n %}-{% load staticfiles %}--{% block header %}-<script src="{% static 'js/tinymce/tiny_mce.js' %}"></script>-<script src="{% static 'js/workout-manager.js' %}"></script>-<script type="text/javascript">-init_tinymce();-</script>-{% endblock %}--<!--- Title--->-{% block title %}- {% if exercise.id %}- {% blocktrans with exercisename=exercise.name %}Edit {{exercisename}}{% endblocktrans %}- {% else %}- {% trans "New exercise" %}- {% endif %}-{% endblock %}---<!--- Main Content--->-{% block content %}--<h2>- {% if exercise.id %}- {% blocktrans with exercisename=exercise.name %}Edit {{exercisename}}{% endblocktrans %}- {% else %}- {% trans "New exercise" %}- {% endif %}-</h2>---<form action="{% url exercises.views.exercise_edit id=exercise.id %}"- method="post"- class="ym-form">-{% csrf_token %}-{{ edit_form.non_field_errors }}-<table>- {% include "form_snippet.html" with field=edit_form.category css_class="ym-fbox-select" %}- {% include "form_snippet.html" with field=edit_form.name %}- {% include "form_snippet.html" with field=edit_form.muscles %}- {% include "form_snippet.html" with field=edit_form.description %}- <tr>- <td><input type="submit" value="{% trans 'Save' %}" /></td>- <td></td>- </tr>-</table>-</form>---{% endblock %}---<!--- Side bar--->-{% block sidebar %}{% endblock %}