Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 1 | <div role="tabpanel" class="tab-pane fade" id="tab-config-quota" role="tabpanel" aria-labelledby="tab-config-quota"> |
| 2 | <div class="card mb-4"> |
| 3 | <div class="card-header d-flex fs-5"> |
| 4 | <button class="btn d-md-none flex-grow-1 text-start" data-bs-target="#collapse-tab-config-quota" data-bs-toggle="collapse" aria-controls="ollapse-tab-config-quota"> |
| 5 | {{ lang.admin.quota_notifications }} |
| 6 | </button> |
| 7 | <span class="d-none d-md-block">{{ lang.admin.quota_notifications }}</span> |
| 8 | </div> |
| 9 | <div id="collapse-tab-config-quota" class="card-body collapse" data-bs-parent="#admin-content"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 10 | <p>{{ lang.admin.quota_notifications_info }}</p> |
| 11 | <form class="form" role="form" data-id="quota_notification" method="post"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 12 | <div class="row mb-4"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 13 | <div class="col-sm-6"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 14 | <div> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 15 | <label for="quota_notification_sender">{{ lang.admin.quota_notification_sender }}:</label> |
| 16 | <input type="email" class="form-control" id="quota_notification_sender" name="sender" value="{{ qn_data.sender }}" placeholder="quota-warning@localhost"> |
| 17 | </div> |
| 18 | </div> |
| 19 | <div class="col-sm-6"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 20 | <div> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 21 | <label for="quota_notification_subject">{{ lang.admin.quota_notification_subject }}:</label> |
| 22 | <input type="text" class="form-control" id="quota_notification_subject" name="subject" value="{{ qn_data.subject }}" placeholder="Quota warning"> |
| 23 | </div> |
| 24 | </div> |
| 25 | </div> |
| 26 | <div class="row"> |
| 27 | <div class="col-sm-12"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 28 | <legend data-bs-target="#quota_template" style="cursor:pointer" unselectable="on" data-bs-toggle="collapse"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 29 | <i style="font-size:10pt;" class="bi bi-plus-square"></i> {{ lang.admin.quarantine_notification_html|raw }} |
| 30 | </legend> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 31 | <hr /> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 32 | <div id="quota_template" class="collapse"> |
| 33 | <!-- <small>{{ lang.admin.quota_notifications_vars }}</small><br><br>--> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 34 | <textarea autocorrect="off" spellcheck="false" autocapitalize="none" class="form-control textarea-code" rows="20" name="html_tmpl">{{ qn_data.html_tmpl|raw }}</textarea> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 35 | </div> |
| 36 | </div> |
| 37 | </div> |
| 38 | <div class="row"> |
| 39 | <div class="col-sm-10"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 40 | <div> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 41 | <br> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 42 | <a type="button" class="btn btn-sm d-block d-sm-inline btn-success" data-action="edit_selected" |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 43 | data-item="quota_notification" |
| 44 | data-id="quota_notification" |
| 45 | data-api-url='edit/quota_notification' |
| 46 | data-api-attr='{}'><i class="bi bi-check-lg"></i> {{ lang.user.save_changes }}</a> |
| 47 | </div> |
| 48 | </div> |
| 49 | </div> |
| 50 | </form> |
| 51 | </div> |
| 52 | </div> |
| 53 | </div> |