diff --git a/src/Controller/ElementFormController.php b/src/Controller/ElementFormController.php index 891c7d4c537749c906153487bb759092c81a01c9..177b302a2475259eed67ff72c759ca13962c95f4 100755 --- a/src/Controller/ElementFormController.php +++ b/src/Controller/ElementFormController.php @@ -336,6 +336,7 @@ class ElementFormController extends GoGoController 'config' => $configService->getConfig(), 'imagesMaxFilesize' => $this->detectMaxUploadFileSize('images'), 'filesMaxFilesize' => $this->detectMaxUploadFileSize('files'), + 'isOwner' => $isUserOwnerOfValidElement ]); } diff --git a/templates/element-form/form.html.twig b/templates/element-form/form.html.twig index 596fe9711a595fad408b5fd6bed6e7de7d1a98bc..edb3166560535669dc528da9a78e1664c15d8166 100755 --- a/templates/element-form/form.html.twig +++ b/templates/element-form/form.html.twig @@ -1,6 +1,6 @@ {{ form_start(form, {'id': 'formElement'}) }} -<div id="element-form-content"> +<div id="element-form-content" class="{{ editMode ? 'edit' : 'new' }} {{ isOwner ? 'by-owner' : ''}} {{ isAllowedDirectModeration ? 'by-admin' : '' }}"> <section> {% include "element-form/form-renderer.html.twig" %} </section>