Make domain CRUD pages look a little better

This commit is contained in:
2023-10-14 14:23:47 -06:00
parent 39e94d8bdc
commit 21178d9a1f
5 changed files with 142 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
<form method="post" action="{{ path('app_domain_delete', {'id': domain.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ domain.id) }}">
<button class="btn">Delete</button>
<button class="btn btn-danger m-1">Delete</button>
</form>
+2 -2
View File
@@ -1,4 +1,4 @@
{{ form_start(form) }}
{{ form_start(form, { 'attr' : { 'class': 'mb-3' } }) }}
{{ form_widget(form) }}
<button class="btn">{{ button_label|default('Save') }}</button>
<button class="btn btn-primary float-start m-1">{{ button_label|default('Save') }}</button>
{{ form_end(form) }}
+1 -1
View File
@@ -7,7 +7,7 @@
{{ include('domain/_form.html.twig', {'button_label': 'Update'}) }}
<a href="{{ path('app_domain_index') }}">back to list</a>
<a href="{{ path('app_domain_index') }}" class="btn btn-secondary float-end m-1">Cancel</a>
{{ include('domain/_delete_form.html.twig') }}
{% endblock %}
+1 -1
View File
@@ -7,5 +7,5 @@
{{ include('domain/_form.html.twig') }}
<a href="{{ path('app_domain_index') }}">back to list</a>
<a href="{{ path('app_domain_index') }}" class="btn btn-secondary float-end m-1">Cancel</a>
{% endblock %}