blob: 07f9e7723c8d5dee65bc36db136671a7c9e75251 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001<div role="tabpanel" class="tab-pane fade" id="tab-config-oauth2" role="tabpanel" aria-labelledby="tab-config-oauth2">
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-oauth2" data-bs-toggle="collapse" aria-controls="ollapse-tab-config-oauth2">
5 {{ lang.admin.oauth2_apps }}
6 </button>
7 <span class="d-none d-md-block">{{ lang.admin.oauth2_apps }}</span>
8 </div>
9 <div id="collapse-tab-config-oauth2" class="card-body collapse" data-bs-parent="#admin-content">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010010 <p>{{ lang.admin.oauth2_info|raw }}</p>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010011 <table id="oauth2clientstable" class="table table-striped dt-responsive w-100"></table>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010012 <div class="mass-actions-admin">
13 <div class="btn-group">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010014 <a class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary" id="toggle_multi_select_all" data-id="oauth2_clients" href="#"><i class="bi bi-check-all"></i> {{ lang.mailbox.toggle_all }}</a>
15 <a class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary dropdown-toggle" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</a>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010016 <ul class="dropdown-menu">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010017 <li><a class="dropdown-item" data-action="delete_selected" data-id="oauth2_clients" data-api-url='delete/oauth2-client' href="#">{{ lang.mailbox.remove }}</a></li>
18 <li><hr class="dropdown-divider"></li>
19 <li><a class="dropdown-item" data-action="edit_selected" data-id="oauth2_clients" data-api-url='edit/oauth2-client' data-api-attr='{"revoke_tokens":"1"}' href="#">{{ lang.admin.oauth2_revoke_tokens }}</a></li>
20 <li><hr class="dropdown-divider"></li>
21 <li><a class="dropdown-item" data-action="edit_selected" data-id="oauth2_clients" data-api-url='edit/oauth2-client' data-api-attr='{"renew_secret":"1"}' href="#">{{ lang.admin.oauth2_renew_secret }}</a></li>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010022 </ul>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010023 <a class="btn btn-sm d-block d-sm-inline btn-success" data-id="add_oauth2_client" data-bs-toggle="modal" data-bs-target="#addOAuth2ClientModal" href="#"><i class="bi bi-plus-lg"></i> {{ lang.admin.oauth2_add_client }}</a>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010024 </div>
25 </div>
26 </div>
27 </div>
28</div>