Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite group create/edit admin pages in Preact #9342

Draft
wants to merge 17 commits into
base: refactor-csrf-protection
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion conf/development.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
use = call:h.app:create_app
debug = true

pyramid.debug_all: True
pyramid.reload_templates: True

h.bouncer_url: http://localhost:8000
Expand Down
3 changes: 3 additions & 0 deletions h/assets.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ admin_css =
admin_js =
scripts/admin-site.bundle.js

admin_pages_js =
scripts/admin-pages.bundle.js

# The H website
site_js =
scripts/site.bundle.js
Expand Down
4 changes: 1 addition & 3 deletions h/schemas/forms/admin/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ def __init__(self, *args):
" of the entered scope strings (e.g. 'http://www.example.com')"
),
widget=SequenceWidget(add_subitem_text_template=_("Add scope")),
missing=None,
)

members = colander.SequenceSchema(
Expand All @@ -216,6 +217,3 @@ def __init__(self, *args):
widget=SequenceWidget(add_subitem_text_template=_("Add member")),
missing=None,
)

def validator(self, node, value):
username_validator(node, value)
Loading
Loading