-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resource overview will become master detail if displayModeColumns is …
…set to true
- Loading branch information
1 parent
f1ea11b
commit 4e3e860
Showing
11 changed files
with
114 additions
and
9 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
2 changes: 2 additions & 0 deletions
2
packages/cms/lib/modules/resource-overview-widgets/views/includes/controls/area.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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
{% if data.widget.displayAreaFilter %} | ||
<div> | ||
<label for="resource-overview-area" class="sr-only">Selecteer een gebied: </label> | ||
<select id="resource-overview-area" class="default-select openstad-ajax-refresh-input" name="area" data-reset-pagination="1"> | ||
<option value="">Alle gebieden</option> | ||
{% for area in data.widget.areas %} | ||
<option value="{{area.value}}" {% if area.value === data.query.area %} selected {% endif %}>{{area.value}}</option> | ||
{% endfor %} | ||
</select> | ||
</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
9 changes: 7 additions & 2 deletions
9
...resource-overview-widgets/views/includes/controls/tag-includes/group-variants/grouped.njk
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,8 +1,13 @@ | ||
{% for key, tagList in data.widget.groupedOpenstadTags %} | ||
<div id="tag-group-container-{{ 'tags' if key === 'undefined' else key }}" class="tag-group-container"> | ||
<p class="{{ tagGroupPrefix }}tag-group-title">{{ "Overig" if key === 'undefined' or key === 'null' else key }}</p> | ||
<div id="{{ tagGroupPrefix }}tag-group-{{ 'tags' if key === 'undefined' else key }}" class="{{ tagGroupPrefix }}tag-group"> | ||
{% include 'includes/controls/tag-includes/tag-buttons.njk' %} | ||
<div id="{{ tagGroupPrefix }}tag-group-{{ 'tags' if key === 'undefined' else key }}" class="{{ tagGroupPrefix }}tag-group {{ 'columned' if data.widget.displayModeColumns else '' }}"> | ||
|
||
{% if data.widget.displayModeColumns%} | ||
{% include 'includes/controls/tag-includes/tag-checkboxes.njk' %} | ||
{% else %} | ||
{% include 'includes/controls/tag-includes/tag-buttons.njk' %} | ||
{% endif%} | ||
</div> | ||
</div> | ||
{% endfor %} |
9 changes: 7 additions & 2 deletions
9
...urce-overview-widgets/views/includes/controls/tag-includes/group-variants/non-grouped.njk
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,5 +1,10 @@ | ||
<div id="{{ tagGroupPrefix }}tag-group-none }}" class="{{ tagGroupPrefix }}tag-group"> | ||
<div id="{{ tagGroupPrefix }}tag-group-none }}" class="{{ tagGroupPrefix }}tag-group {{ 'columned' if data.widget.displayModeColumns else '' }}"> | ||
|
||
{% for key, tagList in data.widget.groupedOpenstadTags %} | ||
{% include 'includes/controls/tag-includes/tag-buttons.njk' %} | ||
{% if data.widget.displayModeColumns%} | ||
{% include 'includes/controls/tag-includes/tag-checkboxes.njk' %} | ||
{% else %} | ||
{% include 'includes/controls/tag-includes/tag-buttons. njk' %} | ||
{% endif%} | ||
{% endfor %} | ||
</div> |
10 changes: 8 additions & 2 deletions
10
...rce-overview-widgets/views/includes/controls/tag-includes/group-variants/single-group.njk
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,5 +1,11 @@ | ||
<div id="{{ tagGroupPrefix }}tag-group-{{ data.widget.tagType }}" class="{{ tagGroupPrefix }}tag-group"> | ||
<div id="{{ tagGroupPrefix }}tag-group-{{ data.widget.tagType }}" class="{{ tagGroupPrefix }}tag-group {{ 'columned' if data.widget.displayModeColumns else '' }}"> | ||
{% for tagList in [data.widget.groupedOpenstadTags[data.widget.tagType]] %} | ||
{% include 'includes/controls/tag-includes/tag-buttons.njk' %} | ||
|
||
{% if data.widget.displayModeColumns%} | ||
{% include 'includes/controls/tag-includes/tag-checkboxes.njk' %} | ||
{% else %} | ||
{% include 'includes/controls/tag-includes/tag-buttons. njk' %} | ||
{% endif%} | ||
|
||
{% endfor %} | ||
</div> |
17 changes: 17 additions & 0 deletions
17
...modules/resource-overview-widgets/views/includes/controls/tag-includes/tag-checkboxes.njk
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,17 @@ | ||
{% for tag in tagList %} | ||
{% if data.widget.isTagSelected(tag, data.query) %} | ||
<div class="tag-checkbox-container"> | ||
<a href="{{ data.widget.formatTagRemoveUrl(tag, data.query) }}" class="openstad-ajax-refresh-link" data-reset-pagination="1" data-reset-hash="1"> | ||
<div class="tag-checkbox selected"></div> | ||
<p>{{ tag.name }}</p> | ||
</a> | ||
</div> | ||
{% else %} | ||
<div class="tag-checkbox-container"> | ||
<a href="{{ data.widget.formatTagSelectUrl(tag, data.query) }}" class="openstad-ajax-refresh-link" data-reset-pagination="1" data-reset-hash="1"> | ||
<div class="tag-checkbox"></div> | ||
<p>{{ tag.name }}</p> | ||
</a> | ||
</div> | ||
{% endif %} | ||
{% endfor %} |
2 changes: 2 additions & 0 deletions
2
packages/cms/lib/modules/resource-overview-widgets/views/includes/controls/theme.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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
{% if data.widget.displayThemeFilter %} | ||
<div> | ||
<label for="resource-theme-filter" class="sr-only">Selecteer een thema: </label> | ||
<select class="default-select openstad-ajax-refresh-input" id="resource-theme-filter" name="theme" data-reset-pagination="1"> | ||
<option value="">Alle thema's</option> | ||
{% for theme in data.widget.themes %} | ||
<option value="{{theme.value}}" {% if theme.value === data.query.theme %} selected {% endif %}>{{theme.value}}</option> | ||
{% endfor %} | ||
</select> | ||
</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
4e3e860
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Published new image:
openstad/frontend:feature-tag-group-styling-4e3e860