2022-02-10 20:35:16 +00:00
{% extends "default.html" %}
{% block pagetitle %}Edit {{SITE_NAME}} sidebar{% endblock %}
{% block content %}
2022-05-03 19:07:15 +00:00
{% if error %}
< div class = "alert alert-danger alert-dismissible fade show mb-3 mt-4" role = "alert" >
< i class = "fas fa-exclamation-circle my-auto" > < / i >
< span >
{{error}}
< / span >
< button class = "close" data-bs-dismiss = "alert" aria-label = "Close" >
< span aria-hidden = "true" > < i class = "far fa-times" > < / i > < / span >
< / button >
< / div >
{% endif %}
2022-02-10 20:35:16 +00:00
{% if msg %}
< div class = "alert alert-success alert-dismissible fade show my-3" role = "alert" >
< i class = "fas fa-check-circle my-auto" aria-hidden = "true" > < / i >
< span >
{{msg}}
< / span >
< button class = "close" data-bs-dismiss = "alert" aria-label = "Close" >
< span aria-hidden = "true" > < i class = "far fa-times" > < / i > < / span >
< / button >
< / div >
{% endif %}
< h2 class = "h5 mt-5" > Sidebar Picture< / h2 >
< div class = "settings-section rounded" >
< div class = "d-flex" >
< div class = "title w-lg-25 text-md-center" >
< img loading = "lazy" alt = "sub sidebar picture" src = "{{sub.sidebar_url}}" class = "profile-pic-75" >
< / div >
< div class = "body w-lg-100 my-auto" >
< div class = "d-flex" >
< div >
2022-03-09 02:04:37 +00:00
< form action = "/h/{{sub.name}}/sidebar_image" method = "post" enctype = "multipart/form-data" >
2022-03-19 16:19:02 +00:00
< input type = "hidden" name = "formkey" value = "{{v.formkey}}" >
2022-02-10 20:35:16 +00:00
< label class = "btn btn-secondary text-capitalize mr-2 mb-0" >
Update< input autocomplete = "off" type = "file" accept = "image/*" { % if request . headers . get ( ' cf-ipcountry ' ) = = " T1 " % } disabled { % endif % } hidden name = "sidebar" onchange = "form.submit()" >
< / label >
< / form >
< / div >
< / div >
< div class = "text-small-extra text-muted mt-3" > JPG, PNG, GIF files are supported. Max file size is {% if v and v.patron %}8{% else %}4{% endif %} MB.< / div >
< / div >
< / div >
< / div >
2022-02-11 23:32:14 +00:00
2022-02-10 20:35:16 +00:00
< h2 class = "h5 mt-5" > Banner< / h2 >
< div class = "settings-section rounded" >
< div class = "d-flex" >
< div class = "title w-lg-75 text-md-center" >
2022-03-09 02:04:37 +00:00
< img loading = "lazy" alt = "/h/{[sub.name]} banner" src = "{{sub.banner_url}}" class = "banner-pic-135" >
2022-02-10 20:35:16 +00:00
< / div >
< div class = "body w-lg-100 my-auto" >
< div class = "d-flex" >
< div >
2022-03-09 02:04:37 +00:00
< form action = "/h/{{sub.name}}/banner" method = "post" enctype = "multipart/form-data" >
2022-03-19 16:19:02 +00:00
< input type = "hidden" name = "formkey" value = "{{v.formkey}}" >
2022-02-10 20:35:16 +00:00
< label class = "btn btn-secondary text-capitalize mr-2 mb-0" >
Update< input autocomplete = "off" type = "file" { % if request . headers . get ( ' cf-ipcountry ' ) = = " T1 " % } disabled { % endif % } accept = "image/*" hidden name = "banner" onchange = "form.submit()" >
< / label >
< / form >
< / div >
< / div >
< div class = "text-small-extra text-muted mt-3" > JPG, PNG, GIF files are supported. Max file size is {% if v and v.patron %}8{% else %}4{% endif %} MB.< / div >
< / div >
< / div >
< / div >
2022-02-11 23:32:14 +00:00
2022-02-12 18:05:35 +00:00
< div class = "row my-5 pt-5" >
2022-02-10 20:35:16 +00:00
< div class = "col col-md-8" >
< div class = "settings" >
< div id = "description" >
< h2 > Edit Sidebar< / h2 >
< br >
< / div >
< div class = "body d-lg-flex" >
< div class = "w-lg-100" >
2022-03-09 02:04:37 +00:00
< form id = "sidebar" action = "/h/{{sub.name}}/sidebar" method = "post" >
2022-03-19 16:19:02 +00:00
< input type = "hidden" name = "formkey" value = "{{v.formkey}}" >
2022-02-12 18:03:37 +00:00
< textarea autocomplete = "off" maxlength = "500" class = "form-control rounded" id = "bio-text" aria-label = "With textarea" placeholder = "Enter sidebar here..." rows = "10" name = "sidebar" form = "sidebar" > {% if sub.sidebar %}{{sub.sidebar}}{% endif %}< / textarea >
2022-02-11 23:32:14 +00:00
< div class = "d-flex mt-2" >
2022-06-23 20:49:23 +00:00
< input autocomplete = "off" class = "btn btn-primary ml-auto" type = "submit" onclick = "this.classList.add('disabled')" value = "Save" >
2022-02-11 23:32:14 +00:00
< / div >
< / form >
< / div >
< / div >
< / div >
< / div >
< / div >
2022-02-12 18:04:42 +00:00
< div class = "row" >
2022-02-11 23:32:14 +00:00
< div class = "col col-md-8" >
< div class = "settings" >
< div id = "description" >
< h2 > Edit CSS< / h2 >
< br >
< / div >
< div class = "body d-lg-flex" >
< div class = "w-lg-100" >
2022-03-09 02:04:37 +00:00
< form id = "css" action = "/h/{{sub.name}}/css" method = "post" >
2022-03-19 16:19:02 +00:00
< input type = "hidden" name = "formkey" value = "{{v.formkey}}" >
2022-02-12 18:03:37 +00:00
< textarea autocomplete = "off" maxlength = "4000" class = "form-control rounded" id = "bio-text" aria-label = "With textarea" placeholder = "Enter css here..." rows = "10" name = "css" form = "css" > {% if sub.css %}{{sub.css}}{% endif %}< / textarea >
2022-02-10 20:35:16 +00:00
< div class = "d-flex mt-2" >
2022-06-23 20:49:23 +00:00
< input autocomplete = "off" class = "btn btn-primary ml-auto" type = "submit" onclick = "this.classList.add('disabled')" value = "Save" >
2022-02-10 20:35:16 +00:00
< / div >
< / form >
< / div >
< / div >
< / div >
< / div >
< / div >
{% endblock %}