2022-02-10 20:35:16 +00:00
{% extends "default.html" %}
{% block pagetitle %}Edit {{SITE_NAME}} sidebar{% endblock %}
{% block content %}
{% 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 >
< form action = "/s/{{sub.name}}/sidebar_image" method = "post" enctype = "multipart/form-data" >
< input autocomplete = "off" type = "hidden" name = "formkey" value = "{{v.formkey}}" >
< 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-02-11 15:02:27 +00:00
< img loading = "lazy" alt = "/s/{[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 >
< form action = "/s/{{sub.name}}/banner" method = "post" enctype = "multipart/form-data" >
< input autocomplete = "off" type = "hidden" name = "formkey" value = "{{v.formkey}}" >
< 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-10 20:35:16 +00:00
< div class = "row my-5 py-5" >
< 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-02-11 23:32:14 +00:00
< form id = "sidebar" action = "/s/{{sub.name}}/sidebar" method = "post" >
< input autocomplete = "off" type = "hidden" name = "formkey" value = "{{v.formkey}}" >
< textarea autocomplete = "off" maxlength = "500" class = "form-control rounded" id = "bio-text" aria-label = "With textarea" placeholder = "Enter sidebar here..." rows = "50" name = "sidebar" form = "sidebar" > {% if sub.sidebar %}{{sub.sidebar}}{% endif %}< / textarea >
< div class = "d-flex mt-2" >
< input autocomplete = "off" class = "btn btn-primary ml-auto" type = "submit" value = "Save" >
< / div >
< / form >
< / div >
< / div >
< / div >
< / div >
< / div >
< div class = "row my-5 py-5" >
< 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" >
< form id = "css" action = "/s/{{sub.name}}/css" method = "post" >
2022-02-10 20:35:16 +00:00
< input autocomplete = "off" type = "hidden" name = "formkey" value = "{{v.formkey}}" >
2022-02-11 23:32:14 +00:00
< textarea autocomplete = "off" maxlength = "4000" class = "form-control rounded" id = "bio-text" aria-label = "With textarea" placeholder = "Enter css here..." rows = "50" 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" >
< input autocomplete = "off" class = "btn btn-primary ml-auto" type = "submit" value = "Save" >
< / div >
< / form >
< / div >
< / div >
< / div >
< / div >
< / div >
{% endblock %}