Skip to content
Snippets Groups Projects
Commit 63797913 authored by Felix Schäfer's avatar Felix Schäfer :construction_worker:
Browse files

Better adhere to suggested Pretix view style

parent e8d18d56
No related branches found
No related tags found
No related merge requests found
......@@ -6,8 +6,10 @@
<h1>{% trans "Matrix inviter" %}</h1>
<form action="" method="post" class="form-horizontal">
{% csrf_token %}
{% bootstrap_form_errors form %}
<fieldset>
<legend>{% trans "Matrix inviter settings" %}</legend>
{% bootstrap_form form layout="horizontal" %}
</fieldset>
<div class="form-group submit-group">
<button type="submit" class="btn btn-primary btn-save">
{% trans "Save" %}
......
from django.urls import reverse
from pretix.base.models import Event
from pretix.control.views.event import EventSettingsFormView, EventSettingsViewMixin
from .forms import MatrixInviterForm
class MatrixInviterView(EventSettingsViewMixin, EventSettingsFormView):
model = Event
permission = "can_change_settings"
form_class = MatrixInviterForm
template_name = "pretix_matrix_inviter/settings.html"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment