Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pretix Matrix Inviter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KIF
Pretix Matrix Inviter
Commits
63797913
Commit
63797913
authored
3 years ago
by
Felix Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
Better adhere to suggested Pretix view style
parent
e8d18d56
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pretix_matrix_inviter/templates/pretix_matrix_inviter/settings.html
+4
-2
4 additions, 2 deletions
...rix_inviter/templates/pretix_matrix_inviter/settings.html
pretix_matrix_inviter/views.py
+3
-0
3 additions, 0 deletions
pretix_matrix_inviter/views.py
with
7 additions
and
2 deletions
pretix_matrix_inviter/templates/pretix_matrix_inviter/settings.html
+
4
−
2
View file @
63797913
...
...
@@ -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" %}
...
...
This diff is collapsed.
Click to expand it.
pretix_matrix_inviter/views.py
+
3
−
0
View file @
63797913
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
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment