This repository was archived by the owner on Sep 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Feature/prefix tag container with unique #398
Merged
LorenzoJokhan
merged 11 commits into
development
from
feature/prefix-tag-container-with-unique-id
Sep 4, 2023
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
40a4e10
Used includes to make it easier to manage tag specific code and added…
LorenzoJokhan 45acb4d
Added classname for easier styling of taggroup-with-prefix
LorenzoJokhan 9602aa1
Added form tag group id and class to resource-form-widget tags
LorenzoJokhan e90dabe
The resource-tags should not float left
LorenzoJokhan 2ad0552
Changed css and looks standardized the same look across usages of tag…
LorenzoJokhan eb249ec
Spelling and styling
LorenzoJokhan dcc621a
Update packages/cms/lib/modules/resource-overview-widgets/views/inclu…
2aeaf51
Update packages/cms/lib/modules/resource-overview-widgets/views/inclu…
4ed081f
Merge branch 'development' into feature/prefix-tag-container-with-uni…
LorenzoJokhan 51adb9b
Change look of tag
LorenzoJokhan e37f299
Restored the styles to the original format
LorenzoJokhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.