mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 06:34:58 +05:00
Версия панели 1.0
This commit is contained in:
parent
359012b12b
commit
fa1dbf26b7
5 changed files with 282 additions and 282 deletions
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
<!-- Content Header (Page header) -->
|
<!-- Content Header (Page header) -->
|
||||||
<section class="content-header">
|
<section class="content-header">
|
||||||
<h1> Команды <small> Version 1.0.0 </small> </h1>
|
<h1> Команды <small> Dashboard v1.0 </small> </h1>
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
<li class="active"><a href="/commands"><i class="fa fa-home"></i> Команды </a></li>
|
<li class="active"><a href="/commands"><i class="fa fa-home"></i> Команды </a></li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
|
@ -18,294 +18,294 @@
|
||||||
|
|
||||||
<!-- Content Header (Page header) -->
|
<!-- Content Header (Page header) -->
|
||||||
<section class="content-header">
|
<section class="content-header">
|
||||||
<h1> <%= translate("common:CONFIGURATION") %> <small> Version 1.0.0 </small> </h1>
|
<h1> <%= translate("common:CONFIGURATION") %> <small> Dashboard v1.0 </small> </h1>
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
<li><a href="/"><i class="fa fa-home"></i> <%= translate("dashboard:SELECTOR") %></a></li>
|
<li><a href="/"><i class="fa fa-home"></i> <%= translate("dashboard:SELECTOR") %></a></li>
|
||||||
<li class="active"><%= guild.name %></li>
|
<li class="active"><%= guild.name %></li>
|
||||||
</ol>
|
</ol>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="content">
|
<section class="content">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="box box-widget widget-user">
|
<div class="box box-widget widget-user">
|
||||||
<div class="widget-user-header bg-aqua-active">
|
<div class="widget-user-header bg-aqua-active">
|
||||||
<h3 class="widget-user-username"><%= guild.name %></h3>
|
<h3 class="widget-user-username"><%= guild.name %></h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="widget-user-image">
|
<div class="widget-user-image">
|
||||||
<img class="img-circle" src="<%= guild.iconURL %>" alt="Server icon">
|
<img class="img-circle" src="<%= guild.iconURL %>" alt="Server icon">
|
||||||
</div>
|
</div>
|
||||||
<div class="box-footer">
|
<div class="box-footer">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12 border-right">
|
<div class="col-sm-12 border-right">
|
||||||
<div class="description-block">
|
<div class="description-block">
|
||||||
<h5 class="description-header"><%= guild.memberCount %></h5>
|
<h5 class="description-header"><%= guild.memberCount %></h5>
|
||||||
<span class="description-text"><%= translate("common:MEMBERS") %></span>
|
<span class="description-text"><%= translate("common:MEMBERS") %></span>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.description-block -->
|
<!-- /.description-block -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.col -->
|
<!-- /.col -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.row -->
|
<!-- /.row -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box-footer -->
|
<!-- /.box-footer -->
|
||||||
</div>
|
</div>
|
||||||
<!-- BASIC CONFIGURATION -->
|
<!-- BASIC CONFIGURATION -->
|
||||||
<div class="box box-warning">
|
<div class="box box-warning">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
<h3 class="box-title"><%= translate("dashboard:BASIC_CONF") %></h3>
|
<h3 class="box-title"><%= translate("dashboard:BASIC_CONF") %></h3>
|
||||||
</div>
|
</div>
|
||||||
<form role="form" action="/manage/<%= guild.id %>/" method="POST">
|
<form role="form" action="/manage/<%= guild.id %>/" method="POST">
|
||||||
<!-- /.box-header -->
|
<!-- /.box-header -->
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<!-- text input -->
|
<!-- text input -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><%= translate("common:PREFIX") %></label>
|
<label><%= translate("common:PREFIX") %></label>
|
||||||
<input type="text" name="prefix" class="form-control" placeholder="<%= guild.prefix %>">
|
<input type="text" name="prefix" class="form-control" placeholder="<%= guild.prefix %>">
|
||||||
</div>
|
</div>
|
||||||
<!-- select -->
|
<!-- select -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><%= translate("common:LANGUAGE") %></label>
|
<label><%= translate("common:LANGUAGE") %></label>
|
||||||
<select class="form-control" name="language">
|
<select class="form-control" name="language">
|
||||||
<% bot.languages.forEach((language) => { %>
|
<% bot.languages.forEach((language) => { %>
|
||||||
<% if(guild.language === language.name){ %>
|
<% if(guild.language === language.name){ %>
|
||||||
<option selected="selected"><%= language.aliases[0] %></option>
|
<option selected="selected"><%= language.aliases[0] %></option>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<option><%= language.aliases[0] %></options>
|
<option><%= language.aliases[0] %></options>
|
||||||
<% } %>
|
<% } %>
|
||||||
<% }) %>
|
<% }) %>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box-body -->
|
<!-- /.box-body -->
|
||||||
<div class="box-footer">
|
<div class="box-footer">
|
||||||
<button type="submit" class="btn btn-primary"><%= translate("common:UPDATE") %></button>
|
<button type="submit" class="btn btn-primary"><%= translate("common:UPDATE") %></button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
<!-- /.box -->
|
||||||
<!-- SPECIAL CHANNELS -->
|
<!-- SPECIAL CHANNELS -->
|
||||||
<div class="box box-warning">
|
<div class="box box-warning">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
<h3 class="box-title"><%= translate("dashboard:CHANNELS_CONF") %></h3>
|
<h3 class="box-title"><%= translate("dashboard:CHANNELS_CONF") %></h3>
|
||||||
</div>
|
</div>
|
||||||
<form role="form" action="/manage/<%= guild.id %>/" method="POST">
|
<form role="form" action="/manage/<%= guild.id %>/" method="POST">
|
||||||
<!-- /.box-header -->
|
<!-- /.box-header -->
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<!-- select -->
|
<!-- select -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><%= translate("common:SUGGESTIONS") %></label>
|
<label><%= translate("common:SUGGESTIONS") %></label>
|
||||||
<select class="form-control" name="suggestions">
|
<select class="form-control" name="suggestions">
|
||||||
<% if(guild.plugins.suggestions && bot.channels.cache.has(guild.plugins.suggestions)){ %>
|
<% if(guild.plugins.suggestions && bot.channels.cache.has(guild.plugins.suggestions)){ %>
|
||||||
<option selected="selected">#<%= bot.channels.cache.get(guild.plugins.suggestions).name %></option>
|
<option selected="selected">#<%= bot.channels.cache.get(guild.plugins.suggestions).name %></option>
|
||||||
<% guild.channels.cache.filter((ch) => ch.type === "text" && ch.id !== guild.plugins.suggestions).forEach((ch) => { %>
|
<% guild.channels.cache.filter((ch) => ch.type === "text" && ch.id !== guild.plugins.suggestions).forEach((ch) => { %>
|
||||||
<option>#<%= ch.name %></option>
|
<option>#<%= ch.name %></option>
|
||||||
<% }); %>
|
<% }); %>
|
||||||
<option><%= translate("common:NO_CHANNEL") %></option>
|
<option><%= translate("common:NO_CHANNEL") %></option>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<option selected="selected"><%= translate("common:NO_CHANNEL") %></option>
|
<option selected="selected"><%= translate("common:NO_CHANNEL") %></option>
|
||||||
<% guild.channels.cache.filter((ch) => ch.type === "text").forEach((ch) => { %>
|
<% guild.channels.cache.filter((ch) => ch.type === "text").forEach((ch) => { %>
|
||||||
<option>#<%= ch.name %></option>
|
<option>#<%= ch.name %></option>
|
||||||
<% }); %>
|
<% }); %>
|
||||||
<% } %>
|
<% } %>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><%= translate("common:MODLOGS") %></label>
|
<label><%= translate("common:MODLOGS") %></label>
|
||||||
<select class="form-control" name="modlogs">
|
<select class="form-control" name="modlogs">
|
||||||
<% if(guild.plugins.modlogs && bot.channels.cache.has(guild.plugins.modlogs)){ %>
|
<% if(guild.plugins.modlogs && bot.channels.cache.has(guild.plugins.modlogs)){ %>
|
||||||
<option selected="selected">#<%= bot.channels.cache.get(guild.plugins.modlogs).name %></option>
|
<option selected="selected">#<%= bot.channels.cache.get(guild.plugins.modlogs).name %></option>
|
||||||
<% guild.channels.cache.filter((ch) => ch.type === "text" && ch.id !== guild.plugins.modlogs).forEach((ch) => { %>
|
<% guild.channels.cache.filter((ch) => ch.type === "text" && ch.id !== guild.plugins.modlogs).forEach((ch) => { %>
|
||||||
<option>#<%= ch.name %></option>
|
<option>#<%= ch.name %></option>
|
||||||
<% }); %>
|
<% }); %>
|
||||||
<option><%= translate("common:NO_CHANNEL") %></option>
|
<option><%= translate("common:NO_CHANNEL") %></option>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<option selected="selected"><%= translate("common:NO_CHANNEL")%></option>
|
<option selected="selected"><%= translate("common:NO_CHANNEL")%></option>
|
||||||
<% guild.channels.cache.filter((ch) => ch.type === "text").forEach((ch) => { %>
|
<% guild.channels.cache.filter((ch) => ch.type === "text").forEach((ch) => { %>
|
||||||
<option>#<%= ch.name %></option>
|
<option>#<%= ch.name %></option>
|
||||||
<% }); %>
|
<% }); %>
|
||||||
<% } %>
|
<% } %>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><%= translate("common:FORTNITESHOP") %></label>
|
<label><%= translate("common:FORTNITESHOP") %></label>
|
||||||
<select class="form-control" name="fortniteshop">
|
<select class="form-control" name="fortniteshop">
|
||||||
<% if(guild.plugins.fortniteshop && bot.channels.cache.has(guild.plugins.fortniteshop)){ %>
|
<% if(guild.plugins.fortniteshop && bot.channels.cache.has(guild.plugins.fortniteshop)){ %>
|
||||||
<option selected="selected">#<%= bot.channels.cache.get(guild.plugins.fortniteshop).name %></option>
|
<option selected="selected">#<%= bot.channels.cache.get(guild.plugins.fortniteshop).name %></option>
|
||||||
<% guild.channels.cache.filter((ch) => ch.type === "text" && ch.id !== guild.plugins.fortniteshop).forEach((ch) => { %>
|
<% guild.channels.cache.filter((ch) => ch.type === "text" && ch.id !== guild.plugins.fortniteshop).forEach((ch) => { %>
|
||||||
<option>#<%= ch.name %></option>
|
<option>#<%= ch.name %></option>
|
||||||
<% }); %>
|
<% }); %>
|
||||||
<option><%= translate("common:NO_CHANNEL") %></option>
|
<option><%= translate("common:NO_CHANNEL") %></option>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<option selected="selected"><%= translate("common:NO_CHANNEL")%></option>
|
<option selected="selected"><%= translate("common:NO_CHANNEL")%></option>
|
||||||
<% guild.channels.cache.filter((ch) => ch.type === "text").forEach((ch) => { %>
|
<% guild.channels.cache.filter((ch) => ch.type === "text").forEach((ch) => { %>
|
||||||
<option>#<%= ch.name %></option>
|
<option>#<%= ch.name %></option>
|
||||||
<% }); %>
|
<% }); %>
|
||||||
<% } %>
|
<% } %>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box-body -->
|
<!-- /.box-body -->
|
||||||
<div class="box-footer">
|
<div class="box-footer">
|
||||||
<button type="submit" class="btn btn-primary"><%= translate("common:UPDATE") %></button>
|
<button type="submit" class="btn btn-primary"><%= translate("common:UPDATE") %></button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
<!-- /.box -->
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<!-- WELCOME CONFIGURATION -->
|
<!-- WELCOME CONFIGURATION -->
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
<h3 class="box-title"><%= translate("dashboard:WELCOME_CONF") %></h3>
|
<h3 class="box-title"><%= translate("dashboard:WELCOME_CONF") %></h3>
|
||||||
</div>
|
</div>
|
||||||
<form role="form" action="/manage/<%= guild.id %>/" method="POST">
|
<form role="form" action="/manage/<%= guild.id %>/" method="POST">
|
||||||
<!-- /.box-header -->
|
<!-- /.box-header -->
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<!-- text input -->
|
<!-- text input -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><%= translate("common:MESSAGE") %></label>
|
<label><%= translate("common:MESSAGE") %></label>
|
||||||
<textarea rows="3" name="message" class="form-control" required><%= (guild.plugins.welcome.message || translate("administration/welcome:DEFAULT_MESSAGE")) %></textarea>
|
<textarea rows="3" name="message" class="form-control" required><%= (guild.plugins.welcome.message || translate("administration/welcome:DEFAULT_MESSAGE")) %></textarea>
|
||||||
</div>
|
</div>
|
||||||
<!-- select -->
|
<!-- select -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><%= translate("common:CHANNEL") %></label>
|
<label><%= translate("common:CHANNEL") %></label>
|
||||||
<select class="form-control" name="channel">
|
<select class="form-control" name="channel">
|
||||||
<% if(guild.plugins.welcome.enabled && bot.channels.cache.has(guild.plugins.welcome.channel)){ %>
|
<% if(guild.plugins.welcome.enabled && bot.channels.cache.has(guild.plugins.welcome.channel)){ %>
|
||||||
<option selected="selected">#<%= bot.channels.cache.get(guild.plugins.welcome.channel).name %></option>
|
<option selected="selected">#<%= bot.channels.cache.get(guild.plugins.welcome.channel).name %></option>
|
||||||
<% guild.channels.cache.filter((ch) => ch.id !== guild.plugins.welcome.channel && ch.type === "text").forEach((ch) => { %>
|
<% guild.channels.cache.filter((ch) => ch.id !== guild.plugins.welcome.channel && ch.type === "text").forEach((ch) => { %>
|
||||||
<option>#<%= ch.name %></option>
|
<option>#<%= ch.name %></option>
|
||||||
<% }); } else { %>
|
<% }); } else { %>
|
||||||
<option selected="selected">#<%= guild.channels.cache.filter((ch) => ch.type === "text").first().name %></option>
|
<option selected="selected">#<%= guild.channels.cache.filter((ch) => ch.type === "text").first().name %></option>
|
||||||
<% guild.channels.cache.filter((ch) => ch.id !== guild.channels.cache.first().id && ch.type === "text").forEach((ch) => { %>
|
<% guild.channels.cache.filter((ch) => ch.id !== guild.channels.cache.first().id && ch.type === "text").forEach((ch) => { %>
|
||||||
<option>#<%= ch.name %></option>
|
<option>#<%= ch.name %></option>
|
||||||
<% }); %>
|
<% }); %>
|
||||||
<% } %>
|
<% } %>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<!-- select -->
|
<!-- select -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<% if(guild.plugins.welcome.withImage || !guild.plugins.welcome.enabled) { %>
|
<% if(guild.plugins.welcome.withImage || !guild.plugins.welcome.enabled) { %>
|
||||||
<input type="checkbox" name="withImage" checked><%= translate("dashboard:WELCOME_IMG") %>
|
<input type="checkbox" name="withImage" checked><%= translate("dashboard:WELCOME_IMG") %>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<input type="checkbox" name="withImage"><%= translate("dashboard:WELCOME_IMG") %>
|
<input type="checkbox" name="withImage"><%= translate("dashboard:WELCOME_IMG") %>
|
||||||
<% } %>
|
<% } %>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box-body -->
|
<!-- /.box-body -->
|
||||||
<div class="box-footer">
|
<div class="box-footer">
|
||||||
<% if(guild.plugins.welcome.enabled){ %>
|
<% if(guild.plugins.welcome.enabled){ %>
|
||||||
<button type="submit" name="welcomeDisable" class="btn btn-danger"><%= translate("dashboard:DISABLE_MESSAGES") %></button>
|
<button type="submit" name="welcomeDisable" class="btn btn-danger"><%= translate("dashboard:DISABLE_MESSAGES") %></button>
|
||||||
<button type="submit" name="welcomeUpdate" class="btn btn-primary pull-right"><%= translate("common:UPDATE") %></button>
|
<button type="submit" name="welcomeUpdate" class="btn btn-primary pull-right"><%= translate("common:UPDATE") %></button>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<button type="submit" name="welcomeEnable" class="btn btn-success"><%= translate("dashboard:ENABLE_MESSAGES") %></button>
|
<button type="submit" name="welcomeEnable" class="btn btn-success"><%= translate("dashboard:ENABLE_MESSAGES") %></button>
|
||||||
<% } %>
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<!-- GOODBYE CONFIGURATION -->
|
<!-- GOODBYE CONFIGURATION -->
|
||||||
<div class="box box-danger">
|
<div class="box box-danger">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
<h3 class="box-title"><%= translate("dashboard:GOODBYE_CONF") %></h3>
|
<h3 class="box-title"><%= translate("dashboard:GOODBYE_CONF") %></h3>
|
||||||
</div>
|
</div>
|
||||||
<form role="form" action="/manage/<%= guild.id %>/" method="POST">
|
<form role="form" action="/manage/<%= guild.id %>/" method="POST">
|
||||||
<!-- /.box-header -->
|
<!-- /.box-header -->
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<!-- text input -->
|
<!-- text input -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><%= translate("common:MESSAGE") %></label>
|
<label><%= translate("common:MESSAGE") %></label>
|
||||||
<textarea rows="3" name="message" class="form-control" required><%= (guild.plugins.goodbye.message || translate("administration/goodbye:DEFAULT_MESSAGE")) %></textarea>
|
<textarea rows="3" name="message" class="form-control" required><%= (guild.plugins.goodbye.message || translate("administration/goodbye:DEFAULT_MESSAGE")) %></textarea>
|
||||||
</div>
|
</div>
|
||||||
<!-- select -->
|
<!-- select -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><%= translate("common:CHANNEL") %></label>
|
<label><%= translate("common:CHANNEL") %></label>
|
||||||
<select class="form-control" name="channel">
|
<select class="form-control" name="channel">
|
||||||
<% if(guild.plugins.goodbye.enabled && bot.channels.cache.has(guild.plugins.goodbye.channel)){ %>
|
<% if(guild.plugins.goodbye.enabled && bot.channels.cache.has(guild.plugins.goodbye.channel)){ %>
|
||||||
<option selected="selected">#<%= bot.channels.cache.get(guild.plugins.goodbye.channel).name %></option>
|
<option selected="selected">#<%= bot.channels.cache.get(guild.plugins.goodbye.channel).name %></option>
|
||||||
<% guild.channels.cache.filter((ch) => ch.id !== guild.plugins.goodbye.channel && ch.type === "text").forEach((ch) => { %>
|
<% guild.channels.cache.filter((ch) => ch.id !== guild.plugins.goodbye.channel && ch.type === "text").forEach((ch) => { %>
|
||||||
<option>#<%= ch.name %></option>
|
<option>#<%= ch.name %></option>
|
||||||
<% }); } else { %>
|
<% }); } else { %>
|
||||||
<option selected="selected">#<%= guild.channels.cache.filter((ch) => ch.type === "text").first().name %></option>
|
<option selected="selected">#<%= guild.channels.cache.filter((ch) => ch.type === "text").first().name %></option>
|
||||||
<% guild.channels.cache.filter((ch) => ch.id !== guild.channels.cache.first().id && ch.type === "text").forEach((ch) => { %>
|
<% guild.channels.cache.filter((ch) => ch.id !== guild.channels.cache.first().id && ch.type === "text").forEach((ch) => { %>
|
||||||
<option>#<%= ch.name %></option>
|
<option>#<%= ch.name %></option>
|
||||||
<% }); %>
|
<% }); %>
|
||||||
<% } %>
|
<% } %>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<!-- select -->
|
<!-- select -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<% if(guild.plugins.goodbye.withImage || !guild.plugins.goodbye.enabled) { %>
|
<% if(guild.plugins.goodbye.withImage || !guild.plugins.goodbye.enabled) { %>
|
||||||
<input type="checkbox" name="withImage" checked><%= translate("dashboard:GOODBYE_IMG") %>
|
<input type="checkbox" name="withImage" checked><%= translate("dashboard:GOODBYE_IMG") %>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<input type="checkbox" name="withImage"><%= translate("dashboard:GOODBYE_IMG") %>
|
<input type="checkbox" name="withImage"><%= translate("dashboard:GOODBYE_IMG") %>
|
||||||
<% } %>
|
<% } %>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box-body -->
|
<!-- /.box-body -->
|
||||||
<div class="box-footer">
|
<div class="box-footer">
|
||||||
<% if(guild.plugins.goodbye.enabled){ %>
|
<% if(guild.plugins.goodbye.enabled){ %>
|
||||||
<button type="submit" name="goodbyeDisable" class="btn btn-danger"><%= translate("dashboard:DISABLE_MESSAGES") %></button>
|
<button type="submit" name="goodbyeDisable" class="btn btn-danger"><%= translate("dashboard:DISABLE_MESSAGES") %></button>
|
||||||
<button type="submit" name="goodbyeUpdate" class="btn btn-primary pull-right"><%= translate("common:UPDATE") %></button>
|
<button type="submit" name="goodbyeUpdate" class="btn btn-primary pull-right"><%= translate("common:UPDATE") %></button>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<button type="submit" name="goodbyeEnable" class="btn btn-success"><%= translate("dashboard:ENABLE_MESSAGES") %></button>
|
<button type="submit" name="goodbyeEnable" class="btn btn-success"><%= translate("dashboard:ENABLE_MESSAGES") %></button>
|
||||||
<% } %>
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<!-- AUTOROLE CONFIGURATION -->
|
<!-- AUTOROLE CONFIGURATION -->
|
||||||
<div class="box box-warning">
|
<div class="box box-warning">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
<h3 class="box-title"><%= translate("dashboard:AUTOROLE_CONF") %></h3>
|
<h3 class="box-title"><%= translate("dashboard:AUTOROLE_CONF") %></h3>
|
||||||
</div>
|
</div>
|
||||||
<form role="form" action="/manage/<%= guild.id %>/" method="POST">
|
<form role="form" action="/manage/<%= guild.id %>/" method="POST">
|
||||||
<!-- /.box-header -->
|
<!-- /.box-header -->
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<!-- select -->
|
<!-- select -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><%= translate("common:ROLE") %></label>
|
<label><%= translate("common:ROLE") %></label>
|
||||||
<select class="form-control" name="role">
|
<select class="form-control" name="role">
|
||||||
<% if(guild.plugins.autorole.enabled && guild.roles.cache.has(guild.plugins.autorole.role)){ %>
|
<% if(guild.plugins.autorole.enabled && guild.roles.cache.has(guild.plugins.autorole.role)){ %>
|
||||||
<option selected="selected">@<%= guild.roles.cache.get(guild.plugins.autorole.role).name %></option>
|
<option selected="selected">@<%= guild.roles.cache.get(guild.plugins.autorole.role).name %></option>
|
||||||
<% guild.roles.cache.filter((r) => r.id !== guild.plugins.autorole.role && r.name !== "@everyone").forEach((r) => { %>
|
<% guild.roles.cache.filter((r) => r.id !== guild.plugins.autorole.role && r.name !== "@everyone").forEach((r) => { %>
|
||||||
<option>@<%= r.name %></option>
|
<option>@<%= r.name %></option>
|
||||||
<% }); } else { %>
|
<% }); } else { %>
|
||||||
<option selected="selected">@<%= guild.roles.cache.filter((r) => r.name !== "@everyone").first().name %></option>
|
<option selected="selected">@<%= guild.roles.cache.filter((r) => r.name !== "@everyone").first().name %></option>
|
||||||
<% guild.roles.cache.filter((r) => r.id !== guild.roles.cache.filter((r) => r.name !== "@everyone").first().id && r.name !== "@everyone").forEach((r) => { %>
|
<% guild.roles.cache.filter((r) => r.id !== guild.roles.cache.filter((r) => r.name !== "@everyone").first().id && r.name !== "@everyone").forEach((r) => { %>
|
||||||
<option>@<%= r.name %></option>
|
<option>@<%= r.name %></option>
|
||||||
<% }); %>
|
<% }); %>
|
||||||
<% } %>
|
<% } %>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box-body -->
|
<!-- /.box-body -->
|
||||||
<div class="box-footer">
|
<div class="box-footer">
|
||||||
<% if(guild.plugins.autorole.enabled){ %>
|
<% if(guild.plugins.autorole.enabled){ %>
|
||||||
<button type="submit" name="autoroleDisable" class="btn btn-danger"><%= translate("dashboard:DISABLE_AUTOROLE") %></button>
|
<button type="submit" name="autoroleDisable" class="btn btn-danger"><%= translate("dashboard:DISABLE_AUTOROLE") %></button>
|
||||||
<button type="submit" name="autoroleUpdate" class="btn btn-primary pull-right"><%= translate("common:UPDATE") %></button>
|
<button type="submit" name="autoroleUpdate" class="btn btn-primary pull-right"><%= translate("common:UPDATE") %></button>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<button type="submit" name="autoroleEnable" class="btn btn-success"><%= translate("dashboard:ENABLE_AUTOROLE") %></button>
|
<button type="submit" name="autoroleEnable" class="btn btn-success"><%= translate("dashboard:ENABLE_AUTOROLE") %></button>
|
||||||
<% } %>
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
<!-- /.box -->
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- Footer includes credits and version -->
|
<!-- Footer includes credits and version -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.content-wrapper -->
|
<!-- /.content-wrapper -->
|
||||||
|
|
||||||
<%- include('../includes/footer') %>
|
<%- include('../includes/footer') %>
|
||||||
</div>
|
</div>
|
||||||
<!-- ./wrapper -->
|
<!-- ./wrapper -->
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
<!-- Content Header (Page header) -->
|
<!-- Content Header (Page header) -->
|
||||||
<section class="content-header">
|
<section class="content-header">
|
||||||
<h1> <%= translate("dashboard:SELECTOR") %> <small> Version 1.0.0 </small> </h1>
|
<h1> <%= translate("dashboard:SELECTOR") %> <small> Dashboard v1.0 </small> </h1>
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
<li class="active"><a href="/"><i class="fa fa-home"></i> <%= translate("dashboard:SELECTOR") %></a></li>
|
<li class="active"><a href="/"><i class="fa fa-home"></i> <%= translate("dashboard:SELECTOR") %></a></li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
<!-- Content Header (Page header) -->
|
<!-- Content Header (Page header) -->
|
||||||
<section class="content-header">
|
<section class="content-header">
|
||||||
<h1> <%= translate("UTILS").SETTINGS %> <small> Version 1.0.0 </small> </h1>
|
<h1> <%= translate("UTILS").SETTINGS %> <small> Dashboard v1.0 </small> </h1>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- Main content -->
|
<!-- Main content -->
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
<!-- Content Header (Page header) -->
|
<!-- Content Header (Page header) -->
|
||||||
<section class="content-header">
|
<section class="content-header">
|
||||||
<h1> Обновления <small> Version 1.0.0 </small> </h1>
|
<h1> Обновления <small> Dashboard v1.0 </small> </h1>
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
<li class="active"><a href="/updates"><i class="fa fa-home"></i> Обновления </a></li>
|
<li class="active"><a href="/updates"><i class="fa fa-home"></i> Обновления </a></li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
Loading…
Reference in a new issue