-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DIGITAL-48: Keep trying to move this ticket forward.
- Loading branch information
1 parent
7a04694
commit fdbaab8
Showing
3 changed files
with
56 additions
and
3 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
53 changes: 53 additions & 0 deletions
53
web/themes/custom/digital_gov/templates/views/views-view-field--hcd-glossary.html.twig
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,53 @@ | ||
{# | ||
/** | ||
* @file | ||
* Default theme implementation for a view template to display a list of rows. | ||
* | ||
* Available variables: | ||
* - attributes: HTML attributes for the container. | ||
* - rows: A list of rows for this list. | ||
* - attributes: The row's HTML attributes. | ||
* - content: The row's contents. | ||
* - title: The title of this group of rows. May be empty. | ||
* - list: @todo. | ||
* - type: Starting tag will be either a ul or ol. | ||
* - attributes: HTML attributes for the list element. | ||
* | ||
* @see template_preprocess_views_view_list() | ||
* | ||
* @ingroup themeable | ||
*/ | ||
#} | ||
|
||
{% if attributes -%} | ||
{#TODO: This may not be the way we want to do this #} | ||
<section{{ attributes }}> | ||
{% endif %} | ||
<div class="dg-glossary__content" id="dg-glossary--result"> | ||
<div class="dg-glossary__list add-list-reset"> | ||
<li class="dg-glossary__item"> | ||
{% if field.field == 'name' %} | ||
<button class="dg-glossary__term"> | ||
{{ field.last_render }} | ||
</button> | ||
{% else %} | ||
<div class="dg-glossary__definition"> | ||
{{ field.last_render}} | ||
</div> | ||
{% endif %} | ||
</li> | ||
</div> | ||
</div> | ||
|
||
{#{ list.type }}{{ list.attributes }} | ||
{% for row in rows %} | ||
<li{{ row.attributes }}> | ||
{{- row.content -}} | ||
</li> | ||
{% endfor %} | ||
{% if attributes -%} | ||
</section> | ||
{% endif #} |