-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: import export selectable fields (#431)
- Loading branch information
1 parent
7cc95fe
commit a55523e
Showing
7 changed files
with
76 additions
and
32 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,23 @@ | ||
<div class="{% if field.errors %}errors {% endif %}flex group mb-6 flex-col last:mb-4"> | ||
{% include "unfold/helpers/form_label.html" with field=field %} | ||
{% if field.field.widget.input_type == "checkbox" %} | ||
<div class="{% if field.errors %}errors {% endif %}flex flex-col group mb-6 last:mb-4"> | ||
<div class="flex flex-row gap-2 items-center"> | ||
{{ field }} | ||
|
||
{{ field }} | ||
{% include "unfold/helpers/form_label.html" with field=field %} | ||
</div> | ||
|
||
{% include "unfold/helpers/form_errors.html" with errors=field.errors %} | ||
{% include "unfold/helpers/form_errors.html" with errors=field.errors %} | ||
|
||
{% include "unfold/helpers/help_text.html" with help_text=field.help_text %} | ||
</div> | ||
{% include "unfold/helpers/help_text.html" with help_text=field.help_text %} | ||
</div> | ||
{% else %} | ||
<div class="{% if field.errors %}errors {% endif %}flex flex-col group mb-6 last:mb-4"> | ||
{% include "unfold/helpers/form_label.html" with field=field %} | ||
|
||
{{ field }} | ||
|
||
{% include "unfold/helpers/form_errors.html" with errors=field.errors %} | ||
|
||
{% include "unfold/helpers/help_text.html" with help_text=field.help_text %} | ||
</div> | ||
{% endif %} |
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