Skip to content
Snippets Groups Projects
Commit 2d49fcd3 authored by Administrator's avatar Administrator
Browse files

Call variables by their actual name

/close #50
parent a3cc09dc
Branches
No related tags found
No related merge requests found
...@@ -284,7 +284,7 @@ def edit_reminder(meetingreminder): ...@@ -284,7 +284,7 @@ def edit_reminder(meetingreminder):
form.populate_obj(meetingreminder) form.populate_obj(meetingreminder)
db.session.commit() db.session.commit()
return redirect(request.args.get("next") or url_for("show_type", protocoltype_id=protocoltype.id)) return redirect(request.args.get("next") or url_for("show_type", protocoltype_id=protocoltype.id))
return render_template("reminder-edit.html", form=form, protocoltype=protocoltype, meetingreminder=meetingreminder) return render_template("reminder-edit.html", form=form, meetingreminder=meetingreminder)
@app.route("/type/reminder/delete/<int:meetingreminder_id>") @app.route("/type/reminder/delete/<int:meetingreminder_id>")
@login_required @login_required
......
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
{% block content %} {% block content %}
<div class="container"> <div class="container">
{{render_form(form, action_url=url_for("edit_defaultmeta", defaultmeta_id=meta.id, next=url_for("show_type", protocoltype_id=meta.protocoltype.id)), action_text="Ändern")}} {{render_form(form, action_url=url_for("edit_defaultmeta", defaultmeta_id=defaultmeta.id, next=url_for("show_type", protocoltype_id=defaultmeta.protocoltype.id)), action_text="Ändern")}}
</div> </div>
{% endblock %} {% endblock %}
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
{% block content %} {% block content %}
<div class="container"> <div class="container">
{{render_form(form, action_url=url_for("edit_reminder", meetingreminder_id=meetingreminder.id, next=url_for("show_type", protocoltype_id=protocoltype.id)), action_text="Ändern")}} {{render_form(form, action_url=url_for("edit_reminder", meetingreminder_id=meetingreminder.id, next=url_for("show_type", protocoltype_id=meetingreminder.protocoltype.id)), action_text="Ändern")}}
</div> </div>
{% endblock %} {% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment