2019-01-19 22:12:52 +01:00
|
|
|
<main class="container">
|
|
|
|
<div id="users-block" class="my-3 p-3 bg-white rounded shadow">
|
2020-02-22 19:01:58 +01:00
|
|
|
<h6 class="border-bottom pb-2 mb-0">Registered Users</h6>
|
2019-01-19 21:36:34 +01:00
|
|
|
|
2019-01-19 22:12:52 +01:00
|
|
|
<div id="users-list">
|
|
|
|
{{#each users}}
|
|
|
|
<div class="media pt-3">
|
|
|
|
<img class="mr-2 rounded identicon" data-src="{{Email}}">
|
|
|
|
<div class="media-body pb-3 mb-0 small border-bottom">
|
2019-01-20 17:43:56 +01:00
|
|
|
<div class="row justify-content-between">
|
|
|
|
<div class="col">
|
|
|
|
<strong>{{Name}}</strong>
|
2019-01-25 18:50:57 +01:00
|
|
|
{{#if TwoFactorEnabled}}
|
|
|
|
<span class="badge badge-success ml-2">2FA</span>
|
|
|
|
{{/if}}
|
2019-04-13 00:01:52 +02:00
|
|
|
{{#case _Status 1}}
|
|
|
|
<span class="badge badge-warning ml-2">Invited</span>
|
|
|
|
{{/case}}
|
2019-01-20 17:43:56 +01:00
|
|
|
<span class="d-block">{{Email}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
2020-02-22 17:49:33 +01:00
|
|
|
<strong> Organizations: </strong>
|
2019-01-20 17:43:56 +01:00
|
|
|
<span class="d-block">
|
|
|
|
{{#each Organizations}}
|
|
|
|
<span class="badge badge-primary" data-orgtype="{{Type}}">{{Name}}</span>
|
|
|
|
{{/each}}
|
|
|
|
</span>
|
|
|
|
</div>
|
2019-08-21 17:13:06 +02:00
|
|
|
<div style="flex: 0 0 300px; font-size: 90%; text-align: right; padding-right: 15px">
|
|
|
|
{{#if TwoFactorEnabled}}
|
|
|
|
<a class="mr-2" href="#" onclick='remove2fa({{jsesc Id}})'>Remove all 2FA</a>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<a class="mr-2" href="#" onclick='deauthUser({{jsesc Id}})'>Deauthorize sessions</a>
|
|
|
|
<a class="mr-2" href="#" onclick='deleteUser({{jsesc Id}}, {{jsesc Email}})'>Delete User</a>
|
2019-01-20 17:43:56 +01:00
|
|
|
</div>
|
2019-01-19 21:36:34 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-01-19 22:12:52 +01:00
|
|
|
{{/each}}
|
2019-01-19 21:36:34 +01:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2019-03-07 21:08:33 +01:00
|
|
|
<div class="mt-3">
|
2019-03-09 14:41:34 +01:00
|
|
|
<button type="button" class="btn btn-sm btn-link" onclick="updateRevisions();"
|
|
|
|
title="Force all clients to fetch new data next time they connect. Useful after restoring a backup to remove any stale data.">
|
2019-03-07 21:08:33 +01:00
|
|
|
Force clients to resync
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-sm btn-primary float-right" onclick="reload();">Reload users</button>
|
|
|
|
</div>
|
2019-01-19 22:12:52 +01:00
|
|
|
</div>
|
2019-01-19 21:36:34 +01:00
|
|
|
|
2019-01-19 22:12:52 +01:00
|
|
|
<div id="invite-form-block" class="align-items-center p-3 mb-3 text-white-50 bg-secondary rounded shadow">
|
|
|
|
<div>
|
|
|
|
<h6 class="mb-0 text-white">Invite User</h6>
|
|
|
|
<small>Email:</small>
|
|
|
|
|
2019-08-31 17:57:47 +02:00
|
|
|
<form class="form-inline" id="invite-form" onsubmit="inviteUser(); return false;">
|
2019-01-19 22:12:52 +01:00
|
|
|
<input type="email" class="form-control w-50 mr-2" id="email-invite" placeholder="Enter email">
|
|
|
|
<button type="submit" class="btn btn-primary">Invite</button>
|
|
|
|
</form>
|
2019-01-19 21:36:34 +01:00
|
|
|
</div>
|
2019-01-19 22:12:52 +01:00
|
|
|
</div>
|
2019-02-02 16:47:27 +01:00
|
|
|
|
2019-02-05 22:17:02 +01:00
|
|
|
<div id="config-block" class="align-items-center p-3 mb-3 bg-secondary rounded shadow">
|
2019-02-02 16:47:27 +01:00
|
|
|
<div>
|
2019-02-05 22:17:02 +01:00
|
|
|
<h6 class="text-white mb-3">Configuration</h6>
|
2019-03-07 20:22:02 +01:00
|
|
|
<div class="small text-white mb-3">
|
2019-03-07 21:08:33 +01:00
|
|
|
NOTE: The settings here override the environment variables. Once saved, it's recommended to stop setting
|
|
|
|
them to avoid confusion. This does not apply to the read-only section, which can only be set through the
|
|
|
|
environment.
|
2019-03-07 20:22:02 +01:00
|
|
|
</div>
|
2020-02-26 11:02:22 +01:00
|
|
|
|
|
|
|
<div id="smtp-test-form-block" class="align-items-center mb-3 text-white-50 bg-secondary">
|
|
|
|
<h6 class="mb-0 text-white">SMTP Test</h6>
|
|
|
|
<small>Email:</small>
|
|
|
|
|
|
|
|
<form class="form-inline" id="smtp-test-form" onsubmit="smtpTest(); return false;">
|
|
|
|
<input type="email" class="form-control w-50 mr-2" id="smtp-test-email" placeholder="Enter email">
|
|
|
|
<button type="submit" class="btn btn-primary">Send test email</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2019-08-31 17:57:47 +02:00
|
|
|
<form class="form accordion" id="config-form" onsubmit="saveConfig(); return false;">
|
2019-02-03 00:22:18 +01:00
|
|
|
{{#each config}}
|
2019-02-05 22:17:02 +01:00
|
|
|
{{#if groupdoc}}
|
|
|
|
<div class="card bg-light mb-3">
|
2019-02-06 17:32:13 +01:00
|
|
|
<div class="card-header"><button type="button" class="btn btn-link collapsed" data-toggle="collapse"
|
2019-02-05 22:17:02 +01:00
|
|
|
data-target="#g_{{group}}">{{groupdoc}}</button></div>
|
|
|
|
<div id="g_{{group}}" class="card-body collapse" data-parent="#config-form">
|
|
|
|
{{#each elements}}
|
|
|
|
{{#if editable}}
|
2019-02-18 19:25:33 +01:00
|
|
|
<div class="form-group row" title="[{{name}}] {{doc.description}}">
|
2019-02-08 20:49:04 +01:00
|
|
|
{{#case type "text" "number" "password"}}
|
2019-02-05 22:17:02 +01:00
|
|
|
<label for="input_{{name}}" class="col-sm-3 col-form-label">{{doc.name}}</label>
|
2019-02-08 20:49:04 +01:00
|
|
|
<div class="col-sm-8 input-group">
|
|
|
|
<input class="form-control conf-{{type}}" id="input_{{name}}" type="{{type}}"
|
|
|
|
name="{{name}}" value="{{value}}" {{#if default}} placeholder="Default: {{default}}"
|
|
|
|
{{/if}}>
|
|
|
|
|
|
|
|
{{#case type "password"}}
|
|
|
|
<div class="input-group-append">
|
|
|
|
<button class="btn btn-outline-secondary" type="button"
|
2019-08-31 17:47:52 +02:00
|
|
|
onclick="toggleVis('input_{{name}}');">Show/hide</button>
|
2019-02-08 20:49:04 +01:00
|
|
|
</div>
|
|
|
|
{{/case}}
|
2019-02-05 22:17:02 +01:00
|
|
|
</div>
|
|
|
|
{{/case}}
|
|
|
|
{{#case type "checkbox"}}
|
|
|
|
<div class="col-sm-3">{{doc.name}}</div>
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<div class="form-check">
|
2019-02-06 00:38:57 +01:00
|
|
|
<input class="form-check-input conf-{{type}}" type="checkbox" id="input_{{name}}"
|
|
|
|
name="{{name}}" {{#if value}} checked {{/if}}>
|
2019-02-03 00:22:18 +01:00
|
|
|
|
2019-02-05 22:17:02 +01:00
|
|
|
<label class="form-check-label" for="input_{{name}}"> Default: {{default}} </label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/case}}
|
2019-02-03 00:22:18 +01:00
|
|
|
</div>
|
2019-02-05 22:17:02 +01:00
|
|
|
{{/if}}
|
|
|
|
{{/each}}
|
2019-02-03 00:22:18 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{/each}}
|
2019-02-18 19:25:33 +01:00
|
|
|
|
|
|
|
<div class="card bg-light mb-3">
|
|
|
|
<div class="card-header"><button type="button" class="btn btn-link collapsed" data-toggle="collapse"
|
|
|
|
data-target="#g_readonly">Read-Only Config</button></div>
|
|
|
|
<div id="g_readonly" class="card-body collapse" data-parent="#config-form">
|
2019-03-07 20:22:02 +01:00
|
|
|
<div class="small mb-3">
|
2019-02-18 19:25:33 +01:00
|
|
|
NOTE: These options can't be modified in the editor because they would require the server
|
|
|
|
to be restarted. To modify them, you need to set the correct environment variables when
|
|
|
|
launching the server. You can check the variable names in the tooltips of each option.
|
2019-03-07 20:22:02 +01:00
|
|
|
</div>
|
2019-02-18 19:25:33 +01:00
|
|
|
|
|
|
|
{{#each config}}
|
|
|
|
{{#each elements}}
|
|
|
|
{{#unless editable}}
|
|
|
|
<div class="form-group row" title="[{{name}}] {{doc.description}}">
|
|
|
|
{{#case type "text" "number" "password"}}
|
|
|
|
<label for="input_{{name}}" class="col-sm-3 col-form-label">{{doc.name}}</label>
|
|
|
|
<div class="col-sm-8 input-group">
|
|
|
|
<input readonly class="form-control" id="input_{{name}}" type="{{type}}"
|
|
|
|
value="{{value}}" {{#if default}} placeholder="Default: {{default}}" {{/if}}>
|
|
|
|
|
|
|
|
{{#case type "password"}}
|
|
|
|
<div class="input-group-append">
|
|
|
|
<button class="btn btn-outline-secondary" type="button"
|
2019-08-31 17:47:52 +02:00
|
|
|
onclick="toggleVis('input_{{name}}');">Show/hide</button>
|
2019-02-18 19:25:33 +01:00
|
|
|
</div>
|
|
|
|
{{/case}}
|
|
|
|
</div>
|
|
|
|
{{/case}}
|
|
|
|
{{#case type "checkbox"}}
|
|
|
|
<div class="col-sm-3">{{doc.name}}</div>
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<div class="form-check">
|
|
|
|
<input disabled class="form-check-input" type="checkbox" id="input_{{name}}"
|
|
|
|
{{#if value}} checked {{/if}}>
|
|
|
|
|
|
|
|
<label class="form-check-label" for="input_{{name}}"> Default: {{default}} </label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/case}}
|
|
|
|
</div>
|
|
|
|
{{/unless}}
|
|
|
|
{{/each}}
|
|
|
|
{{/each}}
|
2019-05-03 15:46:29 +02:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-06-02 00:08:52 +02:00
|
|
|
|
|
|
|
{{#if can_backup}}
|
2019-05-03 15:46:29 +02:00
|
|
|
<div class="card bg-light mb-3">
|
|
|
|
<div class="card-header"><button type="button" class="btn btn-link collapsed" data-toggle="collapse"
|
2019-06-02 00:08:52 +02:00
|
|
|
data-target="#g_database">Backup Database</button></div>
|
2019-05-03 15:46:29 +02:00
|
|
|
<div id="g_database" class="card-body collapse" data-parent="#config-form">
|
|
|
|
<div class="small mb-3">
|
|
|
|
NOTE: A local installation of sqlite3 is required for this section to work.
|
|
|
|
</div>
|
|
|
|
<button type="button" class="btn btn-primary" onclick="backupDatabase();">Backup Database</button>
|
2019-02-18 19:25:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-06-02 00:08:52 +02:00
|
|
|
{{/if}}
|
2019-02-18 19:25:33 +01:00
|
|
|
|
2019-02-02 16:47:27 +01:00
|
|
|
<button type="submit" class="btn btn-primary">Save</button>
|
2019-02-17 15:22:27 +01:00
|
|
|
<button type="button" class="btn btn-danger float-right" onclick="deleteConf();">Reset defaults</button>
|
2019-02-02 16:47:27 +01:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-01-19 22:12:52 +01:00
|
|
|
</main>
|
2019-01-19 21:36:34 +01:00
|
|
|
|
2019-02-03 00:22:18 +01:00
|
|
|
<style>
|
|
|
|
#config-block ::placeholder {
|
|
|
|
/* Most modern browsers support this now. */
|
|
|
|
color: orangered;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2019-01-19 22:12:52 +01:00
|
|
|
<script>
|
|
|
|
function reload() { window.location.reload(); }
|
2019-12-01 21:15:14 +01:00
|
|
|
function msg(text) { text && alert(text); reload(); }
|
2019-01-19 22:12:52 +01:00
|
|
|
function identicon(email) {
|
|
|
|
const data = new Identicon(md5(email), { size: 48, format: 'svg' });
|
|
|
|
return "data:image/svg+xml;base64," + data.toString();
|
|
|
|
}
|
2019-02-08 20:49:04 +01:00
|
|
|
function toggleVis(input_id) {
|
2019-08-31 17:47:52 +02:00
|
|
|
const elem = document.getElementById(input_id);
|
|
|
|
const type = elem.getAttribute("type");
|
2019-02-08 20:49:04 +01:00
|
|
|
if (type === "text") {
|
2019-08-31 17:47:52 +02:00
|
|
|
elem.setAttribute("type", "password");
|
2019-02-08 20:49:04 +01:00
|
|
|
} else {
|
2019-08-31 17:47:52 +02:00
|
|
|
elem.setAttribute("type", "text");
|
2019-02-08 20:49:04 +01:00
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
2019-08-31 17:47:52 +02:00
|
|
|
function _post(url, successMsg, errMsg, body) {
|
|
|
|
fetch(url, {
|
|
|
|
method: 'POST',
|
|
|
|
body: body,
|
|
|
|
mode: "same-origin",
|
|
|
|
credentials: "same-origin",
|
|
|
|
headers: { "Content-Type": "application/json" }
|
2020-02-26 11:02:22 +01:00
|
|
|
}).then( resp => {
|
|
|
|
if (resp.ok) { msg(successMsg); return Promise.reject({error: false}); }
|
|
|
|
respStatus = resp.status;
|
|
|
|
respStatusText = resp.statusText;
|
|
|
|
return resp.text();
|
|
|
|
}).then( respText => {
|
|
|
|
try {
|
|
|
|
const respJson = JSON.parse(respText);
|
|
|
|
return respJson ? respJson.ErrorModel.Message : "Unknown error";
|
|
|
|
} catch (e) {
|
|
|
|
return Promise.reject({body:respStatus + ' - ' + respStatusText, error: true});
|
|
|
|
}
|
|
|
|
}).then( apiMsg => {
|
|
|
|
msg(errMsg + "\n" + apiMsg);
|
|
|
|
}).catch( e => {
|
|
|
|
if (e.error === false) { return true; }
|
|
|
|
else { msg(errMsg + "\n" + e.body); }
|
|
|
|
});
|
2019-01-19 22:12:52 +01:00
|
|
|
}
|
|
|
|
function deleteUser(id, mail) {
|
2019-08-31 17:47:52 +02:00
|
|
|
var input_mail = prompt("To delete user '" + mail + "', please type the email below")
|
2019-01-22 17:26:17 +01:00
|
|
|
if (input_mail != null) {
|
2019-01-19 22:12:52 +01:00
|
|
|
if (input_mail == mail) {
|
2020-02-22 17:49:33 +01:00
|
|
|
_post("{{urlpath}}/admin/users/" + id + "/delete",
|
2019-01-19 22:12:52 +01:00
|
|
|
"User deleted correctly",
|
|
|
|
"Error deleting user");
|
|
|
|
} else {
|
|
|
|
alert("Wrong email, please try again")
|
|
|
|
}
|
|
|
|
}
|
2019-01-21 23:41:27 +01:00
|
|
|
return false;
|
2019-01-19 22:12:52 +01:00
|
|
|
}
|
2019-08-21 17:13:06 +02:00
|
|
|
function remove2fa(id) {
|
2020-02-22 17:49:33 +01:00
|
|
|
_post("{{urlpath}}/admin/users/" + id + "/remove-2fa",
|
2019-08-21 17:13:06 +02:00
|
|
|
"2FA removed correctly",
|
|
|
|
"Error removing 2FA");
|
|
|
|
return false;
|
|
|
|
}
|
2019-01-26 19:28:54 +01:00
|
|
|
function deauthUser(id) {
|
2020-02-22 17:49:33 +01:00
|
|
|
_post("{{urlpath}}/admin/users/" + id + "/deauth",
|
2019-01-26 19:28:54 +01:00
|
|
|
"Sessions deauthorized correctly",
|
|
|
|
"Error deauthorizing sessions");
|
|
|
|
return false;
|
|
|
|
}
|
2019-03-07 21:08:33 +01:00
|
|
|
function updateRevisions() {
|
2020-02-22 17:49:33 +01:00
|
|
|
_post("{{urlpath}}/admin/users/update_revision",
|
2019-03-07 21:08:33 +01:00
|
|
|
"Success, clients will sync next time they connect",
|
|
|
|
"Error forcing clients to sync");
|
|
|
|
return false;
|
|
|
|
}
|
2019-01-19 22:12:52 +01:00
|
|
|
function inviteUser() {
|
2019-08-31 17:47:52 +02:00
|
|
|
inv = document.getElementById("email-invite");
|
|
|
|
data = JSON.stringify({ "email": inv.value });
|
|
|
|
inv.value = "";
|
2020-02-22 17:49:33 +01:00
|
|
|
_post("{{urlpath}}/admin/invite/", "User invited correctly",
|
2019-01-19 22:12:52 +01:00
|
|
|
"Error inviting user", data);
|
2019-01-21 23:41:27 +01:00
|
|
|
return false;
|
2019-01-19 22:12:52 +01:00
|
|
|
}
|
2020-02-26 11:02:22 +01:00
|
|
|
function smtpTest() {
|
|
|
|
inv = document.getElementById("smtp-test-email");
|
|
|
|
data = JSON.stringify({ "email": inv.value });
|
|
|
|
inv.value = "";
|
2020-02-26 16:58:57 +01:00
|
|
|
_post("{{urlpath}}/admin/test/smtp/",
|
2020-02-26 11:02:22 +01:00
|
|
|
"SMTP Test email sent correctly",
|
|
|
|
"Error sending SMTP test email", data);
|
|
|
|
return false;
|
|
|
|
}
|
2019-02-06 00:38:57 +01:00
|
|
|
function getFormData() {
|
|
|
|
let data = {};
|
2019-02-03 00:22:18 +01:00
|
|
|
|
2019-08-31 17:47:52 +02:00
|
|
|
document.querySelectorAll(".conf-checkbox").forEach(function (e, i) {
|
|
|
|
data[e.name] = e.checked;
|
2019-02-03 00:22:18 +01:00
|
|
|
});
|
|
|
|
|
2019-08-31 17:47:52 +02:00
|
|
|
document.querySelectorAll(".conf-number").forEach(function (e, i) {
|
|
|
|
data[e.name] = e.value ? +e.value : null;
|
2019-02-06 00:38:57 +01:00
|
|
|
});
|
|
|
|
|
2019-08-31 17:47:52 +02:00
|
|
|
document.querySelectorAll(".conf-text, .conf-password").forEach(function (e, i) {
|
2019-02-06 00:38:57 +01:00
|
|
|
data[e.name] = e.value || null;
|
|
|
|
});
|
|
|
|
return data;
|
2019-02-03 00:22:18 +01:00
|
|
|
}
|
2019-02-02 16:47:27 +01:00
|
|
|
function saveConfig() {
|
2019-02-06 00:38:57 +01:00
|
|
|
data = JSON.stringify(getFormData());
|
2020-02-22 17:49:33 +01:00
|
|
|
_post("{{urlpath}}/admin/config/", "Config saved correctly",
|
2019-02-02 16:47:27 +01:00
|
|
|
"Error saving config", data);
|
|
|
|
return false;
|
|
|
|
}
|
2019-02-17 15:22:27 +01:00
|
|
|
function deleteConf() {
|
2019-02-06 17:32:13 +01:00
|
|
|
var input = prompt("This will remove all user configurations, and restore the defaults and the " +
|
|
|
|
"values set by the environment. This operation could be dangerous. Type 'DELETE' to proceed:");
|
|
|
|
if (input === "DELETE") {
|
2020-02-22 17:49:33 +01:00
|
|
|
_post("{{urlpath}}/admin/config/delete",
|
2019-02-06 17:32:13 +01:00
|
|
|
"Config deleted correctly",
|
|
|
|
"Error deleting config");
|
|
|
|
} else {
|
|
|
|
alert("Wrong input, please try again")
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
2019-05-03 15:46:29 +02:00
|
|
|
function backupDatabase() {
|
2020-02-22 17:49:33 +01:00
|
|
|
_post("{{urlpath}}/admin/config/backup_db",
|
2019-05-03 15:46:29 +02:00
|
|
|
"Backup created successfully",
|
|
|
|
"Error creating backup");
|
|
|
|
return false;
|
|
|
|
}
|
2019-02-06 00:38:57 +01:00
|
|
|
function masterCheck(check_id, inputs_query) {
|
2019-08-31 17:47:52 +02:00
|
|
|
function onChanged(checkbox, inputs_query) {
|
|
|
|
return function _fn() {
|
|
|
|
document.querySelectorAll(inputs_query).forEach(function (e, i) { e.disabled = !checkbox.checked; });
|
|
|
|
checkbox.disabled = false;
|
|
|
|
};
|
2019-02-06 00:38:57 +01:00
|
|
|
};
|
|
|
|
|
2019-08-31 17:47:52 +02:00
|
|
|
const checkbox = document.getElementById(check_id);
|
|
|
|
const onChange = onChanged(checkbox, inputs_query);
|
|
|
|
onChange(); // Trigger the event initially
|
|
|
|
checkbox.addEventListener("change", onChange);
|
2019-02-06 00:38:57 +01:00
|
|
|
}
|
2019-01-20 17:43:56 +01:00
|
|
|
let OrgTypes = {
|
|
|
|
"0": { "name": "Owner", "color": "orange" },
|
|
|
|
"1": { "name": "Admin", "color": "blueviolet" },
|
|
|
|
"2": { "name": "User", "color": "blue" },
|
|
|
|
"3": { "name": "Manager", "color": "green" },
|
|
|
|
};
|
2019-02-06 00:38:57 +01:00
|
|
|
|
2019-08-31 17:47:52 +02:00
|
|
|
document.querySelectorAll("img.identicon").forEach(function (e, i) {
|
|
|
|
e.src = identicon(e.dataset.src);
|
|
|
|
});
|
|
|
|
|
|
|
|
document.querySelectorAll("[data-orgtype]").forEach(function (e, i) {
|
|
|
|
let orgtype = OrgTypes[e.dataset.orgtype];
|
|
|
|
e.style.backgroundColor = orgtype.color;
|
|
|
|
e.title = orgtype.name;
|
2019-01-19 22:12:52 +01:00
|
|
|
});
|
2019-08-31 17:47:52 +02:00
|
|
|
|
2020-02-26 11:02:22 +01:00
|
|
|
// These are formatted because otherwise the
|
2019-08-31 17:47:52 +02:00
|
|
|
// VSCode formatter breaks But they still work
|
|
|
|
// {{#each config}} {{#if grouptoggle}}
|
|
|
|
masterCheck("input_{{grouptoggle}}", "#g_{{group}} input");
|
|
|
|
// {{/if}} {{/each}}
|
2020-02-19 06:27:00 +01:00
|
|
|
</script>
|