-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nimbus): add overview form to new nimbus ui
Becuase * We need to add the overview to the new Nimbus UI This commit * Adds the overview form * Adds documentation link add/remove functionality with HTMX fixes #10841
- Loading branch information
1 parent
3001e69
commit 3232fcc
Showing
12 changed files
with
645 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
experimenter/experimenter/nimbus_ui_new/templates/common/widgets/inline_radio.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% with id=widget.attrs.id %} | ||
<div {% if id %}id="{{ id }}"{% endif %} | ||
{% if widget.attrs.class %}class="{{ widget.attrs.class }}"{% endif %}> | ||
{% for group, options, index in widget.optgroups %} | ||
{% if group %} | ||
<div> | ||
<label>{{ group }}</label> | ||
{% endif %} | ||
{% for option in options %} | ||
<div class="form-check form-check-inline ms-3 me-0"> | ||
{% include option.template_name with widget=option %} | ||
|
||
</div> | ||
{% endfor %} | ||
{% if group %}</div>{% endif %} | ||
{% endfor %} | ||
</div> | ||
{% endwith %} |
10 changes: 10 additions & 0 deletions
10
experimenter/experimenter/nimbus_ui_new/templates/common/widgets/inline_radio_option.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% if widget.wrap_label %} | ||
<label class="form-check-label" | ||
{% if widget.attrs.id %}for="{{ widget.attrs.id }}"{% endif %}> | ||
{% endif %} | ||
{% include "common/widgets/inline_radio_option_input.html" %} | ||
|
||
{% if widget.wrap_label %} | ||
{{ widget.label }} | ||
</label> | ||
{% endif %} |
2 changes: 2 additions & 0 deletions
2
...menter/experimenter/nimbus_ui_new/templates/common/widgets/inline_radio_option_input.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<input type="{{ widget.type }}" class="form-check-input" name="{{ widget.name }}"{% if widget.value != None %} value="{{ widget.value|stringformat:'s' }}"{% endif %}{% include "django/forms/widgets/attrs.html" %} | ||
> |
Oops, something went wrong.