-
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.
Merge pull request #398 from openstad/feature/prefix-tag-container-wi…
…th-unique-id Feature/prefix tag container with unique
- Loading branch information
Showing
9 changed files
with
142 additions
and
125 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
8 changes: 8 additions & 0 deletions
8
...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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% 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> | ||
</div> | ||
{% endfor %} |
5 changes: 5 additions & 0 deletions
5
...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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div id="{{ tagGroupPrefix }}tag-group-none }}" class="{{ tagGroupPrefix }}tag-group"> | ||
{% for key, tagList in data.widget.groupedOpenstadTags %} | ||
{% include 'includes/controls/tag-includes/tag-buttons.njk' %} | ||
{% endfor %} | ||
</div> |
5 changes: 5 additions & 0 deletions
5
...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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div id="{{ tagGroupPrefix }}tag-group-{{ data.widget.tagType }}" class="{{ tagGroupPrefix }}tag-group"> | ||
{% for tagList in [data.widget.groupedOpenstadTags[data.widget.tagType]] %} | ||
{% include 'includes/controls/tag-includes/tag-buttons.njk' %} | ||
{% endfor %} | ||
</div> |
17 changes: 17 additions & 0 deletions
17
...ib/modules/resource-overview-widgets/views/includes/controls/tag-includes/tag-buttons.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) %} | ||
<a href="{{ data.widget.formatTagRemoveUrl(tag, data.query) }}" class="openstad-ajax-refresh-link" data-reset-pagination="1" data-reset-hash="1"> | ||
<div class="tag selected"> | ||
<p>{{ tag.name }}</p> | ||
</div> | ||
</a> | ||
{% else %} | ||
<a href="{{ data.widget.formatTagSelectUrl(tag, data.query) }}" class="openstad-ajax-refresh-link" data-reset-pagination="1" data-reset-hash="1"> | ||
<div class="tag"> | ||
<p>{{ tag.name }}</p> | ||
</div> | ||
</a> | ||
{% endif %} | ||
{% endfor %} |
12 changes: 12 additions & 0 deletions
12
...b/modules/resource-overview-widgets/views/includes/controls/tag-includes/tags_desktop.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,12 @@ | ||
{% set tagGroupPrefix = "" %} | ||
<div class="resource-overview-tags-container hidden-xs"> | ||
{% if data.widget.tagType %} | ||
{% include 'includes/controls/tag-includes/group-variants/single-group.njk' %} | ||
{% endif %} | ||
{% if not data.widget.showTagTypeLabels and not data.widget.tagType %} | ||
{% include 'includes/controls/tag-includes/group-variants/non-grouped.njk' %} | ||
{% endif %} | ||
{% if data.widget.showTagTypeLabels and data.widget.tagType === '' %} | ||
{% include 'includes/controls/tag-includes/group-variants/grouped.njk' %} | ||
{% endif %} | ||
</div> |
26 changes: 26 additions & 0 deletions
26
...ib/modules/resource-overview-widgets/views/includes/controls/tag-includes/tags_mobile.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,26 @@ | ||
{% set tagGroupPrefix = "mobile-" %} | ||
<div id="filter-tags-modal" class="content-modal content-modal--l"> | ||
<div class="content-modal-content"> | ||
<div class="content-modal-body"> | ||
<h3 class="filter-tags-modal-title">Filter op tags</h3> | ||
<a href="#closed" class="content-modal-close"> | ||
<img src="{{ data.siteUrl }}/modules/openstad-assets/img/close.svg" width="13" height="13"/> | ||
</a> | ||
{% if data.widget.tagType %} | ||
{% include 'includes/controls/tag-includes/group-variants/single-group.njk' %} | ||
{% endif %} | ||
{% if not data.widget.showTagTypeLabels and not data.widget.tagType %} | ||
{% include 'includes/controls/tag-includes/group-variants/non-grouped.njk' %} | ||
{% endif %} | ||
{% if data.widget.showTagTypeLabels and data.widget.tagType === '' %} | ||
{% include 'includes/controls/tag-includes/group-variants/grouped.njk' %} | ||
{% endif %} | ||
<br/> | ||
<div> | ||
<a href="#closed" class="filled-button stretch"> | ||
Toon resultaten | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
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
f1ea11b
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:development-f1ea11b