-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SRL-443: fixed render conflict with feedback component
- Loading branch information
1 parent
ae25215
commit d8c8e99
Showing
3 changed files
with
49 additions
and
13 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
web/themes/custom/atrium/templates/block/block--webform--drawer.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,46 @@ | ||
{# | ||
/** | ||
* @file | ||
* Theme override to display a block. | ||
* | ||
* Available variables: | ||
* - plugin_id: The ID of the block implementation. | ||
* - label: The configured label of the block if visible. | ||
* - configuration: A list of the block's configuration values. | ||
* - label: The configured label for the block. | ||
* - label_display: The display settings for the label. | ||
* - provider: The module or other provider that provided this block plugin. | ||
* - Block plugin specific settings will also be stored here. | ||
* - content: The content of this block. | ||
* - attributes: array of HTML attributes populated by modules, intended to | ||
* be added to the main container tag of this template. | ||
* - id: A valid HTML ID and guaranteed unique. | ||
* - title_attributes: Same as attributes, except applied to the main title | ||
* tag that appears in the template. | ||
* - title_prefix: Additional output populated by modules, intended to be | ||
* displayed in front of the main title tag that appears in the template. | ||
* - title_suffix: Additional output populated by modules, intended to be | ||
* displayed after the main title tag that appears in the template. | ||
* | ||
* @see template_preprocess_block() | ||
*/ | ||
#} | ||
|
||
{% set feedback_form = drupal_entity('webform', 'was_this_information_helpful_') %} | ||
{% set classes = [ | ||
'block', | ||
bundle ? 'block--' ~ bundle|clean_class, | ||
id ? 'block--' ~ id|replace({"_": "-"})|clean_class, | ||
]|merge(classes|default([])) %} | ||
|
||
<div {{ attributes|without('id').addClass(classes) }}> | ||
{% include '@molecules/blocks/feedback/feedback.twig' with { | ||
feedback: { | ||
id: feedback_form['#webform_id'], | ||
embed: content, | ||
button: { | ||
text: feedback_form.elements.was_this_information_helpful_['#title'], | ||
} | ||
} | ||
} %} | ||
</div> |
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
d8c8e99
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created multidev environment ci-3318 for jcc-srl.