Karan Adhikari commited on
Update settings.html
Browse files
Backend/fastapi/templates/settings.html
CHANGED
|
@@ -258,6 +258,25 @@
|
|
| 258 |
</div>
|
| 259 |
</div>
|
| 260 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 261 |
<!-- Approver IDs -->
|
| 262 |
<label class="s-label">APPROVER_IDS
|
| 263 |
<span style="font-weight:400;text-transform:none;letter-spacing:0">
|
|
@@ -585,6 +604,8 @@ async function saveSettings() {
|
|
| 585 |
subscription: document.getElementById('subscription').checked,
|
| 586 |
subscription_group_id: parseInt(document.getElementById('subscription_group_id').value || '0', 10),
|
| 587 |
subscription_url: document.getElementById('subscription_url').value.trim(),
|
|
|
|
|
|
|
| 588 |
approver_ids: collectList('approver_ids').map(Number),
|
| 589 |
http_proxy_url: document.getElementById('http_proxy_url').value.trim(),
|
| 590 |
show_proxy_and_non_proxy_both: document.getElementById('show_proxy_and_non_proxy_both').checked,
|
|
|
|
| 258 |
</div>
|
| 259 |
</div>
|
| 260 |
|
| 261 |
+
<!-- Payment method -->
|
| 262 |
+
<div style="margin-bottom:1rem">
|
| 263 |
+
<label class="s-label" for="payment_instructions">Payment Instructions
|
| 264 |
+
<span style="font-weight:400;text-transform:none;letter-spacing:0">
|
| 265 |
+
— shown to users when they pick a plan (UPI ID, bank details, etc.)</span>
|
| 266 |
+
</label>
|
| 267 |
+
<textarea id="payment_instructions" class="s-input" rows="4"
|
| 268 |
+
placeholder="e.g. UPI: yourname@okhdfcbank Or PayPal: you@example.com After paying, send the screenshot here.">{{ settings.payment_instructions }}</textarea>
|
| 269 |
+
</div>
|
| 270 |
+
<div style="margin-bottom:1rem">
|
| 271 |
+
<label class="s-label" for="payment_qr_url">Payment QR Image URL
|
| 272 |
+
<span style="font-weight:400;text-transform:none;letter-spacing:0">
|
| 273 |
+
— optional; if set, the bot sends this QR image with the plan</span>
|
| 274 |
+
</label>
|
| 275 |
+
<input type="url" id="payment_qr_url" class="s-input"
|
| 276 |
+
value="{{ settings.payment_qr_url }}"
|
| 277 |
+
placeholder="https://.../upi-qr.png">
|
| 278 |
+
</div>
|
| 279 |
+
|
| 280 |
<!-- Approver IDs -->
|
| 281 |
<label class="s-label">APPROVER_IDS
|
| 282 |
<span style="font-weight:400;text-transform:none;letter-spacing:0">
|
|
|
|
| 604 |
subscription: document.getElementById('subscription').checked,
|
| 605 |
subscription_group_id: parseInt(document.getElementById('subscription_group_id').value || '0', 10),
|
| 606 |
subscription_url: document.getElementById('subscription_url').value.trim(),
|
| 607 |
+
payment_instructions: document.getElementById('payment_instructions').value.trim(),
|
| 608 |
+
payment_qr_url: document.getElementById('payment_qr_url').value.trim(),
|
| 609 |
approver_ids: collectList('approver_ids').map(Number),
|
| 610 |
http_proxy_url: document.getElementById('http_proxy_url').value.trim(),
|
| 611 |
show_proxy_and_non_proxy_both: document.getElementById('show_proxy_and_non_proxy_both').checked,
|