mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 06:26:15 +00:00
Adding views
This commit is contained in:
parent
c4ee2c45fa
commit
5fff168c87
16
Resources/views/Report/edit.html.twig
Normal file
16
Resources/views/Report/edit.html.twig
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{% extends '::base.html.twig' %}
|
||||||
|
|
||||||
|
{% block body -%}
|
||||||
|
<h1>Report edit</h1>
|
||||||
|
|
||||||
|
{{ form(edit_form) }}
|
||||||
|
|
||||||
|
<ul class="record_actions">
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('report') }}">
|
||||||
|
Back to the list
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>{{ form(delete_form) }}</li>
|
||||||
|
</ul>
|
||||||
|
{% endblock %}
|
51
Resources/views/Report/index.html.twig
Normal file
51
Resources/views/Report/index.html.twig
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
{% extends '::base.html.twig' %}
|
||||||
|
|
||||||
|
{% block body -%}
|
||||||
|
<h1>Report list</h1>
|
||||||
|
|
||||||
|
<table class="records_list">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Id</th>
|
||||||
|
<th>Userr</th>
|
||||||
|
<th>Person</th>
|
||||||
|
<th>Date</th>
|
||||||
|
<th>Scope</th>
|
||||||
|
<th>Cfdata</th>
|
||||||
|
<th>Cfgroup</th>
|
||||||
|
<th>Actions</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for entity in entities %}
|
||||||
|
<tr>
|
||||||
|
<td><a href="{{ path('report_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
|
||||||
|
<td>{{ entity.userr }}</td>
|
||||||
|
<td>{{ entity.person }}</td>
|
||||||
|
<td>{% if entity.date %}{{ entity.date|date('Y-m-d H:i:s') }}{% endif %}</td>
|
||||||
|
<td>{{ entity.scope }}</td>
|
||||||
|
<td>{{ entity.cFData }}</td>
|
||||||
|
<td>{{ entity.cFGroup }}</td>
|
||||||
|
<td>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('report_show', { 'id': entity.id }) }}">show</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('report_edit', { 'id': entity.id }) }}">edit</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('report_new') }}">
|
||||||
|
Create a new entry
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
{% endblock %}
|
15
Resources/views/Report/new.html.twig
Normal file
15
Resources/views/Report/new.html.twig
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{% extends '::base.html.twig' %}
|
||||||
|
|
||||||
|
{% block body -%}
|
||||||
|
<h1>Report creation</h1>
|
||||||
|
|
||||||
|
{{ form(form) }}
|
||||||
|
|
||||||
|
<ul class="record_actions">
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('report') }}">
|
||||||
|
Back to the list
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
{% endblock %}
|
52
Resources/views/Report/show.html.twig
Normal file
52
Resources/views/Report/show.html.twig
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
{% extends '::base.html.twig' %}
|
||||||
|
|
||||||
|
{% block body -%}
|
||||||
|
<h1>Report</h1>
|
||||||
|
|
||||||
|
<table class="record_properties">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th>Id</th>
|
||||||
|
<td>{{ entity.id }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Userr</th>
|
||||||
|
<td>{{ entity.userr }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Person</th>
|
||||||
|
<td>{{ entity.person }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Date</th>
|
||||||
|
<td>{{ entity.date|date('Y-m-d H:i:s') }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Scope</th>
|
||||||
|
<td>{{ entity.scope }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Cfdata</th>
|
||||||
|
<td>{{ entity.cFData }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Cfgroup</th>
|
||||||
|
<td>{{ entity.cFGroup }}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<ul class="record_actions">
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('report') }}">
|
||||||
|
Back to the list
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('report_edit', { 'id': entity.id }) }}">
|
||||||
|
Edit
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>{{ form(delete_form) }}</li>
|
||||||
|
</ul>
|
||||||
|
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user