This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/resources/views/yuuno/settings/account/userpage.twig

23 lines
1.1 KiB
Twig
Raw Permalink Normal View History

2017-03-23 15:01:53 +00:00
{% extends '@yuuno/settings/account/master.twig' %}
{% set mode = 'Userpage' %}
{% block description %}
<p>The custom text that is displayed on your profile.</p>
{% endblock %}
{% block settingsContent %}
2017-03-24 17:10:44 +00:00
<div class="bbcode" id="settingsPreview" style="max-height: 500px; overflow-y: auto; background: #C2AEEE; box-shadow: inset 0 0 1em 1em #D3BFFF;">{{ user.userPage()|raw }}</div>
2016-11-09 18:32:23 +00:00
<hr>
2016-12-09 18:09:33 +00:00
<form enctype="multipart/form-data" method="post" action="javascript:;" onsubmit="updateSettings(this, '{{ route('settings.account.userpage') }}');">
<input type="hidden" name="session" value="{{ session_id() }}">
2016-11-10 22:32:45 +00:00
<div>
<textarea name="userpage" id="settingsEditor" class="input__text" style="height: 400px;">{% if user.page %}{{ user.page }}{% else %}[header]Welcome to my userpage![/header]{% endif %}</textarea>
</div>
2016-12-09 18:09:33 +00:00
<button class="input__button">Save</button>
2016-11-10 22:32:45 +00:00
<button type="reset" class="input__button">Reset</button>
2016-12-09 18:09:33 +00:00
<button type="button" class="input__button" onclick="settingsPreview()">Preview</button>
</form>
2017-03-23 15:01:53 +00:00
{% include '@yuuno/settings/account/_preview.twig' %}
{% endblock %}