mirror of
https://gitlab.com/niansa/discordlistforbots.git
synced 2025-03-06 20:49:22 +01:00
43 lines
2.2 KiB
Text
43 lines
2.2 KiB
Text
<%inc
|
|
/*
|
|
* discordlistforbots
|
|
* Copyright (C) 2021 niansa
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
|
|
#include "controllers/views.h"
|
|
#include "config.h" %>
|
|
<%c++ auto sessionData = @@.get<SessionDataPtr>("sessionData");%>
|
|
<%c++ auto error = @@.get<std::string>("error");%>
|
|
<%layout global_layout%>
|
|
|
|
<title>Registering a bot - {%SHORT_NAME%}</title>
|
|
|
|
<div class="container">
|
|
<form action="register" method="POST">
|
|
<p class="title text-center">Registering a bot</p>
|
|
<i style="color:red;">{%error%}</i>
|
|
<p>Client ID *</p><input tyep="number" class="special-input maxwidth" name="app_id" maxlength="19" minlength="17" pattern="^[0-9]+$" onclick="dontLoose()" required>
|
|
<p>Short description *</p><input class="special-input maxwidth" name="short_description" maxlength="80" onclick="dontLoose()" required>
|
|
<p>Long description *</p><textarea class="special-input maxwidth" name="long_description" style="height:200px;" onclick="dontLoose()" required></textarea>
|
|
<p>Prefix</p><input class="special-input maxwidth" name="prefix" maxlength="6" onclick="dontLoose()">
|
|
<p>Permanent support server invite code</p><input class="special-input maxwidth" name="support_server" maxlength="15" minlength="5" onclick="dontLoose()">
|
|
<p>Owner</p><input class="special-input maxwidth" value="{%sessionData->discord_fullname()%}" autocomplete="off" onclick="dontLoose()" disabled>
|
|
<br><br><br>
|
|
<input type="submit" class="special-button" style="margin:0px;" onclick="loose()" value="Submit">
|
|
</form>
|
|
<script src="/dontloose.js"></script>
|
|
</div>
|