misuzu/templates/manage/general/setting-delete.twig
2023-07-18 21:48:44 +00:00

42 lines
1.9 KiB
Twig

{% extends 'manage/general/master.twig' %}
{% from 'macros.twig' import container_title %}
{% from '_layout/input.twig' import input_csrf, input_text, input_checkbox, input_file, input_select, input_colour %}
{% set title = ('Removing setting ' ~ config_value.name) %}
{% block manage_content %}
<div class="container manage-settings">
{{ container_title('<i class="fas fa-cogs fa-fw"></i> ' ~ title) }}
<div class="manage__description">
Are you sure you want to delete this setting? It cannot be recovered.
</div>
<form method="post" action="{{ url('manage-general-setting-delete', {'name': config_value.name}) }}" class="manage-setting">
{{ input_csrf() }}
<div class="manage-settings-list-container">
<table class="manage-settings-list">
<tbody>
<tr class="manage-list-setting">
<td class="manage-list-setting-key">
<div class="manage-list-setting-key-text">{{ config_value.name }}</div>
</td>
<td class="manage-list-setting-type manage-list-setting-type--{{ config_value.type }}">
<div class="manage-list-setting-type-text">{{ config_value.type }}</div>
</td>
<td class="manage-list-setting-value">
<div class="manage-list-setting-value-text">{{ config_value }}</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="manage-setting-actions">
<button class="input__button input__button--destroy">Yes</button>
<a class="input__button" href="{{ url('manage-general-settings') }}">No</a>
</div>
</form>
</div>
{% endblock %}