Skip to content

Commit

Permalink
chg: [chat request] add other chat type + placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Sep 17, 2024
1 parent f4da8c5 commit 4ee6b4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion var/www/blueprints/chats_explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def chat_monitoring_request():
username = request.form.get('username')
invite = request.form.get('invite')
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)
if not username and not invite and not description:
return create_json_response({"status": "error", "reason": "Please provide a username/username/invite/comment"}, 400)
Expand Down
7 changes: 4 additions & 3 deletions var/www/templates/chats_explorer/request_chat_monitoring.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,22 @@ <h1>Chat Monitoring Request {{ uuid }} Created</h1>
<select class="custom-select" id="level_selector" name="type">
<option value="telegram" selected>Telegram</option>
<option value="discord">Discord</option>
<option value="other">Other</option>
</select>

<div class="form-group">
<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 class="form-group">
<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 class="form-group">
<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>


Expand Down

0 comments on commit 4ee6b4d

Please sign in to comment.