2022-05-04 23:09:46 +00:00
|
|
|
{% extends "settings.html" %}
|
|
|
|
{% block pagetitle %}Custom CSS - {{SITE_NAME}}{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
2022-11-06 06:35:49 +00:00
|
|
|
<div class="settings col col-md-8">
|
|
|
|
<section>
|
|
|
|
<h5>Custom CSS</h5>
|
|
|
|
<div id="settings-custom-css" class="settings-section rounded mb-0">
|
|
|
|
<p class="text-small text-muted">Edit your custom CSS for the site</p>
|
|
|
|
<div class="body d-lg-flex border-bottom">
|
|
|
|
<div class="w-lg-100">
|
2022-11-08 04:00:31 +00:00
|
|
|
<form id="profile-settings-css" action="/settings/css" method="post">
|
2022-11-15 09:19:08 +00:00
|
|
|
<input type="hidden" name="formkey" value="{{v|formkey}}">
|
2022-11-08 04:09:55 +00:00
|
|
|
<textarea autocomplete="off" class="form-control rounded" id="css-textarea" aria-label="With textarea" placeholder="Custom CSS" rows="3" name="css" form="profile-settings-css" maxlength="4000">{% if v.css %}{{v.csslazy}}{% endif %}</textarea>
|
2022-11-06 06:35:49 +00:00
|
|
|
<small>Limit of 4000 characters</small>
|
|
|
|
<div class="d-flex mt-2">
|
|
|
|
<input autocomplete="off" id="submit-btn" class="btn btn-primary ml-auto" type="submit" onclick="disable(this)" value="Save">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2022-05-04 23:09:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-06 06:35:49 +00:00
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<h5>Profile CSS</h5>
|
|
|
|
<div id="settings-profile-css" class="settings-section rounded mb-0">
|
|
|
|
<p class="text-small text-muted">Edit your profile CSS</p>
|
|
|
|
<div class="body d-lg-flex border-bottom">
|
|
|
|
<div class="w-lg-100">
|
2022-11-08 04:00:31 +00:00
|
|
|
<form id="profile-settings-profilecss" action="/settings/profilecss" method="post">
|
2022-11-15 09:19:08 +00:00
|
|
|
<input type="hidden" name="formkey" value="{{v|formkey}}">
|
2022-11-08 04:09:55 +00:00
|
|
|
<textarea autocomplete="off" class="form-control rounded" id="profilecss-textarea" aria-label="With textarea" placeholder="Custom profile CSS" rows="3" name="profilecss" form="profile-settings-profilecss" maxlength="4000">{% if v.profilecss %}{{v.profilecss}}{% endif %}</textarea>
|
2022-11-06 06:35:49 +00:00
|
|
|
<small>Limit of 4000 characters</small>
|
|
|
|
<div class="d-flex mt-2">
|
|
|
|
<input autocomplete="off" class="btn btn-primary ml-auto" type="submit" onclick="disable(this)" value="Save">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2022-05-04 23:09:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-08 04:09:55 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
for (const x of ['css','profilecss']) {
|
|
|
|
const ta = document.getElementById(`${x}-textarea`);
|
|
|
|
autoExpand(ta);
|
|
|
|
}
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
2022-11-06 06:35:49 +00:00
|
|
|
{% endblock %}
|