Refonte
This commit is contained in:
@@ -14,7 +14,10 @@
|
||||
<link href="{{url_for('static', filename = 'style.css')}}" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<title>Ansinterface</title>
|
||||
<center><h1 class="display-6">Ansinterface</h1></center>
|
||||
<div class="container">
|
||||
<br><br>
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
<script>
|
||||
|
||||
@@ -1,11 +1,16 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<a href="/">< Back</a>
|
||||
<br>
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
Editing <code>{{ file_name }}</code>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method="post" action="{{ url_for('edit_file') }}">
|
||||
<textarea id="code" name="file_content" class="form-control numbered">{{ file_content }}</textarea>
|
||||
<textarea id="code" name="file_content" class="form-control numbered">{{ file_content }}</textarea><br>
|
||||
<input type="hidden" id="file_path" name="file_path" value="{{ filepath }}">
|
||||
<a href="/" class="btn btn-info">Back</a>
|
||||
<button type="submit" value="Save Changes" class="btn btn-info" >Save</button>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
@@ -7,18 +7,30 @@
|
||||
<div class="card-body">
|
||||
<form id="ansibleForm">
|
||||
|
||||
<label for="playbook">Playbook <span style="color:red">★</span></label>
|
||||
<label for="playbook">Playbook <sup style="color:red">★</sup></label>
|
||||
<select id="playbook" class="form-control" name="playbook" placeholder="Profile" required>
|
||||
{%for file in list %}
|
||||
<option value={{ file }}>{{ file }}</option>
|
||||
{%endfor%}
|
||||
</select>
|
||||
<label for="hosts">Hosts:</label>
|
||||
<!-- -->
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<label for="hosts">Hosts</label>
|
||||
<input type="text" name="hosts" class="form-control" placeholder="/path/to/inventory">
|
||||
<div class="notes">If empty will use default settings.</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label for="argument">Arguments</label>
|
||||
<input type="text" name="argument" class="form-control" placeholder="-e "><br>
|
||||
<input type="text" name="argument" class="form-control" placeholder="-e ">
|
||||
</div>
|
||||
<div class="col">
|
||||
|
||||
<label for="limitation">Limitation</label>
|
||||
<input type="text" name="limitation" class="form-control" placeholder="-l "><br>
|
||||
<input type="text" name="limitation" class="form-control" placeholder="-l ">
|
||||
<div class="notes">Separate your servers with coma (example: localhost,server1...).</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<button type="button" class="btn btn-info" onclick="submitForm()">Run</button>
|
||||
</form>
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<a href="/">< Back</a>
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
Command output
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div id="output" class="numbered"></div>
|
||||
<br>
|
||||
<a href="/" class="btn btn-info">Back</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user