MarseyWorld/files/templates/settings_css.html

51 lines
1.4 KiB
HTML
Raw Normal View History

2021-07-21 01:12:26 +00:00
{% extends "settings.html" %}
2021-08-19 05:14:52 +00:00
{% block pagetitle %}Custom CSS - {{'SITE_NAME' | app_config}}{% endblock %}
2021-07-21 01:12:26 +00:00
{% block content %}
<div class="row">
<div class="col col-md-8">
2021-08-15 01:03:29 +00:00
<div class="settings">
2021-07-21 01:12:26 +00:00
2021-08-15 01:03:29 +00:00
<div id="description">
2021-07-21 01:12:26 +00:00
<p class="text-small text-muted">Edit your custom CSS for the site.</p>
<div class="settings-section rounded mb-0">
<div class="body d-lg-flex border-bottom">
<div class="w-lg-100">
<form id="profile-settings" action="/settings/css" method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<textarea class="form-control rounded" id="bio-text" aria-label="With textarea" placeholder="Custom CSS" rows="50" name="css" form="profile-settings" maxlength="50000">{% if v.css %}{{v.css}}{% endif %}</textarea>
2021-10-10 03:42:12 +00:00
<small>Limit of 4000 characters</small>
2021-07-21 01:12:26 +00:00
<div class="d-flex mt-2">
<input id="submit-btn" class="btn btn-primary ml-auto" type="submit" value="Save">
</div>
</form>
</div>
</div>
2021-08-15 01:03:29 +00:00
</div>
2021-07-21 01:12:26 +00:00
</div>
</div>
</div>
{% if v.agendaposter %}
<script>
const flip = (e) => {
e.preventDefault();
document.getElementsByTagName("body")[0].setAttribute("style", "-moz-transform: scale(-1, -1);-o-transform: scale(-1, -1);-webkit-transform: scale(-1, -1);transform: scale(-1, -1);");
};
2021-09-28 19:58:17 +00:00
document.getElementById("submit-btn").onclick = flip;
2021-07-21 01:12:26 +00:00
</script>
{% endif %}
</div>
{% endblock %}