30 lines
1.0 KiB
Twig
30 lines
1.0 KiB
Twig
|
{% 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 %}
|