mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
update and add settings_simple template
This commit is contained in:
parent
19a7f1c62d
commit
92cc4b0d6a
5 changed files with 42 additions and 8 deletions
2
src/ui/templates/services_modal.html
vendored
2
src/ui/templates/services_modal.html
vendored
|
|
@ -43,7 +43,7 @@
|
|||
</button>
|
||||
</div>
|
||||
|
||||
{% include "services_modal_advanced.html" %}
|
||||
{% include "services_modal_settings_advanced.html" %}
|
||||
{% include "services_modal_delete.html" %}
|
||||
|
||||
</div>
|
||||
|
|
|
|||
4
src/ui/templates/services_modal_delete.html
vendored
4
src/ui/templates/services_modal_delete.html
vendored
|
|
@ -1,5 +1,5 @@
|
|||
<!-- delete form-->
|
||||
<form data-services-modal-form-delete
|
||||
<!-- delete form-->
|
||||
<form data-services-modal-form-delete
|
||||
class="w-full h-full flex flex-col justify-between"
|
||||
id="form-delete-server_name"
|
||||
method="POST">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<div data-advanced data-services-tabs-select-header class="flex flex-col">
|
||||
<div class="flex flex-col md:flex-row justify-start w-full items-start md:items-end gap-y-3 gap-x-4">
|
||||
<div class="w-full sm:min-w-[250px] max-w-[300px]">{% include "settings_tabs_select.html" %}</div>
|
||||
|
|
@ -113,4 +112,4 @@
|
|||
<p data-services-modal-error-msg
|
||||
class="hidden text-red-500 font-bold dark:opacity-80 mb-0 text-center"></p>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
35
src/ui/templates/services_modal_settings_simple.html
vendored
Normal file
35
src/ui/templates/services_modal_settings_simple.html
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
|
||||
<div data-simple class="flex flex-col">
|
||||
<div class="flex flex-col w-full items-end gap-y-3 gap-x-4">
|
||||
<h2 data-simple-step></h2>
|
||||
<p data-simple-description></p>
|
||||
</div>
|
||||
<div class="w-full min-w-[300px] my-1 sm:my-0">
|
||||
<hr class="separator" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- new and edit form -->
|
||||
<form data-simple data-services-simple-modal-form
|
||||
class="w-full h-[90vh] overflow-auto flex flex-col justify-between"
|
||||
id="form-simple-new"
|
||||
method="POST">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
||||
<input type="hidden" id="simple_operation" value="new" name="simple_operation" />
|
||||
<input type="hidden" value="" name="simple_OLD_SERVER_NAME" />
|
||||
<input type="hidden" value="no" name="simple_is_draft" />
|
||||
<input type="hidden" value="yes" name="simple_is_simple_mode" />
|
||||
|
||||
<!-- action button -->
|
||||
<div class="w-full flex-col items-center justify-center flex mt-10">
|
||||
<div class="flex justify-center">
|
||||
<button data-services-modal-close
|
||||
type="button"
|
||||
class="dark:bg-slate-800 close-btn mb-4 mr-3 text-base">Close</button>
|
||||
<button data-services-modal-submit type="submit" class="mb-4 valid-btn">Save</button>
|
||||
</div>
|
||||
<!-- end action button-->
|
||||
<p data-simple-services-modal-error-msg
|
||||
class="hidden text-red-500 font-bold dark:opacity-80 mb-0 text-center"></p>
|
||||
</div>
|
||||
</form>
|
||||
6
src/ui/templates/settings_plugins.html
vendored
6
src/ui/templates/settings_plugins.html
vendored
|
|
@ -1,7 +1,7 @@
|
|||
{% set current_endpoint = current_endpoint or url_for(request.endpoint)[1:].split("/")[-1].strip().replace('_', '-') %}
|
||||
<!-- plugin item -->
|
||||
{% for plugin in plugins %}
|
||||
<div data-plugin-item="{{ plugin['id'] }}"
|
||||
<div data-advanced data-plugin-item="{{ plugin['id'] }}"
|
||||
id="{{ plugin['id'] }}"
|
||||
class="{% if loop.index != 1 %}hidden{% endif %} w-full px-1">
|
||||
<!-- title and desc -->
|
||||
|
|
@ -485,5 +485,5 @@
|
|||
{% endfor %}
|
||||
<!-- end multiple settings -->
|
||||
</div>
|
||||
{% endfor %}
|
||||
<!-- end plugin item -->
|
||||
{% endfor %}
|
||||
<!-- end plugin item -->
|
||||
|
|
|
|||
Loading…
Reference in a new issue