Revision 5074
Added by daigle about 15 years ago
scheduleWorkflowRun.jsp | ||
---|---|---|
1 |
<%@ page language="java" %> |
|
1 |
<%@ page language="java" %> |
|
2 |
<%@ page import="java.util.TimeZone" %> |
|
3 |
<%@ page import="edu.ucsb.nceas.metacat.AccessControlInterface" %> |
|
4 |
<%@ page import="edu.ucsb.nceas.metacat.PermissionController" %> |
|
5 |
<%@ page import="edu.ucsb.nceas.utilities.LSIDUtil" %> |
|
2 | 6 |
<% |
3 | 7 |
/* |
4 | 8 |
* '$RCSfile$' |
... | ... | |
23 | 27 |
* along with this program; if not, write to the Free Software |
24 | 28 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
25 | 29 |
*/ |
30 |
|
|
31 |
String karLsid = request.getParameter("karid"); |
|
32 |
String karId = LSIDUtil.getDocId(karLsid, false); |
|
33 |
PermissionController permissionController = new PermissionController(karId); |
|
34 |
boolean hasSchedulePermissions = |
|
35 |
permissionController.hasPermission(request.getSession().getId(), AccessControlInterface.READSTRING); |
|
36 |
|
|
26 | 37 |
%> |
27 | 38 |
<%@ include file="settings.jsp"%> |
28 | 39 |
|
... | ... | |
37 | 48 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_SKINS_URL%>/sanparks/sanparks.js"></script> |
38 | 49 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/style/skins/sanparks/searchWorkflowPathQuery.js"></script> |
39 | 50 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/branding.js"></script> |
51 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/widgets/form-fields-widget.js"></script> |
|
52 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/prototype-1.5.1.1/prototype.js"></script> |
|
53 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/ajax-utils.js"></script> |
|
54 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/scheduleWorkflow.js"></script> |
|
40 | 55 |
</head> |
41 |
<body class="main-section"> |
|
56 |
<body class="main-section" onload="getWorkflowRunSection('<%=SERVLET_URL%>','<%=request.getParameter("workflowid")%>','<%=request.getParameter("workflowname")%>','workflow-run-content')">
|
|
42 | 57 |
<jsp:include page="header2.jsp"/> |
43 | 58 |
|
44 | 59 |
<!-- Main content --> |
45 | 60 |
<jsp:include page="left-nav2.jsp"/> |
46 |
<jsp:include page="../../common/scheduleWorkflowRunSection.jsp" /> |
|
61 |
|
|
62 |
<div class=content-section> |
|
63 |
<div class="content-subsection" id="workflow-summary-section"> |
|
64 |
<% |
|
65 |
if (! hasSchedulePermissions) { |
|
66 |
%> |
|
67 |
<div class="warning-header">You have view permissions only for this workflow</div> |
|
68 |
<% |
|
69 |
} |
|
70 |
%> |
|
71 |
<div class="result-header-emphasis">Workflow Summary</div> |
|
72 |
<div class="form-input-row" id="form-base-row"> |
|
73 |
<div class="summary-field" id='workflow-name-label' >Name: </div> |
|
74 |
<% |
|
75 |
if (request.getParameter("workflowname") != null) { |
|
76 |
%> |
|
77 |
<div class="summary-value" id='workflow-name-value' ><%=request.getParameter("workflowname")%></div> |
|
78 |
<% |
|
79 |
} |
|
80 |
%> |
|
81 |
<br> |
|
82 |
<div class="summary-field" id='workflow-lsid-label' >LSID: </div> |
|
83 |
<% |
|
84 |
if (request.getParameter("workflowid") != null) { |
|
85 |
%> |
|
86 |
<div class="summary-value" id='workflow-lsid-value' ><%=request.getParameter("workflowid")%></div> |
|
87 |
<% |
|
88 |
} |
|
89 |
%> |
|
90 |
</div> |
|
91 |
</div> |
|
92 |
<div class="content-subsection" id="schedule-section"> |
|
93 |
<div class="result-header-emphasis">Schedule Workflow </div> |
|
94 |
<form action="<%=SERVLET_URL%>" name="workflowScheduler" id="workflowScheduler"> |
|
95 |
<input name="qformat" value="sanparks" type="hidden" /> |
|
96 |
<input name="action" value="scheduleWorkflow" type="hidden" /> |
|
97 |
<input name="forwardto" value="scheduleWorkflowRun.jsp" type="hidden" /> |
|
98 |
<% |
|
99 |
if (request.getParameter("workflowid") != null) { |
|
100 |
%> |
|
101 |
<input name='workflowid' value='<%=request.getParameter("workflowid")%>' type='hidden' /> |
|
102 |
<% |
|
103 |
} |
|
104 |
if (request.getParameter("karid") != null) { |
|
105 |
%> |
|
106 |
<input name='karid' value='<%=request.getParameter("karid")%>' type='hidden' /> |
|
107 |
<% |
|
108 |
} |
|
109 |
if (request.getParameter("workflowname") != null) { |
|
110 |
%> |
|
111 |
<input name='workflowname' value='<%=request.getParameter("workflowname")%>' type='hidden' /> |
|
112 |
<% |
|
113 |
} |
|
114 |
%> |
|
115 |
<div class="form-input-row"> |
|
116 |
<div class="field-label" id='start-time-label' >Start Time: </div> |
|
117 |
<input class="date-input" name='starttime' id='starttime' /> |
|
118 |
<div class="field-suffix"><%= TimeZone.getDefault().getDisplayName(true, TimeZone.SHORT) %> (mm/dd/yyyy hh:mm:ss)</div> |
|
119 |
</div> |
|
120 |
<div class="form-input-row"> |
|
121 |
<div class="field-label" id='start-time-label' >End Time: </div> |
|
122 |
<input class="date-input" name='endtime' id='endtime' /> |
|
123 |
<div class="field-suffix"><%= TimeZone.getDefault().getDisplayName(true, TimeZone.SHORT) %> (mm/dd/yyyy hh:mm:ss) (optional)</div> |
|
124 |
</div> |
|
125 |
<div class="form-input-row"> |
|
126 |
<div class="field-label" id='interval-label' >Interval: </div> |
|
127 |
<input class="int-input" name='intervalvalue' id='intervalvalue' /> |
|
128 |
<select class="dropdown-input" name='intervalunit'> |
|
129 |
<option name="seconds" value="s">seconds</option> |
|
130 |
<option name="minutes" value="m">minutes</option> |
|
131 |
<option name="hours" value="h">hours</option> |
|
132 |
<option name="days" value="d">days</option> |
|
133 |
</select> |
|
134 |
</div> |
|
135 |
<br> <br> |
|
136 |
<input class="submit-button" value="Schedule" type="submit" |
|
137 |
<% |
|
138 |
if (! hasSchedulePermissions) { |
|
139 |
%> |
|
140 |
disabled="disabled" |
|
141 |
<% |
|
142 |
} |
|
143 |
%> |
|
144 |
> |
|
145 |
</form> |
|
146 |
</div> |
|
147 |
<div class="content-subsection" id="workflow-run-section"> |
|
148 |
<div class="result-header-emphasis">Workflow Run Schedule</div> |
|
149 |
<div class="workflow-run-content" id="workflow-run-content"></div> |
|
150 |
</div> |
|
151 |
</div> |
|
47 | 152 |
|
48 | 153 |
<!-- Footer Content --> |
49 | 154 |
<jsp:include page="footer2.jsp" /> |
Also available in: Unified diff
move worflow page sections from common into the sanparks skin files