mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
on-the-fly: add a 'parent' option to pass parent context. So we could now display resource.comment below the renderbox.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
* action string 'show', 'edit', 'create'
|
||||
* buttonText string
|
||||
* displayBadge boolean (default: false) replace button by badge, need to define buttonText for content
|
||||
* parent object (optional) pass parent context of the targetEntity (used for course resource comment)
|
||||
|
||||
#}
|
||||
<span class="onthefly-container"
|
||||
@@ -31,6 +32,10 @@
|
||||
data-display-badge="true"
|
||||
{% endif %}
|
||||
|
||||
{% if parent is defined %}
|
||||
data-parent='{{ parent|json_encode }}'
|
||||
{% endif %}
|
||||
|
||||
></span>
|
||||
|
||||
{{ encore_entry_script_tags('vue_onthefly') }}
|
||||
|
Reference in New Issue
Block a user