chore: initial import for test contour with k3s CI
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
<form method="post" action="{{ path('category_page_delete', {'id': category_page.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ category_page.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 CategoryPage{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Edit CategoryPage</h1>
|
||||
|
||||
{{ include('category_page/_form.html.twig', {'button_label': 'Update'}) }}
|
||||
|
||||
<a href="{{ path('category_page_index') }}">back to list</a>
|
||||
|
||||
{{ include('category_page/_delete_form.html.twig') }}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,37 @@
|
||||
{% extends 'admin_base.html.twig' %}
|
||||
|
||||
{% block title %}CategoryPage index{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>CategoryPage index</h1>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Name</th>
|
||||
<th>Active</th>
|
||||
<th>actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for category_page in category_pages %}
|
||||
<tr>
|
||||
<td>{{ category_page.id }}</td>
|
||||
<td>{{ category_page.name }}</td>
|
||||
<td>{{ category_page.active ? 'Yes' : 'No' }}</td>
|
||||
<td>
|
||||
<a href="{{ path('category_page_show', {'id': category_page.id}) }}">show</a>
|
||||
<a href="{{ path('category_page_edit', {'id': category_page.id}) }}">edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="4">no records found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('category_page_new') }}">Create new</a>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,11 @@
|
||||
{% extends 'admin_base.html.twig' %}
|
||||
|
||||
{% block title %}New CategoryPage{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Create new CategoryPage</h1>
|
||||
|
||||
{{ include('category_page/_form.html.twig') }}
|
||||
|
||||
<a href="{{ path('category_page_index') }}">back to list</a>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,30 @@
|
||||
{% extends 'admin_base.html.twig' %}
|
||||
|
||||
{% block title %}CategoryPage{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>CategoryPage</h1>
|
||||
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<td>{{ category_page.id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<td>{{ category_page.name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Active</th>
|
||||
<td>{{ category_page.active ? 'Yes' : 'No' }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('category_page_index') }}">back to list</a>
|
||||
|
||||
<a href="{{ path('category_page_edit', {'id': category_page.id}) }}">edit</a>
|
||||
|
||||
{{ include('category_page/_delete_form.html.twig') }}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user