48 lines
1.8 KiB
Twig
48 lines
1.8 KiB
Twig
{% extends "base.html.twig" %}
|
|
|
|
{% block content %}
|
|
<form class="form-horizontal" method="post" action="/addjob.php">
|
|
{% if not error == "" %}
|
|
<div class="alert alert-danger fade in">
|
|
<a href="#" class="close" data-dismiss="alert">×</a>
|
|
<strong>Error!</strong> {{ error }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if not message == "" %}
|
|
<div class="alert alert-success fade in">
|
|
<a href="#" class="close" data-dismiss="alert">×</a>
|
|
{{ message }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="form-group col-sm-12">
|
|
<label for="name">Name</label>
|
|
<input type="text" name="name" class="form-control" id="name" placeholder="blah">
|
|
</div>
|
|
<div class="form-group col-sm-12">
|
|
<label for="url">url</label>
|
|
<input type="url" name="url" class="form-control" id="url" placeholder="https://">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<div class="col-sm-2">
|
|
<label for="name">Delay (in seconds)</label>
|
|
<select class="form-control" id="patternDropdown">
|
|
<option data-val="60"><a href="#">Every minute</a></option>
|
|
<option data-val="3600"><a href="#">Every hour</a></option>
|
|
<option data-val="86400"><a href="#">Every day</a></option>
|
|
<option data-val="604800"><a href="#">Every week</a></option>
|
|
<option data-val="2419200"><a href="#">Every 4 weeks</a></option>
|
|
<option data-val="custom"><a href="#">Custom</a></option>
|
|
</select>
|
|
</div>
|
|
<div class="col-sm-10">
|
|
<label for="name"> </label>
|
|
<input type="number" class="form-control" id="delay" name="delay">
|
|
</div>
|
|
</div>
|
|
<button type="submit" class="btn btn-default">Submit</button>
|
|
</form>
|
|
|
|
{% endblock %} |