]> Raphaël G. Git Repositories - airbundle/commitdiff
Add calendar views
authorRaphaël Gertz <git@rapsys.eu>
Wed, 7 Jul 2021 15:23:28 +0000 (17:23 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 7 Jul 2021 15:23:28 +0000 (17:23 +0200)
Resources/views/calendar/callback.html.twig [new file with mode: 0644]
Resources/views/calendar/index.html.twig [new file with mode: 0644]

diff --git a/Resources/views/calendar/callback.html.twig b/Resources/views/calendar/callback.html.twig
new file mode 100644 (file)
index 0000000..8b18f82
--- /dev/null
@@ -0,0 +1,14 @@
+{% extends '@RapsysAir/body.html.twig' %}
+{% block content %}
+       <section id="form">
+               <header>
+                       <h2><a href="{{ path('rapsys_air_calendar') }}">{{ section }}</a></h2>
+                       <p>{{ description }}</p>
+               </header>
+               {% if error is defined %}
+                       <p class="message error">{{ error }}</p>
+               {% elseif message is defined %}
+                       <p class="message notice">{{ message }}</p>
+               {% endif %}
+       </section>
+{% endblock %}
diff --git a/Resources/views/calendar/index.html.twig b/Resources/views/calendar/index.html.twig
new file mode 100644 (file)
index 0000000..e650aee
--- /dev/null
@@ -0,0 +1,27 @@
+{% extends '@RapsysAir/body.html.twig' %}
+{% block content %}
+       <section id="form">
+               <header>
+                       <h2><a href="{{ path('rapsys_air_calendar') }}">{{ section }}</a></h2>
+                       <p>{{ description }}</p>
+               </header>
+               {{ form_start(form) }}
+                       <div>
+                               {{ form_row(form.calendar) }}
+
+                               {{ form_row(form.prefix) }}
+
+                               {{ form_row(form.project) }}
+
+                               {{ form_row(form.client) }}
+
+                               {{ form_row(form.secret) }}
+
+                               {{ form_row(form.submit) }}
+                       </div>
+
+                       {# Render CSRF token etc .#}
+                       <footer style="display:none">{{ form_rest(form) }}</footer>
+               {{ form_end(form) }}
+       </section>
+{% endblock %}