-
Notifications
You must be signed in to change notification settings - Fork 0
/
_oifits-form.html
108 lines (107 loc) · 6.8 KB
/
_oifits-form.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
<?xml version="1.0" encoding="UTF-8"?>
<tbody xmlns="http://www.w3.org/1999/xhtml" data-template="oifits:granules">
<tr>
<td colspan="4">
<a data-template="helpers:model-value-attribute" data-template-key="oifits.url" data-template-name="href">
<span data-template="oifits:basename" data-template-key="oifits.url"/>
</a>
 
<span class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<span class="glyphicon glyphicon-cog"/> <b class="caret"/>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a class="remove-granule">
<span class="glyphicon glyphicon-remove"/> Remove this file</a>
</li>
</ul>
</span>
 
<a href="#" tabindex="0" data-toggle="checkreport" data-trigger="focus" data-template="helpers:model-value-attribute" data-template-key="oifits.report" data-template-name="data-report">
<span class="glyphicon glyphicon-info-sign"/>
</a>
 
<span data-template="helpers:model-content" data-template-key="oifits.warning"/>
<div class="row">
<div class="col-xs-4">
<label class="col-sm-6 control-label" rel="tooltip" data-original-title="program id (optional)">Proposal ID</label>
<div class="col-sm-6">
<input class="col-sm-3 form-control" name="progid" data-template="helpers:model-value-attribute" data-template-key="oifits.progid" data-template-name="value"/>
</div>
</div>
<div class="col-xs-4">
<label class="col-sm-6 control-label" rel="tooltip" data-original-title="proprosal subid (optional)">Proposal SUBID</label>
<div class="col-sm-6">
<input class="col-sm-3 form-control" name="proposal_subid" data-template="helpers:model-value-attribute" data-template-key="oifits.proposal_subid" data-template-name="value"/>
</div>
</div>
<div class="col-xs-4">
<label class="col-sm-6 control-label" rel="tooltip" data-original-title="obs id (optional)">Observation ID</label>
<div class="col-sm-6">
<input class="form-control" name="obs_id" data-template="helpers:model-value-attribute" data-template-key="oifits.obs_id" data-template-name="value"/>
</div>
</div>
</div>
</td>
<td>
<div data-template="helpers:unless-model-key" data-template-key="skip-oifits-quality-level-selector">
<div data-template="app:data-quality-flags">
<select class="form-control oifits-quality-level-selector" name="quality_level_common_oifits" data-template="helpers:form-control" size="1">
<option data-template="helpers:select-options" data-template-key="data-quality-flags" data-template-sorted="yes"/>
</select>
</div>
</div>
</td>
</tr>
<tr class="granule" data-template="helpers:each" data-template-from="oifits.granules" data-template-to="granule">
<td>
<div data-role="targetselector">
<span data-template="helpers:model-value" data-template-key="granule.target_name"/> - <span data-template="oifits:hms" data-template-key="granule.s_ra"/> <span data-template="oifits:dms" data-template-key="granule.s_dec"/>
<input name="target_name" type="hidden" data-template="helpers:model-value-attribute" data-template-key="granule.target_name" data-template-name="value"/>
<input name="s_ra" type="hidden" data-template="helpers:model-value-attribute" data-template-key="granule.s_ra" data-template-name="value"/>
<input name="s_dec" type="hidden" data-template="helpers:model-value-attribute" data-template-key="granule.s_dec" data-template-name="value"/>
</div>
</td>
<td>
<div data-role="instrumentselector">
<span data-template="helpers:model-value" data-template-key="granule.facility_name"/> - <span data-template="helpers:model-value" data-template-key="granule.instrument_name"/>
<input name="facility_name" type="hidden" data-template="helpers:model-value-attribute" data-template-key="granule.facility_name" data-template-name="value"/>
<input name="instrument_name" type="hidden" data-template="helpers:model-value-attribute" data-template-key="granule.instrument_name" data-template-name="value"/>
</div>
</td>
<td>
<div data-role="modeselector">
<span data-template="helpers:model-value" data-template-key="granule.instrument_mode"/>
<input name="instrument_mode" type="hidden" data-template="helpers:model-value-attribute" data-template-key="granule.instrument_mode" data-template-name="value"/>
</div>
</td>
<td>
<p class="form-control-static">
<span data-template="oifits:date" data-template-key="granule.t_min"/> - <span data-template="oifits:date" data-template-key="granule.t_max"/>
</p>
<input name="t_min" type="hidden" data-template="helpers:model-value-attribute" data-template-key="granule.t_min" data-template-name="value"/>
<input name="t_max" type="hidden" data-template="helpers:model-value-attribute" data-template-key="granule.t_max" data-template-name="value"/>
</td>
<td>
<div data-template="helpers:unless-model-key" data-template-key="skip-quality-level-selector">
<div data-template="app:data-quality-flags">
<select class="form-control quality-level-selector" name="quality_level" data-template="helpers:form-control" size="1">
<option data-template="helpers:select-options" data-template-key="data-quality-flags" data-template-sorted="yes"/>
</select>
</div>
</div>
</td>
<input type="hidden" data-template="oifits:hidden-inputs"/>
</tr>
<tr data-template="helpers:unless-model-key" data-template-key="oifits.granules">
<td colspan="5">
<span data-template="helpers:unless-model-key" data-template-key="oifits.message">
No granules.
</span>
<span data-template="helpers:if-model-key" data-template-key="oifits.message">
<span data-template="helpers:model-value" data-template-key="oifits.message"/>
</span>
</td>
</tr>
</tbody>