-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs# 25701 Access on IACM meeting & permissions refactoring (#33)
- Loading branch information
1 parent
69e9917
commit 2fc8097
Showing
5 changed files
with
180 additions
and
4 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
17 changes: 17 additions & 0 deletions
17
modules/edw_themes/modules/edwt_backend/css/manage-groups.css
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 @@ | ||
.view-meeting-groups .gin-layer-wrapper { | ||
background: none; | ||
border: none; | ||
box-shadow: none; | ||
} | ||
|
||
.main-group-section__container { | ||
padding:16px; | ||
} | ||
|
||
.main-content__container { | ||
background: var(--gin-bg-layer); | ||
border: 1px solid var(--gin-border-color-layer); | ||
box-shadow: var(--gin-shadow-l1); | ||
border-radius: var(--gin-border-l); | ||
margin-bottom: 32px; | ||
} |
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
123 changes: 123 additions & 0 deletions
123
...es/edwt_backend/templates/views/views-view-table--meeting-groups--access-groups.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,123 @@ | ||
{# | ||
/** | ||
* @file | ||
* Theme override for displaying a view as a table. | ||
* | ||
* Available variables: | ||
* - attributes: Remaining HTML attributes for the element. | ||
* - class: HTML classes that can be used to style contextually through CSS. | ||
* - title : The title of this group of rows. | ||
* - header: The table header columns. | ||
* - attributes: Remaining HTML attributes for the element. | ||
* - content: HTML classes to apply to each header cell, indexed by | ||
* the header's key. | ||
* - default_classes: A flag indicating whether default classes should be | ||
* used. | ||
* - caption_needed: Is the caption tag needed. | ||
* - caption: The caption for this table. | ||
* - accessibility_description: Extended description for the table details. | ||
* - accessibility_summary: Summary for the table details. | ||
* - rows: Table row items. Rows are keyed by row number. | ||
* - attributes: HTML classes to apply to each row. | ||
* - columns: Row column items. Columns are keyed by column number. | ||
* - attributes: HTML classes to apply to each column. | ||
* - content: The column content. | ||
* - default_classes: A flag indicating whether default classes should be | ||
* used. | ||
* - responsive: A flag indicating whether table is responsive. | ||
* - sticky: A flag indicating whether table header is sticky. | ||
* - summary_element: A render array with table summary information (if any). | ||
* | ||
* @see template_preprocess_views_view_table() | ||
*/ | ||
#} | ||
|
||
{{ attach_library('edwt_backend/manage-groups') }} | ||
|
||
{% set classes = [ | ||
'views-table', | ||
'views-view-table', | ||
'cols-' ~ header|length, | ||
responsive ? 'responsive-enabled', | ||
sticky ? 'sticky-enabled', | ||
] %} | ||
<div class="main-content__container"> | ||
<div class="main-group-section__container"> | ||
<h3> {{ title }} </h3> | ||
{% if assign_group %} | ||
{{ assign_group }} | ||
{% endif %} | ||
{% if add_group %} | ||
{{ add_group }} | ||
{% endif %} | ||
</div> | ||
<table{{ attributes.addClass(classes) }}> | ||
{% if header %} | ||
<thead> | ||
<tr> | ||
{% for key, column in header %} | ||
{% if column.default_classes %} | ||
{% set column_classes = [ | ||
'views-field', | ||
'views-field-' ~ fields[key], | ||
] %} | ||
{% endif %} | ||
<th{{ column.attributes.addClass(column_classes).setAttribute('scope', 'col') }}> | ||
{%- if column.wrapper_element -%} | ||
<{{ column.wrapper_element }}> | ||
{%- if column.url -%} | ||
<a href="{{ column.url }}" title="{{ column.title }}" | ||
rel="nofollow">{{ column.content }}{{ column.sort_indicator }}</a> | ||
{%- else -%} | ||
{{ column.content }}{{ column.sort_indicator }} | ||
{%- endif -%} | ||
</{{ column.wrapper_element }}> | ||
{%- else -%} | ||
{%- if column.url -%} | ||
<a href="{{ column.url }}" title="{{ column.title }}" | ||
rel="nofollow">{{ column.content }}{{ column.sort_indicator }}</a> | ||
{%- else -%} | ||
{{- column.content }}{{ column.sort_indicator }} | ||
{%- endif -%} | ||
{%- endif -%} | ||
</th> | ||
{% endfor %} | ||
</tr> | ||
</thead> | ||
{% endif %} | ||
<tbody> | ||
{% for row in rows %} | ||
<tr{{ row.attributes }}> | ||
{% if row.empty_message %} | ||
<td> | ||
{{ row.empty_message }} | ||
</td> | ||
{% endif %} | ||
{% for key, column in row.columns %} | ||
{% if column.default_classes %} | ||
{% set column_classes = [ | ||
'views-field' | ||
] %} | ||
{% for field in column.fields %} | ||
{% set column_classes = column_classes|merge(['views-field-' ~ field]) %} | ||
{% endfor %} | ||
{% endif %} | ||
<td{{ column.attributes.addClass(column_classes) }}> | ||
{%- if column.wrapper_element -%} | ||
<{{ column.wrapper_element }}> | ||
{% for content in column.content %} | ||
{{ content.separator }}{{ content.field_output }} | ||
{% endfor %} | ||
</{{ column.wrapper_element }}> | ||
{%- else -%} | ||
{% for content in column.content %} | ||
{{- content.separator }}{{ content.field_output -}} | ||
{% endfor %} | ||
{%- endif %} | ||
</td> | ||
{% endfor %} | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> |