Skip to content

Commit

Permalink
Merge pull request #35550 from dimagi/dm/b5-admin-settings
Browse files Browse the repository at this point in the history
[B5] Project Admin Settings
  • Loading branch information
millerdev authored Dec 19, 2024
2 parents b04a5ec + 5981e67 commit b2365da
Show file tree
Hide file tree
Showing 36 changed files with 103 additions and 853 deletions.
8 changes: 5 additions & 3 deletions corehq/apps/domain/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,9 +951,11 @@ def __init__(self, *args, **kwargs):
if not SECURE_SESSION_TIMEOUT.enabled(domain):
excluded_fields.append('secure_sessions_timeout')

# PrependedText ensures the label is to the left of the checkbox, and the help text beneath.
# Feels like there should be a better way to apply these styles, as we aren't pre-pending anything
fields = [twbscrispy.PrependedText(field_name, '')
for field in self.fields.values():
if not isinstance(field.widget, BootstrapCheckboxInput):
field.widget = BootstrapCheckboxInput()

fields = [hqcrispy.CheckboxField(field_name)
for field_name in self.fields.keys() if field_name not in excluded_fields]

self.helper = hqcrispy.HQFormHelper(self)
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit b2365da

Please sign in to comment.