chore: initial import for test contour with k3s CI

This commit is contained in:
sova-bootstrap
2026-05-28 12:09:28 +03:00
commit d77d0a872f
423 changed files with 35401 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
<form method="post" action="{{ path('banner_delete', {'id': banner.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ banner.id) }}">
<button class="btn">Delete</button>
</form>
+5
View File
@@ -0,0 +1,5 @@
{% form_theme form 'bootstrap_3_layout.html.twig' %}
{{ form_start(form) }}
{{ form_widget(form) }}
<button class="btn">{{ button_label|default('Save') }}</button>
{{ form_end(form) }}
+13
View File
@@ -0,0 +1,13 @@
{% extends 'admin_base.html.twig' %}
{% block title %}Edit Banner{% endblock %}
{% block body %}
<h1>Edit Banner</h1>
{{ include('banner/_form.html.twig', {'button_label': 'Update'}) }}
<a href="{{ path('admin_banner_index') }}">back to list</a>
{{ include('banner/_delete_form.html.twig') }}
{% endblock %}
+40
View File
@@ -0,0 +1,40 @@
{% extends 'admin_base.html.twig' %}
{% block title %}Banner index{% endblock %}
{% block body %}
<h1>Banner index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Href</th>
<th>Src</th>
<th>City</th>
<th>Active</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for banner in banners %}
<tr>
<td>{{ banner.id }}</td>
<td>{{ banner.href }}</td>
<td><img src="/banners/{{ banner.src }}" alt="banner" width="100%"> </td>
<td>{{ banner.city.name }}</td>
<td>{{ banner.active? 'on' : 'off' }}</td>
<td>
<a href="{{ path('banner_edit', {'id': banner.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="5">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('banner_new') }}">Create new</a>
{% endblock %}
+11
View File
@@ -0,0 +1,11 @@
{% extends 'admin_base.html.twig' %}
{% block title %}New Banner{% endblock %}
{% block body %}
<h1>Create new Banner</h1>
{{ include('banner/_form.html.twig') }}
<a href="{{ path('admin_banner_index') }}">back to list</a>
{% endblock %}