mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-23 06:37:15 +00:00
chg: [chat request] add other chat type + placeholders
This commit is contained in:
parent
f4da8c55f4
commit
4ee6b4d06d
2 changed files with 5 additions and 4 deletions
|
@ -231,7 +231,7 @@ def chat_monitoring_request():
|
||||||
username = request.form.get('username')
|
username = request.form.get('username')
|
||||||
invite = request.form.get('invite')
|
invite = request.form.get('invite')
|
||||||
description = request.form.get('description')
|
description = request.form.get('description')
|
||||||
if chat_type not in ['discord', 'telegram']:
|
if chat_type not in ['discord', 'telegram', 'other']:
|
||||||
return create_json_response({"status": "error", "reason": "Invalid Chat Type"}, 400)
|
return create_json_response({"status": "error", "reason": "Invalid Chat Type"}, 400)
|
||||||
if not username and not invite and not description:
|
if not username and not invite and not description:
|
||||||
return create_json_response({"status": "error", "reason": "Please provide a username/username/invite/comment"}, 400)
|
return create_json_response({"status": "error", "reason": "Please provide a username/username/invite/comment"}, 400)
|
||||||
|
|
|
@ -46,21 +46,22 @@
|
||||||
<select class="custom-select" id="level_selector" name="type">
|
<select class="custom-select" id="level_selector" name="type">
|
||||||
<option value="telegram" selected>Telegram</option>
|
<option value="telegram" selected>Telegram</option>
|
||||||
<option value="discord">Discord</option>
|
<option value="discord">Discord</option>
|
||||||
|
<option value="other">Other</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="username"><b>Chat Username</b></label>
|
<label for="username"><b>Chat Username</b></label>
|
||||||
<input type="text" class="form-control" id="username" name="username">
|
<input type="text" class="form-control" id="username" name="username" placeholder="Chat Username (Optional)">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="invite"><b>Chat Invite</b></label>
|
<label for="invite"><b>Chat Invite</b></label>
|
||||||
<input type="text" class="form-control" id="invite" name="invite">
|
<input type="text" class="form-control" id="invite" name="invite" placeholder="Chat Invite (Optional)">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="description"><b>Comments</b></label>
|
<label for="description"><b>Comments</b></label>
|
||||||
<textarea class="form-control" id="paste_content" name="description" rows="5"></textarea>
|
<textarea class="form-control" id="description" name="description" rows="5" placeholder="Additional Comments (Optional)"></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue