-
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.
On phone reset layout to default on mobile with checkboxes
- Loading branch information
1 parent
2fe0006
commit 9b550dd
Showing
6 changed files
with
110 additions
and
13 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
34 changes: 24 additions & 10 deletions
34
...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,13 +1,27 @@ | ||
{% 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 {{ '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%} | ||
|
||
{% if data.widget.displayModeColumns and data.widget.displayGroupsAsSelectBoxes%} | ||
|
||
<div id="tag-group-container-{{ 'tags' if key === 'undefined' else key }}" class="tag-group-container"> | ||
<div class="resource-overview-tag-select-group"> | ||
<p class="{{ tagGroupPrefix }}tag-group-title default-select">{{ "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 columned }}"> | ||
{% include 'includes/controls/tag-includes/tag-group-selects.njk' %} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{% else %} | ||
<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 {{ '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> | ||
</div> | ||
{% endif %} | ||
{% endfor %} |
17 changes: 17 additions & 0 deletions
17
...ules/resource-overview-widgets/views/includes/controls/tag-includes/tag-group-selects.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 %} |