Skip to content

Commit

Permalink
Move use_svg_brand inside image section, include in main form
Browse files Browse the repository at this point in the history
  • Loading branch information
zediious committed Jun 11, 2024
1 parent ed0554f commit c4b99a9
Showing 1 changed file with 8 additions and 25 deletions.
33 changes: 8 additions & 25 deletions raptorWeb/templates/panel/panel_settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<form class="form"
enctype="multipart/form-data"
hx-post="{% url 'panel:settings'%}"
hx-include="#imageConfigInput"
hx-swap='none'
>
<div class="m-3">
Expand Down Expand Up @@ -161,31 +162,6 @@
</div>
</div>
</div>
<div class="m-3">
<div class="card bg-dark p-2">
<div class="card-body">
<div class="m-3 mt-1 p-1">
<div class="text-white">
<header class="fs-5">Image Configuration</header>
</div>
</div>
<div class="d-flex justify-content-center text-white">
<div class="w-50">
<div class="mb-3">
<div class="form-check form-switch">
<input type="checkbox" type="submit" name="use_svg_brand"
{%if site_information.use_svg_brand%}checked=""{%endif%}
class="form-check-input is-valid" id="id_use_svg_brand" onclick='switchBrandField()'>
<label class="form-check-label" for="id_use_svg_brand">Use SVG Branding Image</label>
<div class="form-text text-white">If this is checked, the SVG Branding Image will be used instead of the uploaded raster Branding Image.</div>
</div>
</div>
{% bootstrap_button button_type="submit" content="Update" %}
</div>
</div>
</div>
</div>
</div>
</form>
<div class="m-3">
<div class="card bg-dark p-2">
Expand All @@ -197,6 +173,13 @@
</div>
<div class="d-flex justify-content-center text-white">
<div class="w-50">
<div id='imageConfigInput' class="form-check form-switch mb-3 mt-3">
<input type="checkbox" type="submit" name="use_svg_brand"
{%if site_information.use_svg_brand%}checked=""{%endif%}
class="form-check-input is-valid" id="id_use_svg_brand" onclick='switchBrandField()'>
<label class="form-check-label" for="id_use_svg_brand">Use SVG Branding Image</label>
<div class="form-text text-white">If this is checked, the SVG Branding Image will be used instead of the uploaded raster Branding Image.</div>
</div>
<form class="form"
enctype="multipart/form-data"
hx-post="{% url 'panel:settings_files_update'%}"
Expand Down

0 comments on commit c4b99a9

Please sign in to comment.