mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
account get current key value and disabled scheduler
This commit is contained in:
parent
5b9554253b
commit
e22b901e6b
2 changed files with 17 additions and 2 deletions
18
src/ui/templates/account.html
vendored
18
src/ui/templates/account.html
vendored
|
|
@ -1,6 +1,20 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
{% set pro_setting = {} %}
|
||||
{% for plugin in plugins %}
|
||||
{% if plugin.get('name')|lower == 'pro' %}
|
||||
{% if pro_setting.update({'method' : plugin.get('method', 'ui')}) %}{% endif %}
|
||||
|
||||
{% for setting, value in plugin.get('settings').items() %}
|
||||
{% if setting == "PRO_LICENSE_KEY" %}
|
||||
{% if pro_setting.update({'value' : value.get('value', '')}) %}{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% set attribute_name = "account" %}
|
||||
|
||||
<div data-service-content
|
||||
class="md:max-w-[700px] min-h-[200px] first-letter:w-full overflow-hidden overflow-y-auto overflow-x-auto col-span-12 p-4 relative break-words bg-white shadow-xl dark:bg-slate-850 dark:shadow-dark-xl rounded-2xl bg-clip-border">
|
||||
<h5 class="my-2 font-bold dark:text-white/90 mx-2">SETTINGS</h5>
|
||||
|
|
@ -141,13 +155,13 @@
|
|||
class="flex flex-col relative col-span-12 px-4 my-2 md:px-6 md:my-3 lg:px-6 lg:my-3 max-w-[400px] w-full">
|
||||
<h5 class="input-title">License key</h5>
|
||||
<label class="sr-only" for="license">License key</label>
|
||||
<input {% if is_readonly %}disabled{% endif %}
|
||||
<input {% if is_readonly or pro_setting.get('method', 'ui')|lower == 'scheduler' %}disabled{% endif %}
|
||||
type="password"
|
||||
id="license"
|
||||
name="license"
|
||||
class="col-span-12 regular-input"
|
||||
placeholder="enter new license key"
|
||||
value=""
|
||||
value="{{pro_setting.get('value', '')}}"
|
||||
pattern="^.*$"
|
||||
required />
|
||||
<div data-setting-password-container
|
||||
|
|
|
|||
1
src/ui/templates/plugins.html
vendored
1
src/ui/templates/plugins.html
vendored
|
|
@ -1,5 +1,6 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
|
||||
{% set attribute_name = "plugins" %}
|
||||
{%
|
||||
include "plugins_modal.html" %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue