Skip to content

Commit

Permalink
DIGITAL-48: Keep trying to move this ticket forward.
Browse files Browse the repository at this point in the history
  • Loading branch information
cathybaptista committed Dec 26, 2024
1 parent 7a04694 commit fdbaab8
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<div class="dg-sidebar grid-col-12 tablet:grid-col-3">
<div class="dg-guide__content-body usa-prose">
{% if node.field_hcd_glossary.value %}
{% set entity = drupal_entity('block', 'digital_gov_views_block__hcd_glossary_block_1', check_access=false) %}
{{ entity }}
{% set view_result = drupal_view('hcd_glossary', 'default') %}
{{ view_result }}
{% endif %}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{ field.deck.value }}
</div>
{% if node.field_hcd_glossary.value %}
<button class="dg-glossary__toggle">
<button class="dg-glossary__toggle" onClick="alert('hello!')">
<svg
width="16"
height="16"
Expand Down
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 #}

0 comments on commit fdbaab8

Please sign in to comment.