2018-07-24 02:56:39 -04:00
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2018-08-15 23:08:56 -04:00
|
|
|
<h5 class="modal-title"><%- i18n('access-lists', 'form-title', {id: id}) %></h5>
|
2018-07-24 02:56:39 -04:00
|
|
|
<button type="button" class="close cancel" aria-label="Close" data-dismiss="modal"> </button>
|
|
|
|
</div>
|
2020-04-10 20:33:14 -04:00
|
|
|
<div class="modal-body has-tabs">
|
2018-07-24 02:56:39 -04:00
|
|
|
<form>
|
2020-04-10 20:33:14 -04:00
|
|
|
<ul class="nav nav-tabs" role="tablist">
|
|
|
|
<li role="presentation" class="nav-item"><a href="#details" aria-controls="tab1" role="tab" data-toggle="tab" class="nav-link active show" aria-selected="true"><i class="fe fe-zap"></i> <%- i18n('access-lists', 'details') %></a></li>
|
|
|
|
<li role="presentation" class="nav-item"><a href="#auth" aria-controls="tab4" role="tab" data-toggle="tab" class="nav-link" aria-selected="false"><i class="fe fe-users"></i> <%- i18n('access-lists', 'authorization') %></a></li>
|
2020-04-10 23:22:01 -04:00
|
|
|
<li role="presentation" class="nav-item"><a href="#access" aria-controls="tab2" role="tab" data-toggle="tab" class="nav-link" aria-selected="false"><i class="fe fe-radio"></i> <%- i18n('access-lists', 'access') %></a></li>
|
2020-04-10 20:33:14 -04:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="tab-content">
|
|
|
|
<!-- Details -->
|
|
|
|
<div role="tabpanel" class="tab-pane active show" id="details">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12 col-md-12">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="form-label"><%- i18n('str', 'name') %> <span class="form-required">*</span></label>
|
|
|
|
<input type="text" name="name" class="form-control" value="<%- name %>" required>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-11 03:26:54 -04:00
|
|
|
|
|
|
|
<div class="col-sm-6 col-md-6">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="custom-switch">
|
2020-04-21 21:11:20 -04:00
|
|
|
<input type="checkbox" class="custom-switch-input" name="satisfy_any" value="1"<%- typeof satisfy_any !== 'undefined' && satisfy_any ? ' checked' : '' %>>
|
2020-04-11 03:26:54 -04:00
|
|
|
<span class="custom-switch-indicator"></span>
|
|
|
|
<span class="custom-switch-description"><%- i18n('access-lists', 'satisfy-any') %></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-10-14 05:17:25 -04:00
|
|
|
|
|
|
|
<div class="col-sm-6 col-md-6">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="custom-switch">
|
|
|
|
<input type="checkbox" class="custom-switch-input" name="pass_auth" value="1"<%- typeof pass_auth !== 'undefined' && pass_auth ? ' checked' : '' %>>
|
|
|
|
<span class="custom-switch-indicator"></span>
|
|
|
|
<span class="custom-switch-description"><%- i18n('access-lists', 'pass-auth') %></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-24 02:56:39 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-10 20:33:14 -04:00
|
|
|
|
|
|
|
<!-- Authorization -->
|
|
|
|
<div class="tab-pane" id="auth">
|
2021-03-25 14:59:07 -04:00
|
|
|
<p>
|
|
|
|
Basic Authorization via
|
|
|
|
<a href="https://nginx.org/en/docs/http/ngx_http_auth_basic_module.html">
|
|
|
|
Nginx HTTP Basic Authentication
|
|
|
|
</a>
|
|
|
|
</p>
|
2020-04-10 20:33:14 -04:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-6 col-md-6">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="form-label"><%- i18n('str', 'username') %></label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6 col-md-6">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="form-label"><%- i18n('str', 'password') %></label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-08-18 03:16:23 -04:00
|
|
|
</div>
|
2020-04-21 21:11:20 -04:00
|
|
|
|
2020-04-10 20:33:14 -04:00
|
|
|
<div class="items"><!-- items --></div>
|
2021-03-25 14:59:07 -04:00
|
|
|
<div class="btn-list justify-content-end">
|
|
|
|
<button type="button" class="btn btn-teal auth_add"><%- i18n('access-lists', 'auth-add') %></button>
|
|
|
|
</div>
|
2018-08-18 03:16:23 -04:00
|
|
|
</div>
|
2020-04-10 20:33:14 -04:00
|
|
|
|
2020-04-10 23:22:01 -04:00
|
|
|
<!-- Access -->
|
|
|
|
<div class="tab-pane" id="access">
|
2021-03-25 14:59:07 -04:00
|
|
|
<p>
|
|
|
|
IP Address Whitelist/Blacklist via
|
|
|
|
<a href="https://nginx.org/en/docs/http/ngx_http_access_module.html">
|
|
|
|
Nginx HTTP Access
|
|
|
|
</a>
|
|
|
|
</p>
|
2020-04-10 20:33:14 -04:00
|
|
|
<div class="clients"><!-- clients --></div>
|
2020-04-13 22:52:44 -04:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 col-md-3">
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="text" class="form-control disabled" value="deny" disabled>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-9 col-md-9">
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="text" class="form-control disabled" value="all" disabled>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-10 20:33:14 -04:00
|
|
|
<div class="text-muted">Note that the <code>allow</code> and <code>deny</code> directives will be applied in the order they are defined.</div>
|
2021-03-25 14:59:07 -04:00
|
|
|
<div class="btn-list justify-content-end">
|
|
|
|
<button type="button" class="btn btn-teal access_add"><%- i18n('access-lists', 'access-add') %></button>
|
|
|
|
</div>
|
2018-08-18 03:16:23 -04:00
|
|
|
</div>
|
|
|
|
|
2020-04-10 20:33:14 -04:00
|
|
|
</div>
|
2018-07-24 02:56:39 -04:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-secondary cancel" data-dismiss="modal"><%- i18n('str', 'cancel') %></button>
|
|
|
|
<button type="button" class="btn btn-teal save"><%- i18n('str', 'save') %></button>
|
|
|
|
</div>
|
|
|
|
</div>
|