-
Notifications
You must be signed in to change notification settings - Fork 1
/
workflow.html
113 lines (95 loc) · 4.81 KB
/
workflow.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<div class="row">
<div class="col-lg-4">
<div class="help-block">Search by workflow name:</div>
<div class="input-group">
<input type="text" class="search-text form-control" placeholder="Enter workflow name...">
<span class="input-group-btn">
<button class="search-btn btn btn-default" type="button"><span class="glyphicon glyphicon-search"></span></button>
</span>
</div>
</div>
<div class="col-lg-2">
<div class="help-block">Reset:</div>
<div class="input-group">
<button class="reset-btn btn btn-default" type="button">View All</button>
</div>
</div>
<!-- NOTE: for the radio buttons used below for filtering, Firefox persists form control states
(disabledness and checkedness) across page loads. A workaround for this is to use autocomplete="off".
See Mozilla bug #654072 https://bugzilla.mozilla.org/show_bug.cgi?id=654072. -->
<div class="col-lg-3">
<div class="help-block">Filter by inputs:</div>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="Workflows for all input types">
<input class="filter-input-btn" type="radio" value="any" autocomplete="off">Any
</label>
<label class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="Workflows that accept a Darwin Core Archive URL as input">
<input class="filter-input-btn" type="radio" value="dwca" autocomplete="off">DwCA
</label>
<label class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="Workflows that accept a CSV or TSV file as input">
<input class="filter-input-btn" type="radio" value="csv" autocomplete="off">CSV
</label>
</div>
</div>
<div class="col-lg-3">
<div class="help-block">Filter by Darwin Core class:</div>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default">
<input class="filter-class-btn" type="radio" value="any" autocomplete="off">Any
</label>
<!--<label class="btn btn-default">
<input class="filter-class-btn" type="radio" value="occurrence" autocomplete="off">Occurrence
</label>-->
<label class="btn btn-default">
<input class="filter-class-btn" type="radio" value="event" autocomplete="off">Event
</label>
<!--<label class="btn btn-default">
<input class="filter-class-btn" type="radio" value="identification" autocomplete="off">Identification
</label>-->
<label class="btn btn-default">
<input class="filter-class-btn" type="radio" value="location" autocomplete="off">Location
</label>
<!--<label class="btn btn-default">
<input class="filter-class-btn" type="radio" value="taxon" autocomplete="off">Taxon
</label>-->
</div>
</div>
</div>
<hr />
<div id="sortable">
<% _.each(definitions, function(def) { %>
<div class="bs-callout bs-callout-primary" style="padding-left: 3em">
<h4 style="float:left; margin-left: -1em; line-height: 2em;">
<a href="<%= def.documentation %>" target="_blank">
<img src="<%= infoImg %>" />
</a><%= def.title %></h4>
<% _.each(def.alternatives, function(alternative) { %>
<div style="float:left; padding-left: 20px;" >
<a href="#workflow/<%= alternative.name %>" class="btn btn-primary btn-sm">Run with <b><%= alternative.type %> <%= alternative.format %></b> <span class="glyphicon glyphicon-play"></span></a>
</div>
<% }); %>
<div style="float:right;">
<% _.each(def.class, function(dwcClass) { %>
<span class="label label-default">dwc:<%= dwcClass %></span>
<% }) %>
</div>
<div style="clear: both; margin-left: 0.7em; font-size: 1em"><%= def.summary %></div>
</div>
<% }); %>
</div>
<div id="run-modal" class="modal fade" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h3 id="run-modal-title" class="modal-title" id="gridSystemModalLabel">Modal title</h3>
</div>
<div id="run-modal-body" class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button id="run-btn" type="button" class="btn btn-primary">Run Workflow</button>
</div>
</div>
</div>
</div>