chore: initial import for test contour with k3s CI
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
<form method="post" action="{{ path('page_delete', {'id': page.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ 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 Page{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Edit Page</h1>
|
||||
|
||||
{{ include('page/_form.html.twig', {'button_label': 'Update'}) }}
|
||||
|
||||
<a href="{{ path('page_index') }}">back to list</a>
|
||||
|
||||
{{ include('page/_delete_form.html.twig') }}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,43 @@
|
||||
{% extends 'admin_base.html.twig' %}
|
||||
|
||||
{% block title %}Page index{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Page index</h1>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th>Active</th>
|
||||
<th>Alias</th>
|
||||
<th>actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for page in pages %}
|
||||
<tr>
|
||||
<td>{{ page.id }}</td>
|
||||
<td>{{ page.name }}</td>
|
||||
<td>{{ page.description }}</td>
|
||||
<td>{{ page.active ? 'Yes' : 'No' }}</td>
|
||||
<td>{{ page.alias }}</td>
|
||||
<td>
|
||||
<a href="{{ path('page_show', {'alias': page.alias}) }}">show</a>
|
||||
<a href="{{ path('page_edit', {'id': page.id}) }}">edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="6">no records found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('page_new') }}">Create new</a>
|
||||
<br>
|
||||
<a href="{{ path('category_page_index') }}">Все категории</a>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,11 @@
|
||||
{% extends 'admin_base.html.twig' %}
|
||||
|
||||
{% block title %}New Page{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Create new Page</h1>
|
||||
|
||||
{{ include('page/_form.html.twig') }}
|
||||
|
||||
<a href="{{ path('page_index') }}">back to list</a>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,7 @@
|
||||
{% extends 'base_widget.html.twig' %}
|
||||
|
||||
{% block title %}{{ page.name }}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{{ page.description | raw}}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user