-
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.
release(2.13.0): amministrazione trasparente
- Loading branch information
Showing
17 changed files
with
634 additions
and
8 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
...strazione_trasparente/_partial.descrizione-e-riferimenti--obbligo-pubblicazione.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,23 @@ | ||
<div class="row variable-gutters"> | ||
<div class="col-md-4"> | ||
<div class="mb-5"> | ||
<h2 class="h5 fw-lighter mb-2">{{ 'Pertinenza'|t }}</h2> | ||
{% if _obbligo_pubblicazione %} | ||
<p class="text-greendark d-flex"> | ||
{% include '@bi-bcl/icon/icon.html.twig' with {name: 'it-check', color: 'greendark', icon_classes: ['me-2']} %} | ||
La scuola è soggetta a questo obbligo. | ||
</p> | ||
{% else %} | ||
<p class="text-muted d-flex"> | ||
{% include '@bi-bcl/icon/icon.html.twig' with {name: 'it-ban', color: 'redbrown', icon_classes: ['me-2']} %} | ||
Non di pertinenza dell'istituzione scolastica. | ||
</p> | ||
{% endif %} | ||
</div> | ||
{{ content.field_persona_responsabile }} | ||
{{ content.field_frequenza_aggiornamento }} | ||
</div> | ||
<div class="col-md-8 mb-5"> | ||
{{ content|without('field_icona','field_frequenza_aggiornamento','field_persona_responsabile') }} | ||
</div> | ||
</div> |
4 changes: 4 additions & 0 deletions
4
...ione_trasparente/block--views-block--amministrazione-trasparente-tipologie-dati.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,4 @@ | ||
{% include '@bootstrap_italia/base/block.html.twig' with { | ||
title_attributes: title_attributes.addClass(['fw-lighter']), | ||
attributes: attributes.addClass(['container', 'mb-5']) | ||
} %} |
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
80 changes: 80 additions & 0 deletions
80
...d--view-mode-full--bundle-obblighi-di-pubblicazione--type-link--name-field-link.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,80 @@ | ||
{# | ||
/** | ||
* @file | ||
* Default theme implementation for a field with ul. | ||
* | ||
* To override output, copy the "field.html.twig" from the templates directory | ||
* to your theme's directory and customize it, just like customizing other | ||
* Drupal templates such as page.html.twig or node.html.twig. | ||
* | ||
* Instead of overriding the theming for all fields, you can also just override | ||
* theming for a subset of fields using | ||
* @link themeable Theme hook suggestions. @endlink For example, | ||
* here are some theme hook suggestions that can be used for a field_foo field | ||
* on an article node type: | ||
* - field--node--field-foo--article.html.twig | ||
* - field--node--field-foo.html.twig | ||
* - field--node--article.html.twig | ||
* - field--field-foo.html.twig | ||
* - field--text-with-summary.html.twig | ||
* - field.html.twig | ||
* | ||
* Available variables: | ||
* - attributes: HTML attributes for the containing element. | ||
* - label_hidden: Whether to show the field label or not. | ||
* - title_attributes: HTML attributes for the title. | ||
* - label: The label for the field. | ||
* - multiple: TRUE if a field can contain multiple items. | ||
* - items: List of all the field items. Each item contains: | ||
* - attributes: List of HTML attributes for each item. | ||
* - content: The field item's content. | ||
* - entity_type: The entity type to which the field belongs. | ||
* - field_name: The name of the field. | ||
* - field_type: The type of the field. | ||
* - label_display: The display settings for the label. | ||
* - field_container_vertical_padding: Automatic vertical padding. | ||
* - field_container_vertical_margin: Automatic vertical margin. | ||
* - field_label_tag: choose label tag, default('div'). | ||
* - field_view_mode: View mode. | ||
* | ||
* @see template_preprocess_field() | ||
* | ||
* @ingroup themeable | ||
*/ | ||
#} | ||
{% apply spaceless %} | ||
|
||
{% set container_classes = [ | ||
'field', | ||
'field--type-' ~ field_type|clean_class, | ||
'field--name-' ~ field_name|clean_class, | ||
'field--entity-' ~ entity_type|clean_class, | ||
multiple ? 'field-multiple', | ||
'field--label-' ~ label_display|clean_class, | ||
field_view_mode ? 'field--view-mode-' ~ field_view_mode|clean_class, | ||
'mb-5' | ||
] %} | ||
|
||
<div{{ attributes.addClass(container_classes) }}> | ||
{% include '@bi-field/_partial.field-label.html.twig' with { | ||
field_label_tag: 'h2', | ||
field_label_bold: false, | ||
field_label_separator: '', | ||
title_attributes: title_attributes.addClass(['h5', 'fw-lighter', 'mb-2']) | ||
} %} | ||
|
||
{% embed '@bi-bcl/list/list.html.twig'%} | ||
{% block listItems %} | ||
{% for item in items %} | ||
{% include '@bi-bcl/list/list-item.html.twig' with { | ||
list_url: item.content['#url'].uri, | ||
list_text: item.content['#title'], | ||
list_show_end_arrow: true, | ||
list_item_attributes: create_attribute().setAttribute('target', '_blank') | ||
} %} | ||
{% endfor %} | ||
{% endblock %} | ||
{% endembed %} | ||
|
||
</div>{# End main container. #} | ||
{% endapply %} |
7 changes: 7 additions & 0 deletions
7
...ndle-obblighi-di-pubblicazione--type-string--name-field-frequenza-aggiornamento.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,7 @@ | ||
{% include '@bootstrap_italia/templates/base/field.html.twig' with { | ||
field_label_tag: 'h2', | ||
field_label_bold: false, | ||
title_attributes: title_attributes.addClass(['h5', 'fw-lighter', 'mb-2']), | ||
field_label_separator: '', | ||
attributes: attributes.addClass(['mb-5']) | ||
} %} |
7 changes: 7 additions & 0 deletions
7
...-bundle-obblighi-di-pubblicazione--type-string--name-field-persona-responsabile.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,7 @@ | ||
{% include '@bootstrap_italia/templates/base/field.html.twig' with { | ||
field_label_tag: 'h2', | ||
field_label_bold: false, | ||
title_attributes: title_attributes.addClass(['h5', 'fw-lighter', 'mb-2']), | ||
field_label_separator: '', | ||
attributes: attributes.addClass(['mb-5']) | ||
} %} |
6 changes: 6 additions & 0 deletions
6
...w-mode-full--bundle-obblighi-di-pubblicazione--type-text-long--name-description.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,6 @@ | ||
{% include '@bootstrap_italia/templates/base/field.html.twig' with { | ||
field_label_tag: 'h2', | ||
field_label_bold: false, | ||
title_attributes: title_attributes.addClass(['h5', 'fw-lighter', 'mb-2']), | ||
field_label_separator: '', | ||
} %} |
67 changes: 67 additions & 0 deletions
67
...azione-trasparente--type-entity-reference--name-field-obblighi-di-pubblicazione.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,67 @@ | ||
{# | ||
/** | ||
* @file | ||
* Default theme implementation for a field. | ||
* | ||
* To override output, copy the "field.html.twig" from the templates directory | ||
* to your theme's directory and customize it, just like customizing other | ||
* Drupal templates such as page.html.twig or node.html.twig. | ||
* | ||
* Instead of overriding the theming for all fields, you can also just override | ||
* theming for a subset of fields using | ||
* @link themeable Theme hook suggestions. @endlink For example, | ||
* here are some theme hook suggestions that can be used for a field_foo field | ||
* on an article node type: | ||
* - field--node--field-foo--article.html.twig | ||
* - field--node--field-foo.html.twig | ||
* - field--node--article.html.twig | ||
* - field--field-foo.html.twig | ||
* - field--text-with-summary.html.twig | ||
* - field.html.twig | ||
* | ||
* Available variables: | ||
* - attributes: HTML attributes for the containing element. | ||
* - label_hidden: Whether to show the field label or not. | ||
* - title_attributes: HTML attributes for the title. | ||
* - label: The label for the field. | ||
* - multiple: TRUE if a field can contain multiple items. | ||
* - items: List of all the field items. Each item contains: | ||
* - attributes: List of HTML attributes for each item. | ||
* - content: The field item's content. | ||
* - entity_type: The entity type to which the field belongs. | ||
* - field_name: The name of the field. | ||
* - field_type: The type of the field. | ||
* - label_display: The display settings for the label. | ||
* - field_container_vertical_padding: Automatic vertical padding. | ||
* - field_container_vertical_margin: Automatic vertical margin. | ||
* - field_view_mode: View mode. | ||
* | ||
* @see template_preprocess_field() | ||
* | ||
* @ingroup themeable | ||
*/ | ||
#} | ||
{% apply spaceless %} | ||
|
||
{% set container_classes = [ | ||
'field', | ||
'field--type-' ~ field_type|clean_class, | ||
'field--name-' ~ field_name|clean_class, | ||
'field--entity-' ~ entity_type|clean_class, | ||
multiple ? 'field-multiple', | ||
'field--label-' ~ label_display|clean_class, | ||
field_view_mode ? 'field--view-mode-' ~ field_view_mode|clean_class, | ||
'mb-5' | ||
] %} | ||
|
||
<div{{ attributes.addClass(container_classes) }}> | ||
<p>{{ 'Obblighi di pubblicazione relativi a questa sezione' }}</p> | ||
|
||
<div class="card-wrapper card-teaser-wrapper card-teaser-wrapper-equal"> | ||
{% for item in items %} | ||
{{ item.content }} | ||
{% endfor %} | ||
</div> | ||
|
||
</div>{# End main container. #} | ||
{% endapply %} |
1 change: 1 addition & 0 deletions
1
...dules/keryx/amministrazione_trasparente/page--path--amministrazione-trasparente.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 @@ | ||
{% include '@skenografia/layout/_first-level-page.html.twig' %} |
114 changes: 114 additions & 0 deletions
114
...x/amministrazione_trasparente/page--taxonomy--term--amministrazione-trasparente.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,114 @@ | ||
{# | ||
/** | ||
* @file | ||
* Default theme implementation to display a single page. | ||
* | ||
* The doctype, html, head and body tags are not in this template. Instead they | ||
* can be found in the html.html.twig template in this directory. | ||
* | ||
* Available variables: | ||
* | ||
* General utility variables: | ||
* - base_path: The base URL path of the Drupal installation. Will usually be | ||
* "/" unless you have installed Drupal in a sub-directory. | ||
* - is_front: A flag indicating if the current page is the front page. | ||
* - logged_in: A flag indicating if the user is registered and signed in. | ||
* - is_admin: A flag indicating if the user has permission to access | ||
* administration pages. | ||
* | ||
* Site identity: | ||
* - front_page: The URL of the front page. Use this instead of base_path when | ||
* linking to the front page. This includes the language domain or prefix. | ||
* | ||
* Page content (in order of occurrence in the default page.html.twig): | ||
* - messages: Status and error messages. Should be displayed prominently. | ||
* - node: Fully loaded node, if there is an automatically-loaded node | ||
* associated with the page and the node ID is the second argument in the | ||
* page's path (e.g. node/12345 and node/12345/revisions, but not | ||
* comment/reply/12345). | ||
* | ||
* Regions: | ||
* - page.header: Items for the header region. | ||
* - page.primary_menu: Items for the primary menu region. | ||
* - page.secondary_menu: Items for the secondary menu region. | ||
* - page.highlighted: Items for the highlighted content region. | ||
* - page.help: Dynamic help text, mostly for admin pages. | ||
* - page.content: The main content of the current page. | ||
* - page.sidebar_first: Items for the first sidebar. | ||
* - page.sidebar_second: Items for the second sidebar. | ||
* - page.footer: Items for the footer region. | ||
* - page.breadcrumb: Items for the breadcrumb region. | ||
* | ||
* @see template_preprocess_page() | ||
* @see html.html.twig | ||
* | ||
* @ingroup themeable | ||
*/ | ||
#} | ||
{% apply spaceless %} | ||
<div id="page-default"> | ||
{% include '@skenografia/layout/header/_partial.header.html.twig' %} | ||
{% include '@bootstrap_italia/layout/content/_partial.before-content.html.twig' %} | ||
{% embed '@bootstrap_italia/layout/content/_partial.content.html.twig' %} | ||
{% block contentBreadcrumb %}{% endblock %} | ||
{% block contentTitle %}{% endblock %} | ||
|
||
{% block contentMain %} | ||
{% set _sidebar_width = page.sidebar_first and page.sidebar_second ? 'col-lg-3' : 'col-lg-4' %} | ||
{% set _content_width = [ | ||
not page.sidebar_first and not page.sidebar_second ? 'col-12', | ||
page.sidebar_first and not page.sidebar_second ? 'col-lg-8', | ||
page.sidebar_second and not page.sidebar_first ? 'col-lg-8', | ||
page.sidebar_first and page.sidebar_second ? 'col-lg-6' | ||
] %} | ||
|
||
<div class="container has-one-sidebar"> | ||
<div class="row"> | ||
{# Sidebar First #} | ||
{% block contentSidebarFirst %} | ||
{% if page.sidebar_first %} | ||
<aside class="col-lg-3 it-sidebar-first__wrapper affix-parent d-none d-lg-block" role="complementary"> | ||
<div class="affix-top"> | ||
{{ page.sidebar_first }} | ||
</div> | ||
</aside> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
<div class="col-lg-9"> | ||
<div class="it-content__wrapper"> | ||
{% if page.breadcrumb %} | ||
<section class="it-breadcrumb__wrapper pt-2 container bg-gray-light"> | ||
<div class="row"> | ||
<div class="col px-lg-4"> | ||
{{ page.breadcrumb }} | ||
</div> | ||
</div> | ||
</section> | ||
{% endif %} | ||
|
||
{% embed '@skenografia_components/offcanvas/offcanvas-sidebar-mobile.html.twig' with { | ||
offcanvas_title: 'Indice delle sezioni', | ||
offcanvas_icon: 'it-list' | ||
} %} | ||
{% block mobileSidebarContent %} | ||
{{ page.sidebar_first }} | ||
{% endblock %} | ||
{% endembed %} | ||
|
||
{{ page.content }} | ||
|
||
</div> | ||
</div> {# End col #} | ||
|
||
{# Sidebar Second #} | ||
{% block contentSidebarSecond %}{% endblock %} | ||
</div> {# End row #} | ||
</div> {# End container #} | ||
{% endblock %} | ||
|
||
{% endembed %} | ||
{% include '@bootstrap_italia/layout/content/_partial.after-content.html.twig' %} | ||
{% include '@skenografia/layout/footer/_partial.footer.html.twig' %} | ||
</div> | ||
{% endapply %} |
43 changes: 43 additions & 0 deletions
43
...one_trasparente/taxonomy-term--type-amministrazione-trasparente--view-mode-list.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,43 @@ | ||
{# | ||
/** | ||
* @file | ||
* Default theme implementation to display a taxonomy term. | ||
* | ||
* Available variables: | ||
* - url: URL of the current term. | ||
* - name: (optional) Name of the current term. | ||
* - content: Items for the content of the term (fields and description). | ||
* Use 'content' to print them all, or print a subset such as | ||
* 'content.description'. Use the following code to exclude the | ||
* printing of a given child element: | ||
* @code | ||
* {{ content|without('description') }} | ||
* @endcode | ||
* - attributes: HTML attributes for the wrapper. | ||
* - page: Flag for the full page state. | ||
* - term: The taxonomy term entity, including: | ||
* - id: The ID of the taxonomy term. | ||
* - bundle: Machine name of the current vocabulary. | ||
* - view_mode: View mode, e.g. 'full', 'teaser', etc. | ||
* | ||
* @see template_preprocess_taxonomy_term() | ||
* | ||
* @ingroup themeable | ||
*/ | ||
#} | ||
<div{{ attributes.addClass('mb-5') }}> | ||
{{ title_prefix }} | ||
{% if name and not page %} | ||
<h2 class="h3 fw-lighter"> | ||
<a class="d-flex align-items-center" href="{{ url }}" title="{{ 'Vai alla sezione ' ~ name|render|striptags|trim }}"> | ||
{{ name }} | ||
{% include '@bi-bcl/icon/icon.html.twig' with { | ||
name: 'it-arrow-right', | ||
icon_classes: ['ms-2','mt-1'] | ||
} %} | ||
</a> | ||
</h2> | ||
{% endif %} | ||
{{ title_suffix }} | ||
{{ content }} | ||
</div> |
Oops, something went wrong.