{# admin/setting/edit.html.twig #} {% import "_modules/bsmacros.html.twig" as bs %} {% extends "baseadmin.html.twig" %} {% block title %}{{ parent() }} - Edit Setting{% endblock %} {% block breadcrumb %} {{ parent() }} {% endblock %} {% block content %}
Edit Setting: {{ setting.key }}
{{ form_start(form) }}
{{ form_label(form.key, 'Key', {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.key, {'attr': {'class': 'form-control bg-dark text-light border-secondary', 'readonly': true}}) }} {{ form_errors(form.key) }}
{{ form_label(form.type, 'Data Type', {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.type, {'attr': {'class': 'form-select bg-dark text-light border-secondary'}}) }} {{ form_errors(form.type) }}
{{ form_label(form.description, 'Description', {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.description, {'attr': {'class': 'form-control bg-dark text-light border-secondary', 'rows': '2'}}) }} {{ form_errors(form.description) }}
{{ form_label(form.value, 'Value', {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.value, {'attr': {'class': 'form-control bg-dark text-light border-secondary', 'rows': '3'}}) }} {{ form_errors(form.value) }} For boolean type, use 1 for true or 0 for false. For JSON type, enter a valid JSON string.
Cancel
{{ form_end(form) }}
{% endblock %}