2021-01-05 18:16:23 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en" class="{{ .cssClass }}">
|
|
|
|
<head>
|
2021-02-05 13:10:47 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="{{ .urlBase }}/css/bundle.css">
|
2021-01-05 18:16:23 +00:00
|
|
|
<script>
|
|
|
|
window.URLBase = "{{ .urlBase }}";
|
|
|
|
window.notificationsEnabled = {{ .notifications }};
|
|
|
|
window.emailEnabled = {{ .email_enabled }};
|
2021-05-07 15:06:47 +00:00
|
|
|
window.telegramEnabled = {{ .telegram_enabled }};
|
2021-05-21 20:35:25 +00:00
|
|
|
window.discordEnabled = {{ .discord_enabled }};
|
2021-01-05 18:16:23 +00:00
|
|
|
window.ombiEnabled = {{ .ombiEnabled }};
|
2021-01-15 13:37:09 +00:00
|
|
|
window.usernameEnabled = {{ .username }};
|
2021-01-12 23:15:12 +00:00
|
|
|
window.langFile = JSON.parse({{ .language }});
|
2021-02-28 15:41:06 +00:00
|
|
|
window.language = "{{ .langName }}";
|
2021-01-05 18:16:23 +00:00
|
|
|
</script>
|
|
|
|
{{ template "header.html" . }}
|
|
|
|
<title>Admin - jfa-go</title>
|
|
|
|
</head>
|
|
|
|
<body class="max-w-full overflow-x-hidden section">
|
|
|
|
<div id="modal-login" class="modal">
|
|
|
|
<form class="modal-content card" id="form-login" href="">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="heading">{{ .strings.login }}</span>
|
|
|
|
<input type="text" class="field input ~neutral !high mt-half mb-1" placeholder="{{ .strings.username }}" id="login-user">
|
|
|
|
<input type="password" class="field input ~neutral !high mb-1" placeholder="{{ .strings.password }}" id="login-password">
|
2021-01-05 18:16:23 +00:00
|
|
|
<label>
|
|
|
|
<input type="submit" class="unfocused">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="button ~urge !normal full-width center supra submit">{{ .strings.login }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
</label>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div id="modal-add-user" class="modal">
|
|
|
|
<form class="modal-content card" id="form-add-user" href="">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="heading">{{ .strings.newUser }} <span class="modal-close">×</span></span>
|
|
|
|
<input type="text" class="field input ~neutral !high mt-half mb-1" placeholder="{{ .strings.username }}" id="add-user-user">
|
|
|
|
<input type="email" class="field input ~neutral !high mt-half mb-1" placeholder="{{ .strings.emailAddress }}">
|
|
|
|
<input type="password" class="field input ~neutral !high mb-1" placeholder="{{ .strings.password }}" id="add-user-password">
|
2021-01-05 18:16:23 +00:00
|
|
|
<label>
|
|
|
|
<input type="submit" class="unfocused">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="button ~urge !normal full-width center supra submit">{{ .strings.create }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
</label>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div id="modal-about" class="modal">
|
|
|
|
<div class="modal-content content card">
|
2021-03-21 00:59:51 +00:00
|
|
|
<img src="{{ .urlBase }}/banner.svg" class="banner header" alt="jfa-go banner">
|
|
|
|
<span class="heading"><span class="modal-close">×</span></span>
|
2021-01-05 18:16:23 +00:00
|
|
|
<p><i class="icon ri-github-fill"></i><a href="https://github.com/hrfee/jfa-go">jfa-go</a></p>
|
2021-01-12 00:11:40 +00:00
|
|
|
<p>{{ .strings.version }} <span class="code monospace">{{ .version }}</span></p>
|
|
|
|
<p>{{ .strings.commitNoun }} <span class="code monospace">{{ .commit }}</span></p>
|
2021-05-02 14:16:28 +00:00
|
|
|
<div class="dropdown" tabindex="0">
|
|
|
|
<span class="button ~info dropdown-button">
|
|
|
|
<i class="ri-hand-heart-line mr-half"></i>
|
|
|
|
{{ .strings.donate }}
|
|
|
|
<span class="ml-1 chev"></span>
|
|
|
|
</span>
|
|
|
|
<div class="dropdown-display">
|
|
|
|
<div class="card ~neutral !low">
|
|
|
|
<a href="https://github.com/sponsors/hrfee" target="_blank" class="button input ~neutral field mb-half lang-link">GitHub</a>
|
|
|
|
<a href="https://ko-fi.com/hrfee" target="_blank" class="button input ~neutral field mb-half lang-link">Ko-fi</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-05 18:16:23 +00:00
|
|
|
<p><a href="https://github.com/hrfee/jfa-go/blob/main/LICENSE">Available under the MIT License.</a></p>
|
2021-03-01 00:32:09 +00:00
|
|
|
<pre class="monospace">{{ .license }}</pre>
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="modal-modify-user" class="modal">
|
|
|
|
<form class="modal-content card" id="form-modify-user" href="">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="heading"><span id="header-modify-user"></span> <span class="modal-close">×</span></span>
|
|
|
|
<p class="content">{{ .strings.modifySettingsDescription }}</p>
|
2021-01-05 18:16:23 +00:00
|
|
|
<div class="flex-row mb-1">
|
|
|
|
<label class="flex-row-group mr-1">
|
|
|
|
<input type="radio" name="modify-user-source" class="unfocused" id="radio-use-profile" checked>
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="button ~neutral !high supra full-width center">{{ .strings.profile }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
</label>
|
|
|
|
<label class="flex-row-group ml-1">
|
|
|
|
<input type="radio" name="modify-user-source" class="unfocused" id="radio-use-user">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="button ~neutral !normal supra full-width center">{{ .strings.user }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="select ~neutral !normal mb-1">
|
2021-01-12 00:11:40 +00:00
|
|
|
<select id="modify-user-profiles"></select>
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
|
|
|
<div class="select ~neutral !normal mb-1 unfocused">
|
2021-01-12 00:11:40 +00:00
|
|
|
<select id="modify-user-users"></select>
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
|
|
|
<label class="switch mb-1">
|
|
|
|
<input type="checkbox" id="modify-user-homescreen" checked>
|
2021-01-12 00:11:40 +00:00
|
|
|
<span>{{ .strings.applyHomescreenLayout }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<input type="submit" class="unfocused">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="button ~urge !normal full-width center supra submit">{{ .strings.apply }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
</label>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div id="modal-delete-user" class="modal">
|
|
|
|
<form class="modal-content card" id="form-delete-user" href="">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="heading"><span id="header-delete-user"></span> <span class="modal-close">×</span></span>
|
2021-01-05 18:16:23 +00:00
|
|
|
<div class="content mt-half">
|
|
|
|
<label class="switch mb-1">
|
|
|
|
<input type="checkbox" id="delete-user-notify" checked>
|
2021-01-12 00:11:40 +00:00
|
|
|
<span>{{ .strings.sendDeleteNotificationEmail }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
</label>
|
2021-01-12 00:11:40 +00:00
|
|
|
<textarea id="textarea-delete-user" class="textarea full-width ~neutral !normal mb-1" placeholder="{{ .strings.sendDeleteNotificationExample }}"></textarea>
|
2021-01-05 18:16:23 +00:00
|
|
|
<label>
|
|
|
|
<input type="submit" class="unfocused">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="button ~critical !normal full-width center supra submit">{{ .strings.delete }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2021-02-28 17:52:24 +00:00
|
|
|
<div id="modal-extend-expiry" class="modal">
|
|
|
|
<form class="modal-content card" id="form-extend-expiry" href="">
|
|
|
|
<span class="heading"><span id="header-extend-expiry"></span> <span class="modal-close">×</span></span>
|
|
|
|
<div class="content mt-half">
|
2021-04-08 19:43:01 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<label class="label supra" for="extend-expiry-months">{{ .strings.inviteMonths }}</label>
|
|
|
|
<div class="select ~neutral !normal mb-1 mt-half">
|
|
|
|
<select id="extend-expiry-months">
|
|
|
|
<option>0</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<label class="label supra" for="extend-expiry-days">{{ .strings.inviteDays }}</label>
|
|
|
|
<div class="select ~neutral !normal mb-1 mt-half">
|
|
|
|
<select id="extend-expiry-days">
|
|
|
|
<option>0</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-02-28 17:52:24 +00:00
|
|
|
</div>
|
2021-04-08 19:43:01 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<label class="label supra" for="extend-expiry-hours">{{ .strings.inviteHours }}</label>
|
|
|
|
<div class="select ~neutral !normal mb-1 mt-half">
|
|
|
|
<select id="extend-expiry-hours">
|
|
|
|
<option>0</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<label class="label supra" for="extend-expiry-minutes">{{ .strings.inviteMinutes }}</label>
|
|
|
|
<div class="select ~neutral !normal mb-1 mt-half">
|
|
|
|
<select id="extend-expiry-minutes">
|
|
|
|
<option>0</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-02-28 17:52:24 +00:00
|
|
|
</div>
|
|
|
|
<label>
|
|
|
|
<input type="submit" class="unfocused">
|
|
|
|
<span class="button ~critical !normal full-width center supra submit">{{ .strings.submit }}</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2021-02-18 14:58:53 +00:00
|
|
|
<div id="modal-announce" class="modal">
|
2021-05-03 17:35:27 +00:00
|
|
|
<form class="modal-content wide card" id="form-announce" href="">
|
2021-02-18 14:58:53 +00:00
|
|
|
<span class="heading"><span id="header-announce"></span> <span class="modal-close">×</span></span>
|
2021-05-03 17:35:27 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col flex-col content mt-half">
|
|
|
|
<label class="label supra" for="announce-subject"> {{ .strings.subject }}</label>
|
|
|
|
<input type="text" id="announce-subject" class="input ~neutral !normal mb-1 mt-half">
|
|
|
|
<label class="label supra" for="textarea-announce">{{ .strings.message }}</label>
|
|
|
|
<textarea id="textarea-announce" class="textarea full-width ~neutral !normal mt-half monospace"></textarea>
|
|
|
|
<p class="support mt-half mb-1">{{ .strings.markdownSupported }}</p>
|
|
|
|
<label>
|
|
|
|
<input type="submit" class="unfocused">
|
|
|
|
<span class="button ~urge !normal full-width center supra submit">{{ .strings.submit }}</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="col card ~neutral !low">
|
|
|
|
<span class="subheading supra">{{ .strings.preview }}</span>
|
|
|
|
<div class="mt-half" id="announce-preview"></div>
|
|
|
|
</div>
|
2021-02-18 14:58:53 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2021-02-21 15:51:42 +00:00
|
|
|
<div id="modal-customize" class="modal">
|
|
|
|
<div class="modal-content card">
|
2021-05-07 20:53:29 +00:00
|
|
|
<span class="heading">{{ .strings.customizeMessages }} <span class="modal-close">×</span></span>
|
|
|
|
<p class="content">{{ .strings.customizeMessagesDescription }}</p>
|
2021-02-21 15:51:42 +00:00
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{{ .strings.name }}</th>
|
|
|
|
<th>{{ .strings.reset }}</th>
|
|
|
|
<th>{{ .strings.edit }}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody id="customize-list"></tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-02-20 22:49:59 +00:00
|
|
|
<div id="modal-editor" class="modal">
|
|
|
|
<form class="modal-content wide card" id="form-editor" href="">
|
|
|
|
<span class="heading"><span id="header-editor"></span> <span class="modal-close">×</span></span>
|
|
|
|
<div class="row">
|
2021-02-21 15:51:42 +00:00
|
|
|
<div class="col flex-col content mt-half">
|
2021-02-28 15:41:06 +00:00
|
|
|
<span class="label supra" for="editor-variables" id="label-editor-variables">{{ .strings.variables }}</span>
|
2021-02-20 22:49:59 +00:00
|
|
|
<div id="editor-variables"></div>
|
2021-04-15 14:34:17 +00:00
|
|
|
<span class="label supra" for="editor-conditionals" id="label-editor-conditionals">{{ .strings.conditionals }}</span>
|
|
|
|
<div id="editor-conditionals"></div>
|
2021-02-20 22:49:59 +00:00
|
|
|
<label class="label supra" for="textarea-editor">{{ .strings.message }}</label>
|
2021-02-21 15:51:42 +00:00
|
|
|
<textarea id="textarea-editor" class="textarea full-width flex-auto ~neutral !normal mt-half monospace"></textarea>
|
2021-02-20 22:49:59 +00:00
|
|
|
<p class="support mt-half mb-1">{{ .strings.markdownSupported }}</p>
|
|
|
|
<div class="flex-row">
|
|
|
|
<label class="full-width ml-half">
|
|
|
|
<input type="submit" class="unfocused">
|
|
|
|
<span class="button ~urge !normal full-width center supra submit">{{ .strings.submit }}</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col card ~neutral !low">
|
|
|
|
<span class="subheading supra">{{ .strings.preview }}</span>
|
|
|
|
<div class="mt-half" id="editor-preview"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2021-01-05 18:16:23 +00:00
|
|
|
<div id="modal-restart" class="modal">
|
|
|
|
<div class="modal-content card ~critical !low">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="heading">{{ .strings.settingsRestartRequired }} <span class="modal-close">×</span></span>
|
|
|
|
<p class="content pb-1">{{ .strings.settingsRestartRequiredDescription }}</p>
|
2021-01-05 18:16:23 +00:00
|
|
|
<div class="fr">
|
2021-01-15 13:30:29 +00:00
|
|
|
<span class="button ~info !normal mb-half" id="settings-apply-no-restart">{{ .strings.settingsApplyRestartLater }}</span>
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="button ~critical !normal" id="settings-apply-restart">{{ .strings.settingsApplyRestartNow }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="modal-refresh" class="modal">
|
|
|
|
<div class="modal-content card ~neutral !normal">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="heading">{{ .strings.settingsApplied }}</span>
|
|
|
|
<p class="content">{{ .strings.settingsRefreshPage }}</p>
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="modal-ombi-defaults" class="modal">
|
|
|
|
<form class="modal-content card" id="form-ombi-defaults" href="">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="heading">{{ .strings.ombiUserDefaults }} <span class="modal-close">×</span></span>
|
|
|
|
<p class="content">{{ .strings.ombiUserDefaultsDescription }}</p>
|
2021-01-05 18:16:23 +00:00
|
|
|
<div class="select ~neutral !normal mb-1">
|
2021-01-12 00:11:40 +00:00
|
|
|
<select></select>
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
|
|
|
<label>
|
|
|
|
<input type="submit" class="unfocused">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="button ~urge !normal full-width center supra submit">{{ .strings.submit }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
</label>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div id="modal-user-profiles" class="modal">
|
|
|
|
<div class="modal-content wide card">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="heading">{{ .strings.userProfiles }} <span class="modal-close">×</span></span>
|
|
|
|
<p class="support lg">{{ .strings.userProfilesDescription }}</p>
|
2021-01-05 18:16:23 +00:00
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2021-01-12 00:11:40 +00:00
|
|
|
<th>{{ .strings.name }}</th>
|
|
|
|
<th>{{ .strings.userProfilesIsDefault }}</th>
|
|
|
|
<th>{{ .strings.from }}</th>
|
|
|
|
<th>{{ .strings.userProfilesLibraries }}</th>
|
|
|
|
<th><span class="button ~neutral !high" id="button-profile-create">{{ .strings.create }}</span></th>
|
2021-01-05 18:16:23 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2021-01-12 00:11:40 +00:00
|
|
|
<tbody id="table-profiles"></tbody>
|
2021-01-05 18:16:23 +00:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="modal-add-profile" class="modal">
|
|
|
|
<form class="modal-content card" id="form-add-profile" href="">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="heading">{{ .strings.addProfile }} <span class="modal-close">×</span></span>
|
|
|
|
<p class="content">{{ .strings.addProfileDescription }}</p>
|
2021-01-05 18:16:23 +00:00
|
|
|
<label>
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="supra">{{ .strings.addProfileNameOf }} </span>
|
|
|
|
<input type="text" class="field input ~neutral !high mt-half mb-1" placeholder="{{ .strings.name }}" id="add-profile-name">
|
2021-01-05 18:16:23 +00:00
|
|
|
<label>
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="supra">{{ .strings.user }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
<div class="select ~neutral !normal mt-half mb-1">
|
2021-01-12 00:11:40 +00:00
|
|
|
<select id="add-profile-user"></select>
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
|
|
|
</label>
|
|
|
|
<label class="switch mb-1">
|
|
|
|
<input type="checkbox" id="add-profile-homescreen" checked>
|
2021-01-12 00:11:40 +00:00
|
|
|
<span>{{ .strings.addProfileStoreHomescreenLayout }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<input type="submit" class="unfocused">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="button ~urge !normal full-width center supra submit">{{ .strings.create }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
</label>
|
|
|
|
</form>
|
|
|
|
</div>
|
2021-03-07 15:23:44 +00:00
|
|
|
<div id="modal-update" class="modal">
|
|
|
|
<div class="modal-content wide card">
|
|
|
|
<span class="heading">{{ .strings.updates }} <span class="modal-close">×</span></span>
|
|
|
|
<p class="content">
|
|
|
|
<h2>
|
|
|
|
<a id="update-version"></a> (<span class="monospace" id="update-commit"></span>)
|
|
|
|
</h2>
|
|
|
|
<p class="content" id="update-description"></p>
|
|
|
|
<p class="support" id="update-date"></p>
|
|
|
|
<div class="content markdown-box" id="update-changelog"></div>
|
|
|
|
</p>
|
|
|
|
<span class="button ~info !normal full-width center" id="update-download">{{ .strings.download }}</span>
|
|
|
|
<span class="button ~urge !normal full-width center" id="update-update">{{ .strings.update }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-05-07 17:20:35 +00:00
|
|
|
{{ if .telegram_enabled }}
|
|
|
|
<div id="modal-telegram" class="modal">
|
|
|
|
<div class="modal-content card">
|
|
|
|
<span class="heading mb-1">{{ .strings.linkTelegram }}</span>
|
|
|
|
<p class="content mb-1">{{ .strings.sendPIN }}</p>
|
|
|
|
<h1 class="ac" id="telegram-pin"></h1>
|
|
|
|
<a class="subheading link-center" id="telegram-link" target="_blank">
|
|
|
|
<span class="shield ~info mr-1">
|
|
|
|
<span class="icon">
|
|
|
|
<i class="ri-telegram-line"></i>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
@<span id="telegram-username">
|
|
|
|
</a>
|
|
|
|
<span class="button ~info !normal full-width center mt-1" id="telegram-waiting">{{ .strings.success }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-05-22 20:42:15 +00:00
|
|
|
{{ if .discord_enabled }}
|
|
|
|
<div id="modal-discord" class="modal">
|
|
|
|
<div class="modal-content card">
|
2021-05-23 13:22:18 +00:00
|
|
|
<span class="heading mb-1"><span id="discord-header"></span><span class="modal-close">×</span></span>
|
|
|
|
<p class="content mb-1" id="discord-description"></p>
|
2021-05-22 20:42:15 +00:00
|
|
|
<div class="row">
|
|
|
|
<input type="search" class="col sm field ~neutral !normal input" id="discord-search" placeholder="user#1234">
|
|
|
|
</div>
|
|
|
|
<table class="table"><tbody id="discord-list"></tbody></table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-01-05 18:16:23 +00:00
|
|
|
<div id="notification-box"></div>
|
2021-01-12 23:43:44 +00:00
|
|
|
<span class="dropdown" tabindex="0" id="lang-dropdown">
|
|
|
|
<span class="button ~urge dropdown-button">
|
|
|
|
<i class="ri-global-line"></i>
|
|
|
|
<span class="ml-1 chev"></span>
|
|
|
|
</span>
|
|
|
|
<div class="dropdown-display">
|
2021-04-07 14:09:44 +00:00
|
|
|
<div class="card ~neutral !low">
|
|
|
|
<label class="switch pb-1">
|
|
|
|
<input type="radio" name="lang-time" id="lang-12h">
|
|
|
|
<span>{{ .strings.time12h }}</span>
|
|
|
|
</label>
|
|
|
|
<label class="switch pb-1">
|
|
|
|
<input type="radio" name="lang-time" id="lang-24h">
|
|
|
|
<span>{{ .strings.time24h }}</span>
|
|
|
|
</label>
|
|
|
|
<div id="lang-list"></div>
|
2021-01-12 23:43:44 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
<div class="page-container">
|
|
|
|
<div class="mb-1">
|
|
|
|
<header class="flex flex-wrap items-center justify-between">
|
|
|
|
<div class="text-neutral-700">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span id="button-tab-invites" class="tab-button portal">{{ .strings.invites }}</span>
|
|
|
|
<span id="button-tab-accounts" class="tab-button portal">{{ .strings.accounts }}</span>
|
|
|
|
<span id="button-tab-settings" class="tab-button portal">{{ .strings.settings }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
</div>
|
|
|
|
<div class="mb-1">
|
|
|
|
<div class="text-neutral-700">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="button ~critical !normal mb-1 unfocused" id="logout-button">{{ .strings.logout }}</span>
|
|
|
|
<span id="button-theme" class="button ~neutral !normal mb-1">{{ .strings.theme }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="tab-invites">
|
|
|
|
<div class="card ~neutral !low invites mb-1">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="heading">{{ .strings.invites }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
<div id="invites"></div>
|
|
|
|
</div>
|
|
|
|
<div class="card ~neutral !low">
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="heading">{{ .strings.create }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
<div class="row" id="create-inv">
|
|
|
|
<div class="card ~neutral !normal col">
|
2021-03-20 22:16:24 +00:00
|
|
|
<div class="row mb-1">
|
|
|
|
<label class="col mr-1">
|
2021-02-28 00:44:28 +00:00
|
|
|
<input type="radio" name="duration" class="unfocused" id="radio-inv-duration" checked>
|
|
|
|
<span class="button ~neutral !high supra full-width center">{{ .strings.inviteDuration }}</span>
|
|
|
|
</label>
|
2021-03-20 22:16:24 +00:00
|
|
|
<label class="col ml-1">
|
2021-02-28 15:41:06 +00:00
|
|
|
<input type="radio" name="duration" class="unfocused" id="radio-user-expiry">
|
|
|
|
<span class="button ~neutral !normal supra full-width center">{{ .strings.userExpiry }}</span>
|
2021-02-28 00:44:28 +00:00
|
|
|
</label>
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
2021-02-28 00:44:28 +00:00
|
|
|
<div id="inv-duration">
|
2021-04-08 19:43:01 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<label class="label supra" for="create-months">{{ .strings.inviteMonths }}</label>
|
|
|
|
<div class="select ~neutral !normal mb-1 mt-half">
|
|
|
|
<select id="create-months">
|
|
|
|
<option>0</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<label class="label supra" for="create-days">{{ .strings.inviteDays }}</label>
|
|
|
|
<div class="select ~neutral !normal mb-1 mt-half">
|
|
|
|
<select id="create-days">
|
|
|
|
<option>0</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-02-28 00:44:28 +00:00
|
|
|
</div>
|
2021-04-08 19:43:01 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<label class="label supra" for="create-hours">{{ .strings.inviteHours }}</label>
|
|
|
|
<div class="select ~neutral !normal mb-1 mt-half">
|
|
|
|
<select id="create-hours">
|
|
|
|
<option>0</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<label class="label supra" for="create-minutes">{{ .strings.inviteMinutes }}</label>
|
|
|
|
<div class="select ~neutral !normal mb-1 mt-half">
|
|
|
|
<select id="create-minutes">
|
|
|
|
<option>0</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-02-28 00:44:28 +00:00
|
|
|
</div>
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
2021-02-28 15:41:06 +00:00
|
|
|
<div id="user-expiry" class="unfocused">
|
|
|
|
<p class="support">{{ .strings.userExpiryDescription }}</p>
|
2021-02-28 00:44:28 +00:00
|
|
|
<div class="mb-half">
|
2021-02-28 15:41:06 +00:00
|
|
|
<label for="create-user-expiry-enabled" class="button ~neutral !normal">
|
|
|
|
<input type="checkbox" id="create-user-expiry-enabled" aria-label="User duration enabled">
|
2021-02-28 00:44:28 +00:00
|
|
|
<span class="ml-half">{{ .strings.enabled }} </span>
|
|
|
|
</label>
|
|
|
|
</div>
|
2021-04-08 19:43:01 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<label class="label supra" for="user-months">{{ .strings.inviteMonths }}</label>
|
|
|
|
<div class="select ~neutral !normal mb-1 mt-half">
|
|
|
|
<select id="user-months">
|
|
|
|
<option>0</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<label class="label supra" for="user-days">{{ .strings.inviteDays }}</label>
|
|
|
|
<div class="select ~neutral !normal mb-1 mt-half">
|
|
|
|
<select id="user-days">
|
|
|
|
<option>0</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-02-28 00:44:28 +00:00
|
|
|
</div>
|
2021-04-08 19:43:01 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<label class="label supra" for="user-hours">{{ .strings.inviteHours }}</label>
|
|
|
|
<div class="select ~neutral !normal mb-1 mt-half">
|
|
|
|
<select id="user-hours">
|
|
|
|
<option>0</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<label class="label supra" for="user-minutes">{{ .strings.inviteMinutes }}</label>
|
|
|
|
<div class="select ~neutral !normal mb-1 mt-half">
|
|
|
|
<select id="user-minutes">
|
|
|
|
<option>0</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-02-28 00:44:28 +00:00
|
|
|
</div>
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
2021-04-08 19:43:01 +00:00
|
|
|
<div class="col">
|
|
|
|
<label class="label supra" for="create-label"> {{ .strings.label }}</label>
|
|
|
|
<input type="text" id="create-label" class="input ~neutral !normal mb-1 mt-half">
|
|
|
|
</div>
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
|
|
|
<div class="card ~neutral !normal col">
|
2021-01-12 00:11:40 +00:00
|
|
|
<label class="label supra" for="create-uses">{{ .strings.inviteNumberOfUses }}</label>
|
2021-01-05 18:16:23 +00:00
|
|
|
<div class="flex-expand mb-1 mt-half">
|
|
|
|
<input type="number" min="0" id="create-uses" class="input ~neutral !normal mr-1" value=1>
|
2021-01-24 15:55:45 +00:00
|
|
|
<label for="create-inf-uses" class="button ~neutral !normal" title="Set uses to infinite">
|
2021-01-05 18:16:23 +00:00
|
|
|
<span>∞</span>
|
|
|
|
<input type="checkbox" class="unfocused" id="create-inf-uses" aria-label="Set uses to infinite">
|
|
|
|
</label>
|
|
|
|
</div>
|
2021-01-12 00:11:40 +00:00
|
|
|
<p class="support unfocused" id="create-inf-uses-warning"><span class="badge ~critical">{{ .strings.warning }}</span> {{ .strings.inviteInfiniteUsesWarning }}</p>
|
|
|
|
<label class="label supra">{{ .strings.profile }}</label>
|
2021-01-05 18:16:23 +00:00
|
|
|
<div class="select ~neutral !normal mb-1 mt-half">
|
|
|
|
<select id="create-profile">
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div id="create-send-to-container">
|
2021-01-12 00:11:40 +00:00
|
|
|
<label class="label supra">{{ .strings.inviteSendToEmail }}</label>
|
2021-01-05 18:16:23 +00:00
|
|
|
<div class="flex-expand mb-1 mt-half">
|
2021-05-23 15:16:31 +00:00
|
|
|
{{ if .discord_enabled }}
|
|
|
|
<input type="text" id="create-send-to" class="input ~neutral !normal mr-1" placeholder="example@example.com | user#1234">
|
|
|
|
<span id="create-send-to-search" class="button ~neutral !normal mr-1">
|
|
|
|
<i class="icon ri-search-2-line" title="{{ .strings.search }}"></i>
|
|
|
|
</span>
|
|
|
|
{{ else }}
|
2021-01-05 18:16:23 +00:00
|
|
|
<input type="email" id="create-send-to" class="input ~neutral !normal mr-1" placeholder="example@example.com">
|
2021-05-23 15:16:31 +00:00
|
|
|
{{ end }}
|
2021-01-05 18:16:23 +00:00
|
|
|
<label for="create-send-to-enabled" class="button ~neutral !normal">
|
|
|
|
<input type="checkbox" id="create-send-to-enabled" aria-label="Send to address enabled">
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-12 00:11:40 +00:00
|
|
|
<span class="button ~urge !normal supra full-width center lg" id="create-submit">{{ .strings.create }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="tab-accounts" class="unfocused">
|
|
|
|
<div class="card ~neutral !low accounts mb-1">
|
2021-03-20 19:23:54 +00:00
|
|
|
<div class="flex-expand row">
|
|
|
|
<div class="row">
|
2021-03-20 22:16:24 +00:00
|
|
|
<span class="heading mr-1 col sm">{{ .strings.accounts }}</span>
|
|
|
|
<input type="search" class="col sm field ~neutral !normal input search ml-1 mr-1" id="accounts-search" placeholder="{{ .strings.search }}">
|
2021-03-13 14:26:29 +00:00
|
|
|
</div>
|
2021-03-20 19:23:54 +00:00
|
|
|
<div class="row">
|
2021-03-20 22:16:24 +00:00
|
|
|
<span class="col sm button ~neutral !normal center mb-half" id="accounts-add-user">{{ .quantityStrings.addUser.Singular }}</span>
|
|
|
|
<span class="col sm button ~info !normal center mb-half" id="accounts-announce">{{ .strings.announce }}</span>
|
|
|
|
<span class="col sm button ~urge !normal center mb-half" id="accounts-modify-user">{{ .strings.modifySettings }}</span>
|
|
|
|
<span class="col sm button ~warning !normal center mb-half" id="accounts-extend-expiry">{{ .strings.extendExpiry }}</span>
|
2021-04-12 20:28:36 +00:00
|
|
|
<span class="col sm button ~positive !normal center mb-half" id="accounts-disable-enable">{{ .strings.disable }}</span>
|
2021-03-20 22:16:24 +00:00
|
|
|
<span class="col sm button ~critical !normal center mb-half" id="accounts-delete-user">{{ .quantityStrings.deleteUser.Singular }}</span>
|
2021-03-13 14:26:29 +00:00
|
|
|
</div>
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
|
|
|
<div class="card ~neutral !normal accounts-header table-responsive mt-half">
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th><input type="checkbox" value="" id="accounts-select-all"></th>
|
2021-01-12 00:11:40 +00:00
|
|
|
<th>{{ .strings.username }}</th>
|
|
|
|
<th>{{ .strings.emailAddress }}</th>
|
2021-05-07 16:01:22 +00:00
|
|
|
{{ if .telegram_enabled }}
|
|
|
|
<th>Telegram</th>
|
|
|
|
{{ end }}
|
2021-05-21 20:35:25 +00:00
|
|
|
{{ if .discord_enabled }}
|
|
|
|
<th>Discord</th>
|
|
|
|
{{ end }}
|
2021-02-28 17:52:24 +00:00
|
|
|
<th>{{ .strings.expiry }}</th>
|
2021-01-12 00:11:40 +00:00
|
|
|
<th>{{ .strings.lastActiveTime }}</th>
|
2021-01-05 18:16:23 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody id="accounts-list"></tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="tab-settings" class="unfocused">
|
|
|
|
<div class="card ~neutral !low settings overflow">
|
2021-03-15 22:51:17 +00:00
|
|
|
<div class="flex-expand">
|
|
|
|
<div class="flex-row">
|
|
|
|
<span class="heading">{{ .strings.settings }}</span>
|
|
|
|
<label for="settings-advanced-enabled" class="button ~neutral !normal ml-1">
|
|
|
|
<input type="checkbox" id="settings-advanced-enabled" aria-label="Advanced settings enabled">
|
|
|
|
<span class="ml-half">{{ .strings.advancedSettings }} </span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<span class="button ~neutral !normal" id="settings-restart">{{ .strings.settingsRestart }}</span>
|
|
|
|
<span class="button ~urge !normal unfocused" id="settings-save">{{ .strings.settingsSave }}</span>
|
|
|
|
</div>
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="card ~neutral !normal col" id="settings-sidebar">
|
2021-01-12 00:11:40 +00:00
|
|
|
<aside class="aside sm ~info mb-half" id="settings-message">Note: <span class="badge ~critical">*</span> indicates a required field, <span class="badge ~info">R</span> indicates changes require a restart.</aside>
|
|
|
|
<span class="button ~neutral !low settings-section-button mb-half" id="setting-about"><span class="flex">{{ .strings.aboutProgram }} <i class="ri-information-line ml-half"></i></span></span>
|
|
|
|
<span class="button ~neutral !low settings-section-button mb-half" id="setting-profiles"><span class="flex">{{ .strings.userProfiles }} <i class="ri-user-line ml-half"></i></span></span>
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
|
|
|
<div class="card ~neutral !normal col overflow" id="settings-panel"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-02-05 13:31:56 +00:00
|
|
|
<script src="{{ .urlBase }}/js/admin.js" type="module"></script>
|
2021-01-05 18:16:23 +00:00
|
|
|
</body>
|
|
|
|
</html>
|