blob: c0c7312bf3f1773555cac4272bf3eae6c82ba848 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{% extends "lava_scheduler_app/_content.html" %}
{% block extrahead %}
{{ block.super }}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}lava_scheduler_app/css/jquery-linedtextarea.css"/>
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}lava_scheduler_app/css/scheduler.css"/>
<script type="text/javascript" src="{{ STATIC_URL }}lava_scheduler_app/js/jquery-linedtextarea.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}lava_scheduler_app/js/job-submit.js"></script>
{% endblock %}
{% block content %}
<h2>Submit Job</h2>
{% if is_authorized %}
<p>Paste your job definition JSON here. Alternatively, you can paste a URL to your job definition file:</p>
<form action="" method="post">
{% csrf_token %}
<textarea id="json-input" placeholder="Enter your job definition or link to a job definition here.">
</textarea>
<input type="submit" value="Submit">
</form>
{% else %}
<h3>
Error:
</h3>
<p>Permission denied. You not have the required permissions to submit new jobs.
<br>
Please contact the administrators.</p>
{% endif %}
{% endblock %}
|