rDrama/files/templates/sub/settings.html

143 lines
6.1 KiB
HTML
Raw Normal View History

2022-02-10 20:35:16 +00:00
{% extends "default.html" %}
[DO NOT MERGE] titlesssssssssss (#468) * titles * testing * self * Revert "self" This reverts commit d6c12d5a5ba125feb44673f55e1fdac75f151cb5. * Revert "testing" This reverts commit 86d800f9fd552196b31f0e0b3891d4fc072a9bc0. * testing on devrama * rewrite the html head * reference error or smth idk * tempalte debug * template debug redux * default2 * rename default2 -> root, page title * fix settings2 * include the set_variables block * root scope variables 2 * test 3 * remove unnecessary set * add pagetitles to all settings2 pages * add pagetitle to casino * remove bloat * remove duplicate site name thingy * page titles 2 * page titles 3 * remove duplicate imports and add page titles everywhere iirc * ok but actually this time * remove unnecessary newlines * fix title lol * > * fsdfsfsfsfsfs * fsfs * template configurations * fix 500 * reduce login template bloat * move files and add status codes where needful * move authfroms to login * remove 2fa bloat * verification code * sign up fixes * readability * fssfsfsfs * move forgot password to login/ * readability * don't emit comments * add page titles where needful * gsgsgs * modals: move to respective pages * testing on devrama * get home garbage out of title * remove insane amount of icon duplication * sign up text * add votes pagetitle * fix blank lines * Revert "fix blank lines" This reverts commit b2c54339970725d00b6fc82bb458c1757909952c. * Fix blank lines on sign_up.html. * title: votes.html more meaningful identifier. * titles: Lottery, Directory, Notifications * head final in submission.html * fix missing comma * > * test * title: /comments * fsfsfsfsf * titles: user_cards * head: only load video and audio meta attributes if they actually exist * titlessssss: /admin/lottery/participants * titlessssssss: extra quote in search.html * titlessssss: userpage voters. * titties: /h/<sub>/{followers,blockers,exilees[sic]} * test banner * Revert "test banner" This reverts commit c3d875d03f3e60d72a60dab7d28bf108554a5826. * make submit.html inherit from default.html Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-21 08:52:22 +00:00
{% block pagetitle %}/h/{{sub}} Settings{% endblock %}
2022-02-10 20:35:16 +00:00
{% block content %}
{% if error %}{{macros.alert(error, true)}}{% endif %}
{% if msg %}{{macros.alert(msg, false)}}{% endif %}
<div class="title w-lg-25 mt-5">
<label class="text-lg" for="stealth">Stealth Mode</label>
</div>
<div class="body w-lg-100">
<div class="custom-control custom-switch">
2022-12-30 12:14:18 +00:00
<input autocomplete="off" type="checkbox" class="custom-control-input" id="stealth" name="stealth" {% if sub.stealth %}checked{% endif %} data-nonce="{{g.nonce}}" data-onchange="postToastSwitch(this,'/h/{{sub}}/stealth');">
<label class="custom-control-label" for="stealth"></label>
</div>
2022-09-10 06:22:59 +00:00
<span class="text-small text-muted">Make this hole blocked by default (users can visit it to unblock it).</span>
</div>
<h5 class="mt-5">Marsey</h5>
<div class="settings-section rounded">
<div class="d-flex">
<div class="title w-lg-25 text-md-center">
<img loading="lazy" alt="sub marsey picture" src="{{sub.marsey_url}}" class="profile-pic-75">
</div>
<div class="body w-lg-100 my-auto">
<div class="d-flex">
<div>
<form action="/h/{{sub}}/marsey_image" method="post" enctype="multipart/form-data">
2023-01-24 05:10:16 +00:00
<input hidden name="formkey" value="{{v|formkey}}">
<label class="btn btn-secondary text-capitalize mr-2 mb-0">
2023-01-01 09:42:23 +00:00
Update<input autocomplete="off" type="file" accept="image/*" {% if g.is_tor %}disabled{% endif %} hidden name="marsey" data-nonce="{{g.nonce}}" onchange_submit>
</label>
</form>
</div>
</div>
<div class="text-small text-muted mt-3">All image files are supported. Max file size is {% if v and v.patron %}16{% else %}8{% endif %} MB.</div>
</div>
</div>
</div>
2022-10-29 00:52:11 +00:00
<h5 class=" mt-5">Sidebar Picture</h5>
2022-02-10 20:35:16 +00:00
<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="/h/{{sub}}/sidebar_image" method="post" enctype="multipart/form-data">
2023-01-24 05:10:16 +00:00
<input 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">
2023-01-01 09:42:23 +00:00
Update<input autocomplete="off" type="file" accept="image/*" {% if g.is_tor %}disabled{% endif %} hidden name="sidebar" data-nonce="{{g.nonce}}" onchange_submit>
2022-02-10 20:35:16 +00:00
</label>
</form>
</div>
</div>
<div class="text-small text-muted mt-3">All image files are supported. Max file size is {% if v and v.patron %}16{% else %}8{% endif %} MB.</div>
2022-02-10 20:35:16 +00:00
</div>
</div>
</div>
2022-02-11 23:32:14 +00:00
<h5 class="mt-5">Banners</h5>
<div class="settings-section rounded sub-banner-update-section">
{% for banner in sub.banner_urls %}
<section id="sub-banner-update-{{loop.index - 1}}" class="d-flex sub-settings-subsection">
2022-02-10 20:35:16 +00:00
<div class="title w-lg-75 text-md-center">
<img loading="lazy" alt="/h/{{sub.name}} banner" src="{{banner}}" class="banner-pic-135 sub-banner-preview sub-banner-{{sub.name}}">
2022-02-10 20:35:16 +00:00
</div>
<div class="body w-lg-100 my-auto">
<div class="d-flex">
2022-12-30 12:14:18 +00:00
<button class="btn btn-danger sub-banner-delete-button" id="sub-banner-delete-{{loop.index}}" data-nonce="{{g.nonce}}" data-onclick="areyousure(this)" data-areyousure="postToastReload(this, '/h/{{sub.name}}/settings/banners/{{loop.index - 1}}', 'DELETE');">Delete</button>
</div>
</div>
</section>
{% else %}
<section id="sub-banner-no-banners" class="d-flex sub-settings-subsection">
{{macros.ghost_box("No banners uploaded", "", 2, "flex:1;")}}
</section>
{% endfor %}
{% if not g.is_tor %}
<section id="sub-banner-upload-new" class="d-flex sub-settings-subsection">
<div class="body w-lg-100 my-auto">
<div class="d-flex">
2022-02-10 20:35:16 +00:00
<div>
<form action="/h/{{sub.name}}/settings/banners/" method="post" enctype="multipart/form-data">
2023-01-24 05:10:16 +00:00
<input 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">
2023-01-01 09:42:23 +00:00
Upload New Banner<input autocomplete="off" type="file" accept="image/*" hidden name="banner" data-nonce="{{g.nonce}}" onchange_submit>
2022-02-10 20:35:16 +00:00
</label>
2022-12-30 12:14:18 +00:00
<button type="button" class="btn btn-danger sub-banner-delete-button" id="sub-banner-delete-all" data-nonce="{{g.nonce}}" data-onclick="areyousure(this)" data-areyousure="postToastReload(this, '/h/{{sub.name}}/settings/banners/', 'DELETE');">Delete All Banners</button>
2022-02-10 20:35:16 +00:00
</form>
</div>
</div>
<div class="text-small text-muted mt-3">All image files are supported. Max file size is {% if v and v.patron %}16{% else %}8{% endif %} MB.</div>
2022-02-10 20:35:16 +00:00
</div>
</section>
{% endif %}
2022-02-10 20:35:16 +00:00
</div>
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>
2022-02-10 20:35:16 +00:00
</div>
<div class="body d-lg-flex">
<div class="w-lg-100">
<form id="sidebar" action="/h/{{sub}}/sidebar" method="post">
2023-01-24 05:10:16 +00:00
<input hidden name="formkey" value="{{v|formkey}}">
2022-12-25 02:10:56 +00:00
<textarea autocomplete="off" maxlength="10000" class="form-control rounded" id="bio-text" 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-12-30 12:14:18 +00:00
<input autocomplete="off" class="btn btn-primary ml-auto" type="submit" data-nonce="{{g.nonce}}" data-onclick="disable(this)" 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>
2022-02-11 23:32:14 +00:00
</div>
<div class="body d-lg-flex">
<div class="w-lg-100">
<form id="css" action="/h/{{sub}}/css" method="post">
2023-01-24 05:10:16 +00:00
<input hidden name="formkey" value="{{v|formkey}}">
2022-12-25 02:10:56 +00:00
<textarea autocomplete="off" maxlength="6000" class="form-control rounded" id="bio-text" 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-12-30 12:14:18 +00:00
<input autocomplete="off" class="btn btn-primary ml-auto" type="submit" data-nonce="{{g.nonce}}" data-onclick="disable(this)" value="Save">
2022-02-10 20:35:16 +00:00
</div>
</form>
</div>
</div>
</div>
</div>
</div>
2022-10-28 23:35:14 +00:00
{% endblock %}