-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#2685] Template for inputs with parent list-item style
- Loading branch information
1 parent
b9e1ac8
commit 5926532
Showing
13 changed files
with
186 additions
and
87 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
7 changes: 7 additions & 0 deletions
7
src/open_inwoner/components/templates/components/Form/ChoiceList.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,7 @@ | ||
{% load l10n form_tags icon_tags %} | ||
|
||
{# List component for changing the parent styles, when child is clicked #} | ||
|
||
<ul class="choice-list {% if single %}choice-list--single{% else %}choice-list-multiple{% endif %} {% if cols %}choice-list--cols-2{% endif %}"> | ||
{{ contents }} | ||
</ul> |
33 changes: 33 additions & 0 deletions
33
src/open_inwoner/components/templates/components/Form/ChoiceListItem.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,33 @@ | ||
{% load l10n form_tags icon_tags %} | ||
|
||
{# Item component for changing the parent styles, when child is clicked #} | ||
|
||
<li class="choice-list__item {% if input_type_radio %}{% else %}radiochoice-list-multiple__item{% endif %}"> | ||
{% if input_type_radio %} | ||
<label class="choice-list__label {% if bold_label %}choice-list__label--large{% endif %}" for="id_{{ name }}_{{ index }}"> | ||
<input type="{% if input_type_radio %}radio{% else %}checkbox{% endif %}" class="choice-list__radio" id="id_{{ name }}_{{ index }}" name="{{ name }}" value="{{ choice.0|unlocalize }}" {% if choice.0 in data or checked %}checked="checked"{% endif %}> | ||
<div class="choice-list__content"> | ||
{% if bold_label %}<h2 class="choice-list__heading">Kies {{ choice.1 }}</h2>{% endif %} | ||
<p class="choice-list__p">{{ choice.1 }}</p> | ||
</div> | ||
{% if icon_symbol %} | ||
{% icon icon_symbol outlined=True extra_classes="icon--large" %} | ||
{% endif %} | ||
</label> | ||
|
||
{% else %} | ||
<div class="choice-list-multiple__content"> | ||
<div class="form__control"> | ||
<div class="checkbox"> | ||
<input type="checkbox" class="checkbox__input" id="id_{{ name }}_{{ index }}" name="{{ name }}" value="{{ choice.0|unlocalize }}" {% if choice.0 in data or checked %}checked="checked"{% endif %}> | ||
<label class="checkbox__label" for="id_{{ name }}_{{ index }}"> | ||
{% if icon_symbol %} | ||
{% icon icon_symbol outlined=True extra_classes="icon--large" %} | ||
{% endif %} | ||
<p class="checkbox__p">{{ choice.1 }}</p> | ||
</label> | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
</li> |
20 changes: 0 additions & 20 deletions
20
src/open_inwoner/components/templates/components/Form/ChoiceRadioStacked.html
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -80,7 +80,6 @@ | |
} | ||
|
||
&__file + .file__data { | ||
background-color: greenyellow; | ||
margin-top: var(--spacing-small); | ||
} | ||
|
||
|
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 |
---|---|---|
|
@@ -7,3 +7,7 @@ | |
color: var(--color-danger); | ||
} | ||
} | ||
|
||
*[class*='icon'].icon--large { | ||
font-size: 40px; | ||
} |
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
Oops, something went wrong.