first commit
This commit is contained in:
48
templates/index.html
Normal file
48
templates/index.html
Normal file
@@ -0,0 +1,48 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
Select Playbook and arguments
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form id="ansibleForm">
|
||||
|
||||
<label for="playbook">Playbook <span style="color:red">★</span></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>
|
||||
<input type="text" name="hosts" class="form-control" placeholder="/path/to/inventory">
|
||||
<label for="argument">Arguments</label>
|
||||
<input type="text" name="argument" class="form-control" placeholder="-e "><br>
|
||||
<label for="limitation">Limitation</label>
|
||||
<input type="text" name="limitation" class="form-control" placeholder="-l "><br>
|
||||
<br>
|
||||
<button type="button" class="btn btn-info" onclick="submitForm()">Run</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
Select Playbook to edit:
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form id="fileedit" action="/edit" method="post">
|
||||
|
||||
<label for="playbook">Playbook:</label>
|
||||
<select id="playbook" class="form-control" name="file_edit" placeholder="Profile" required>
|
||||
{%for file in list %}
|
||||
<option value={{ file }}>{{ file }}</option>
|
||||
{%endfor%}
|
||||
</select>
|
||||
<br>
|
||||
<button type="submit" class="btn btn-info">Edit</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user