misuzu/templates/manage/general/setting-delete.twig

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 ' ~ conf_var.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': conf_var.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">{{ conf_var.name }}</div>
</td>
<td class="manage-list-setting-type manage-list-setting-type--{{ conf_var.type }}">
<div class="manage-list-setting-type-text">{{ conf_var.type }}</div>
</td>
<td class="manage-list-setting-value">
<div class="manage-list-setting-value-text">{{ conf_var.value|json_encode }}</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 %}