Fork project
This commit is contained in:
26
templates/config/limits.config.html
Normal file
26
templates/config/limits.config.html
Normal file
@ -0,0 +1,26 @@
|
||||
<div class="tab-pane fade" id="limits" role="tabpanel">
|
||||
{% for config, val in {
|
||||
"Max Container Count": ("docker_max_container_count", "The maximum number of countainers allowed on the server"),
|
||||
"Max Renewal Times": ("docker_max_renew_count", "The maximum times a user is allowed to renew a container"),
|
||||
"Docker Container Timeout": ("docker_timeout", "A container times out after [timeout] seconds."),
|
||||
}.items() %}
|
||||
{% set value = get_config('whale:' + val[0]) %}
|
||||
<div class="form-group">
|
||||
<label for="{{ val[0].replace('_', '-') }}">
|
||||
{{ config }}
|
||||
<small class="form-text text-muted">
|
||||
{{ val[1] }}
|
||||
</small>
|
||||
</label>
|
||||
<input type="text" class="form-control"
|
||||
id="{{ val[0].replace('_', '-') }}" name="{{ 'whale:' + val[0] }}"
|
||||
{% if value != None %}value="{{ value }}"{% endif %}>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
<div class="submit-row float-right">
|
||||
<button type="submit" tabindex="0" class="btn btn-md btn-primary btn-outlined">
|
||||
Submit
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user