blob: c8f2e929265fd6303f43f78b4a211c31ef0924b7 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001<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 Benkard12a57352021-12-28 18:02:04 +010010 <p>{{ lang.admin.quota_notifications_info }}</p>
11 <form class="form" role="form" data-id="quota_notification" method="post">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010012 <div class="row mb-4">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010013 <div class="col-sm-6">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010014 <div>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010015 <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 Benkard1ba53812022-12-27 17:32:58 +010020 <div>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010021 <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 Benkard1ba53812022-12-27 17:32:58 +010028 <legend data-bs-target="#quota_template" style="cursor:pointer" unselectable="on" data-bs-toggle="collapse">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010029 <i style="font-size:10pt;" class="bi bi-plus-square"></i> {{ lang.admin.quarantine_notification_html|raw }}
30 </legend>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010031 <hr />
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010032 <div id="quota_template" class="collapse">
33 <!-- <small>{{ lang.admin.quota_notifications_vars }}</small><br><br>-->
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010034 <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 Benkard12a57352021-12-28 18:02:04 +010035 </div>
36 </div>
37 </div>
38 <div class="row">
39 <div class="col-sm-10">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010040 <div>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010041 <br>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010042 <a type="button" class="btn btn-sm d-block d-sm-inline btn-success" data-action="edit_selected"
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010043 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>