refactor web interface
This commit is contained in:
@ -1,17 +1,32 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}Deploy Hosts File - /etc/hosts Manager{% endblock %}
|
||||
{% block content %}
|
||||
<h2>Deploy Hosts File: "{{ file.title }}"</h2>
|
||||
<form method="post">
|
||||
<div class="form-group">
|
||||
<label>Wybierz hosty do deploy:</label>
|
||||
{% for host in hosts %}
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="hosts" value="{{ host.id }}" id="host{{ host.id }}">
|
||||
<label class="form-check-label" for="host{{ host.id }}">{{ host.hostname }} ({{ host.type }})</label>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success">Deploy Hosts File</button>
|
||||
</form>
|
||||
{% block extra_css %}
|
||||
{{ super() }}
|
||||
<style>
|
||||
.tooltip-inner {
|
||||
max-width: 300px;
|
||||
text-align: left;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div class="card mb-4">
|
||||
<div class="card-header">
|
||||
<h2>Wgraj plik hosts: "{{ file.title }}"</h2>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method="post">
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Wybierz serwery do wgrania:</label>
|
||||
{% for host in hosts %}
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="hosts" value="{{ host.id }}" id="host{{ host.id }}">
|
||||
<label class="form-check-label" for="host{{ host.id }}">{{ host.hostname }} ({{ host.type }})</label>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success">Wgraj plik hosts do serwera</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user