Make domain CRUD pages look a little better
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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) }}
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user