notification form integration (create/edit)

This commit is contained in:
2022-01-10 12:44:08 +01:00
parent 95027e93c6
commit afae3b58c2
3 changed files with 37 additions and 12 deletions

View File

@@ -1,5 +1,7 @@
{% extends "@ChillMain/layout.html.twig" %}
{% block title 'notification.Edit notification'|trans %}
{% block js %}
{{ parent() }}
{{ encore_entry_script_tags('mod_pickentity_type') }}
@@ -11,14 +13,22 @@
{% endblock %}
{% block content %}
<div class="col-10">
{% include handler.template(notification) with handler.templateData(notification) %}
<div class="col-8 notification notification-edit">
<h1 class="mb-3">{{ block('title') }}</h1>
{{ form_start(form, { 'attr': { 'id': 'notification' }}) }}
{{ form_row(form.title) }}
{{ form_row(form.addressees) }}
{{ form_row(form.message) }}
{{ form_row(form.title, { 'label': 'notification.subject'|trans }) }}
{{ form_row(form.addressees, { 'label': 'notification.sent_to'|trans }) }}
{% include handler.template(notification) with handler.templateData(notification) %}
<div class="mb-3 row">
<label class="col-form-label col-sm-4" for="notification_message">{{ form_label(form.message) }}</label>
<div class="col-12">
{{ form_widget(form.message) }}
</div>
</div>
{{ form_end(form) }}