chatr/ChatrServer/wwwroot/create-bot-permissions/index.html

72 lines
3.5 KiB
HTML
Raw Permalink Normal View History

2022-08-24 11:34:56 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login</title>
<link rel="stylesheet" href="./css/material.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="./css/styles.css">
<link rel="manifest" href="./site.webmanifest">
<link rel="icon" type="image/x-icon" href="./favicon.ico">
</head>
<body>
<form class="center-screen" action="./api/create-bot" method="POST">
<!-- Simple Textfield -->
<h1>Permissions</h1>
<input type="hidden" name="botuser" value="{BOT_USER}">
<input type="hidden" name="botname" value="{BOT_NAME}">
<input type="hidden" name="botdesc" value="{BOT_DESC}">
<!--
CanSendMessagesToOtherPeople=GetPermissionValue(ctx,"other_people");
OthersCanReceiveMessages=GetPermissionValue(ctx,"bot2bot");
CanSendNotifications=GetPermissionValue(ctx,"notification");
CanGetFromShareTarget=GetPermissionValue(ctx,"share_target");
CanGetMessages=GetPermissionValue(ctx,"recv_msg");
-->
<label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" for="checkbox-1">
<input type="checkbox" name="other_people" id="checkbox-1" class="mdl-checkbox__input" checked>
<span class="mdl-checkbox__label">Can Send Messages To Other People</span>
</label>
<label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" for="checkbox-2">
<input type="checkbox" name="bot2bot" id="checkbox-2" class="mdl-checkbox__input" checked>
<span class="mdl-checkbox__label">Can Send To Other Bots</span>
</label>
<label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" for="checkbox-3">
<input type="checkbox" name="notification" id="checkbox-3" class="mdl-checkbox__input" checked>
<span class="mdl-checkbox__label">Can Send Notifications</span>
</label>
<label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" for="checkbox-4">
<input type="checkbox" name="share_target" id="checkbox-4" class="mdl-checkbox__input" checked>
<span class="mdl-checkbox__label">Can Handle Share Target</span>
</label>
<label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" for="checkbox-5">
<input type="checkbox" name="recv_msg" id="checkbox-5" class="mdl-checkbox__input" checked>
<span class="mdl-checkbox__label">Receive Messages</span>
</label>
<div class="mdl-tooltip" for="checkbox-1">
If checked this bot can send messages to other people
</div>
<div class="mdl-tooltip" for="checkbox-2">
If checked this bot can send messages to other bots
</div>
<div class="mdl-tooltip" for="checkbox-3">
If checked this bot can send notifications to your device, can send to other people
</div>
<div class="mdl-tooltip" for="checkbox-4">
If checked this bot can handle share target
</div>
<div class="mdl-tooltip" for="checkbox-5">
If checked this bot can receive messages
</div>
<input type="submit" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored" value="Create Bot">
</form>
<script src="./js/material.min.js"></script>
</body>
</html>