2019-03-04 17:21:02 -05:00
|
|
|
<div class="location-block card">
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="form-label"><%- i18n('locations', 'location_label') %> <span class="form-required">*</span></label>
|
|
|
|
<div class="row gutter-xs">
|
|
|
|
<div class="col">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-prepend">
|
|
|
|
<span class="input-group-text">location</span>
|
|
|
|
</span>
|
|
|
|
<input type="text" name="path" class="form-control model" value="<%- path %>" placeholder="<%- i18n('locations', 'path') %>" required>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-auto">
|
|
|
|
<div class="selectgroup">
|
|
|
|
<label class="selectgroup-item">
|
2020-08-14 01:01:09 -04:00
|
|
|
<input type="checkbox" class="selectgroup-input settings-checkbox">
|
2019-03-04 17:21:02 -05:00
|
|
|
<span class="selectgroup-button">
|
|
|
|
<i class="fe fe-settings"></i>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-3 col-md-3">
|
|
|
|
<div class="form-group">
|
2020-08-14 01:01:09 -04:00
|
|
|
<label class="form-label"><%- i18n('proxy-hosts', 'forward-scheme') %></label>
|
2019-03-04 17:21:02 -05:00
|
|
|
<select name="forward_scheme" class="form-control custom-select model" placeholder="http">
|
|
|
|
<option value="http" <%- forward_scheme === 'http' ? 'selected' : '' %>>http</option>
|
|
|
|
<option value="https" <%- forward_scheme === 'https' ? 'selected' : '' %>>https</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-5 col-md-5">
|
|
|
|
<div class="form-group">
|
2020-08-14 01:01:09 -04:00
|
|
|
<label class="form-label"><%- i18n('proxy-hosts', 'forward-host') %> <% if (!static) { %> <span class="form-required">*</span> <% } %> </label>
|
|
|
|
<input type="text" name="forward_host" class="form-control text-monospace model" placeholder="" value="<%- forward_host %>" <%- !static ? 'checked' : '' %> autocomplete="off" maxlength="200">
|
2019-05-08 01:24:57 -04:00
|
|
|
<span style="font-size: 9px;"><%- i18n('proxy-hosts', 'custom-forward-host-help') %></span>
|
2019-03-04 17:21:02 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4 col-md-4">
|
|
|
|
<div class="form-group">
|
2020-08-14 01:01:09 -04:00
|
|
|
<label class="form-label"><%- i18n('proxy-hosts', 'forward-port') %> <% if (!static) { %> <span class="form-required">*</span><% } %> </label>
|
|
|
|
<input name="forward_port" type="number" class="form-control text-monospace model" placeholder="80" value="<%- forward_port %>" <%- !static ? 'checked' : '' %> >
|
2019-03-04 17:21:02 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-08-14 01:01:09 -04:00
|
|
|
<div class="col-sm-5 col-md-5">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="form-label"><%- i18n('proxy-hosts', 'root-dir') %><% if (static) { %> <span class="form-required">*</span><% } %></label>
|
|
|
|
<input type="text" name="root_dir" class="form-control text-monospace model" placeholder="" value="<%- root_dir %>" <%- static ? 'required' : '' %> autocomplete="off" maxlength="200">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-5 col-md-5">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="form-label"><%- i18n('proxy-hosts', 'index-file') %><% if (static) { %> <span class="form-required">*</span><% } %></label>
|
|
|
|
<input type="text" name="index_file" class="form-control text-monospace model" placeholder="" value="<%- index_file %>" <%- static ? 'required' : false %> autocomplete="off" maxlength="200">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-12 col-md-12">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="custom-switch">
|
|
|
|
<input type="checkbox" class="custom-switch-input location-static-checkbox model" name="static" value="1"<%- static ? ' checked' : '' %> >
|
|
|
|
<span class="custom-switch-indicator"></span>
|
|
|
|
<span class="custom-switch-description"><%- i18n('proxy-hosts', 'static') %></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-03-04 17:21:02 -05:00
|
|
|
</div>
|
|
|
|
<div class="row config">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="form-group">
|
|
|
|
<textarea name="advanced_config" rows="8" class="form-control text-monospace model" placeholder="# <%- i18n('all-hosts', 'advanced-warning') %>"><%- advanced_config %></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<a href="#" class="card-link location-delete">
|
|
|
|
<i class="fa fa-trash"></i> <%- i18n('locations', 'delete') %>
|
|
|
|
</a>
|
|
|
|
</div>
|
2020-06-18 16:26:16 -04:00
|
|
|
</div>
|