leilukin-tumbleblog/modules/highlighter/admin/pages/highlighter_settings.twig

30 lines
1.0 KiB
Twig
Raw Permalink Normal View History

2024-06-20 14:10:42 +00:00
{% extends "layouts" ~ DIR ~ "default.twig" %}
{% block title %}{{ "Syntax Highlighting Settings" | translate("highlighter") }}{% endblock %}
{% block content %}
<h2>{{ "Syntax Highlighting Settings" | translate("highlighter") }}</h2>
<form id="highlighter_settings" class="split" action="{{ url('highlighter_settings') }}" method="post" accept-charset="UTF-8">
<fieldset role="presentation">
<p>
<label for="highlighter_stylesheet">{{ "Stylesheet" | translate("highlighter") }}</label>
{#- -#}
<select name="stylesheet" id="highlighter_stylesheet">
{% for filename in highlighter_stylesheets %}
{% set option_selected = filename | selected(site.module_highlighter.stylesheet) %}
<option value="{{ filename | fix(true) }}"{{ option_selected }}>
{{ filename | preg_replace("/(.+?)(\\.min)?\\.css$/i", "$1") }}
</option>
{% endfor %}
</select>
</p>
<p class="buttons">
<button type="submit" class="yay">
{{ "Update" | translate }}
</button>
</p>
<input type="hidden" name="hash" value="{{ authenticate() }}" id="hash">
</fieldset>
</form>
{% endblock %}