forked from rDrama/rDrama
fix hole banner margins in hole settings
parent
07309ee35d
commit
8f8f704a27
|
@ -47,24 +47,24 @@
|
||||||
<h5 class="mt-5">Banners</h5>
|
<h5 class="mt-5">Banners</h5>
|
||||||
<div class="settings-section rounded sub-banner-update-section">
|
<div class="settings-section rounded sub-banner-update-section">
|
||||||
{% for banner in sub.banner_urls %}
|
{% for banner in sub.banner_urls %}
|
||||||
<section id="sub-banner-update-{{loop.index - 1}}" class="d-inline-block sub-settings-subsection">
|
<section id="sub-banner-update-{{loop.index - 1}}" class="mt-5 d-block sub-settings-subsection">
|
||||||
<img class="mr-3" loading="lazy" alt="/h/{{sub.name}} banner" src="{{banner}}" style="max-height:300px;max-width:100%">
|
<img class="mr-3" loading="lazy" alt="/h/{{sub.name}} banner" src="{{banner}}" style="max-height:300px;max-width:100%">
|
||||||
<button class="btn btn-danger sub-banner-delete-button mt-2" id="sub-banner-delete-{{loop.index}}" data-nonce="{{g.nonce}}" data-onclick="areyousure(this)" data-areyousure="postToastReload(this, '/h/{{sub.name}}/settings/banners/delete/{{loop.index - 1}}');">Delete</button>
|
<button class="btn btn-danger sub-banner-delete-button mt-2" id="sub-banner-delete-{{loop.index}}" data-nonce="{{g.nonce}}" data-onclick="areyousure(this)" data-areyousure="postToastReload(this, '/h/{{sub.name}}/settings/banners/delete/{{loop.index - 1}}');">Delete</button>
|
||||||
</section>
|
</section>
|
||||||
{% else %}
|
{% else %}
|
||||||
<section id="sub-banner-no-banners" class="d-inline-block sub-settings-subsection">
|
<section id="sub-banner-no-banners" class="d-block sub-settings-subsection">
|
||||||
{{macros.ghost_box("No banners uploaded", "", 2, "flex:1;")}}
|
{{macros.ghost_box("No banners uploaded", "", 2, "flex:1;")}}
|
||||||
</section>
|
</section>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if not g.is_tor %}
|
{% if not g.is_tor %}
|
||||||
<section id="sub-banner-upload-new" class="sub-settings-subsection">
|
<section id="sub-banner-upload-new" class="mt-5 sub-settings-subsection">
|
||||||
<form class="d-inline-block" action="/h/{{sub.name}}/settings/banners/" method="post" enctype="multipart/form-data">
|
<form class="d-inline-block" action="/h/{{sub.name}}/settings/banners/" method="post" enctype="multipart/form-data">
|
||||||
<input hidden name="formkey" value="{{v|formkey}}">
|
<input hidden name="formkey" value="{{v|formkey}}">
|
||||||
<label class="btn btn-secondary text-capitalize mr-2 mb-0 mt-3">
|
<label class="btn btn-secondary text-capitalize mr-2 mb-0">
|
||||||
Upload New Banner<input autocomplete="off" type="file" accept="image/*" hidden name="banner" data-nonce="{{g.nonce}}" onchange_submit>
|
Upload New Banner<input autocomplete="off" type="file" accept="image/*" hidden name="banner" data-nonce="{{g.nonce}}" onchange_submit>
|
||||||
</label>
|
</label>
|
||||||
<button type="button" class="btn btn-danger sub-banner-delete-button mt-3" id="sub-banner-delete-all" data-nonce="{{g.nonce}}" data-onclick="areyousure(this)" data-areyousure="postToastReload(this, '/h/{{sub.name}}/settings/banners/delete_all');">Delete All Banners</button>
|
|
||||||
</form>
|
</form>
|
||||||
|
<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_all');">Delete All Banners</button>
|
||||||
<div class="text-small text-muted mt-3">
|
<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.
|
All image files are supported. Max file size is {% if v and v.patron %}16{% else %}8{% endif %} MB.
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue