forked from rDrama/rDrama
settings: personal: wrap colors in required tags
settings: personal: put website backgrounds custom CSSmaster
parent
5fbe680fe5
commit
85e1d271b7
|
@ -1,25 +1,13 @@
|
||||||
{% extends "settings.html" %}
|
{% extends "settings.html" %}
|
||||||
{% block pagetitle %}Personal Settings - {{SITE_NAME}}{% endblock %}
|
{% block pagetitle %}Personal Settings - {{SITE_NAME}}{% endblock %}
|
||||||
{% import 'settings_common.html' as common with context %}
|
{% import 'settings_common.html' as common with context %}
|
||||||
<style>
|
|
||||||
.bg-image {
|
|
||||||
padding: 0.25rem;
|
|
||||||
width: 15rem;
|
|
||||||
height: 10rem;
|
|
||||||
object-fit: cover;
|
|
||||||
}
|
|
||||||
.bg-button {
|
|
||||||
margin: 0.25rem;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
{# common sections start #}
|
{# common sections start #}
|
||||||
{% macro color_section(id, form_action, form_name, section_title, current_color) %}
|
{% macro color_section(id, form_action, form_name, section_title, current_color) %}
|
||||||
<div class="d-lg-flex border-bottom">
|
<div class="d-lg-flex border-bottom">
|
||||||
<div class="title w-lg-25">
|
<div class="title w-lg-25">
|
||||||
<label for="{{id}}">{{section_title}}</label>
|
<label for="{{id}}">{{section_title}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="body">
|
<div class="body w-lg-100 d-lg-flex">
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<form action="{{form_action}}" id="{{id}}-form" method="post" class="color-picker" style="line-height: 0">
|
<form action="{{form_action}}" id="{{id}}-form" method="post" class="color-picker" style="line-height: 0">
|
||||||
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
|
@ -101,6 +89,18 @@
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
{# common sections end #}
|
{# common sections end #}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<style>
|
||||||
|
.bg-image {
|
||||||
|
padding: 0.25rem;
|
||||||
|
width: 15rem;
|
||||||
|
height: 10rem;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
.bg-button {
|
||||||
|
margin: 0.25rem;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<div class="row settings-page" id="settings-page-personal">
|
<div class="row settings-page" id="settings-page-personal">
|
||||||
<div class="col col-lg-10">
|
<div class="col col-lg-10">
|
||||||
<div class="settings">
|
<div class="settings">
|
||||||
|
|
Loading…
Reference in New Issue