/
trigger.html
57 lines (51 loc) · 2.27 KB
/
trigger.html
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{#
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
#}
{% extends base_template %}
{% from 'appbuilder/dag_docs.html' import dag_docs %}
{% block head_css %}
{{ super() }}
<link rel="stylesheet" type="text/css" href="{{ url_for_asset('codemirror.css') }}">
<link rel="stylesheet" type="text/css" href="{{ url_for_asset('lint.css') }}">
{% endblock %}
{% block content %}
{{ super() }}
<h2>Trigger DAG: {{ dag_id }}</h2>
{{ dag_docs(doc_md) }}
<form method="POST">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<input type="hidden" name="dag_id" value="{{ dag_id }}">
<input type="hidden" name="origin" value="{{ origin }}">
<div class="form-group">
<label for="conf">Configuration JSON (Optional, must be a dict object)</label>
<textarea class="form-control" name="conf" id="json">{{ conf }}</textarea>
</div>
<p>
To access configuration in your DAG use <code>{{ '{{ dag_run.conf }}' }}</code>.
</p>
<button type="submit" class="btn btn-primary">Trigger</button>
<button type="button" class="btn" onclick="location.href = '{{ origin }}'; return false">Cancel</button>
</form>
{% endblock %}
{% block tail_js %}
<script src="{{ url_for_asset('codemirror.js') }}"></script>
<script src="{{ url_for_asset('javascript.js') }}"></script>
<script src="{{ url_for_asset('lint.js') }}"></script>
<script src="{{ url_for_asset('javascript-lint.js') }}"></script>
<script src="{{ url_for_asset('jshint.js') }}"></script>
<script src="{{ url_for_asset('trigger.js') }}"></script>
{{ super() }}
{% endblock %}