chore: initial import for test contour with k3s CI
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
<form method="post" action="{{ path('app_review_source_delete', {'id': review_source.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ review_source.id) }}">
|
||||
<button class="btn">Delete</button>
|
||||
</form>
|
||||
@@ -0,0 +1,5 @@
|
||||
{% form_theme form 'bootstrap_4_layout.html.twig' %}
|
||||
{{ form_start(form) }}
|
||||
{{ form_widget(form) }}
|
||||
<button class="btn">{{ button_label|default('Save') }}</button>
|
||||
{{ form_end(form) }}
|
||||
@@ -0,0 +1,13 @@
|
||||
{% extends 'admin_base.html.twig' %}
|
||||
|
||||
{% block title %}Edit ReviewSource{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Edit ReviewSource</h1>
|
||||
|
||||
{{ include('review_source/_form.html.twig', {'button_label': 'Update'}) }}
|
||||
|
||||
<a href="{{ path('app_review_source_index') }}">back to list</a>
|
||||
|
||||
{{ include('review_source/_delete_form.html.twig') }}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,42 @@
|
||||
{% extends 'admin_base.html.twig' %}
|
||||
|
||||
{% block title %}ReviewSource index{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>ReviewSource index</h1>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Name</th>
|
||||
<th>CountRow</th>
|
||||
<th>Rating</th>
|
||||
<th>Filial</th>
|
||||
<th>Active</th>
|
||||
<th>actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for review_source in review_sources %}
|
||||
<tr>
|
||||
<td>{{ review_source.id }}</td>
|
||||
<td>{{ review_source.name }}</td>
|
||||
<td>{{ review_source.countRow }}</td>
|
||||
<td>{{ review_source.rating }}</td>
|
||||
<td>{{ review_source.filial.address }}</td>
|
||||
<td>{{ review_source.active }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_review_source_edit', {'id': review_source.id}) }}">edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="6">no records found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_review_source_new') }}">Create new</a>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,11 @@
|
||||
{% extends 'admin_base.html.twig' %}
|
||||
|
||||
{% block title %}New ReviewSource{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Create new ReviewSource</h1>
|
||||
|
||||
{{ include('review_source/_form.html.twig') }}
|
||||
|
||||
<a href="{{ path('app_review_source_index') }}">back to list</a>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user