22 lines
1.1 KiB
Twig
22 lines
1.1 KiB
Twig
{% extends '@yuuno/settings/account/master.twig' %}
|
|
|
|
{% set mode = 'Signature' %}
|
|
|
|
{% block description %}
|
|
<p>This signature is displayed at the end of all your posts on the forum.</p>
|
|
{% endblock %}
|
|
|
|
{% block settingsContent %}
|
|
<div class="bbcode" id="settingsPreview" style="max-height: 500px; overflow-y: auto; background: #C2AEEE; box-shadow: inset 0 0 1em 1em #D3BFFF;">{{ user.signature()|raw }}</div>
|
|
<hr>
|
|
<form enctype="multipart/form-data" method="post" action="javascript:;" onsubmit="updateSettings(this, '{{ route('settings.account.signature') }}');">
|
|
<input type="hidden" name="session" value="{{ session_id() }}">
|
|
<div>
|
|
<textarea name="signature" id="settingsEditor" class="input__text" style="height: 400px;">{{ user.signature }}</textarea>
|
|
</div>
|
|
<button class="input__button">Save</button>
|
|
<button type="reset" class="input__button">Reset</button>
|
|
<button type="button" class="input__button" onclick="settingsPreview()">Preview</button>
|
|
</form>
|
|
{% include '@yuuno/settings/account/_preview.twig' %}
|
|
{% endblock %}
|