2018-02-04 12:41:08 +01:00
|
|
|
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
|
2018-02-04 19:29:04 +01:00
|
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
|
|
|
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui"%>
|
|
|
|
<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui"%>
|
|
|
|
<%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme"%>
|
|
|
|
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
|
|
|
|
<%@page import="com.liferay.portal.kernel.servlet.SessionErrors"%>
|
2018-02-07 15:36:37 +01:00
|
|
|
<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet"%>
|
2018-02-04 12:41:08 +01:00
|
|
|
|
|
|
|
<portlet:defineObjects />
|
2018-02-04 19:29:04 +01:00
|
|
|
<liferay-theme:defineObjects />
|
2018-02-07 15:36:37 +01:00
|
|
|
<%
|
|
|
|
String wpExplorerId = "workspaceexplorerportlet_WAR_workspaceexplorerportlet";
|
|
|
|
%>
|
2018-02-04 19:29:04 +01:00
|
|
|
|
2018-02-07 15:36:37 +01:00
|
|
|
<%
|
|
|
|
if (SessionErrors.contains(renderRequest.getPortletSession(), "dataset-form-error")) {
|
|
|
|
%>
|
|
|
|
<liferay-ui:error key="dataset-form-error"
|
|
|
|
message="Dataset experiment form submit had an issue, Please try again." />
|
|
|
|
<%
|
|
|
|
}
|
|
|
|
%>
|
2018-02-04 19:29:04 +01:00
|
|
|
|
2018-02-07 15:36:37 +01:00
|
|
|
<portlet:actionURL var="addExperimentActionURL" windowState="maximized"
|
|
|
|
name="addExperiment">
|
2018-02-04 19:29:04 +01:00
|
|
|
</portlet:actionURL>
|
|
|
|
|
|
|
|
<liferay-portlet:renderURL var="wpExplorerPopupURL"
|
|
|
|
portletName="workspaceexplorerportlet_WAR_workspaceexplorerportlet"
|
2018-02-07 15:36:37 +01:00
|
|
|
windowState="<%=LiferayWindowState.POP_UP.toString()%>">
|
2018-02-04 19:29:04 +01:00
|
|
|
</liferay-portlet:renderURL>
|
|
|
|
|
|
|
|
<portlet:renderURL var="maximizedState"
|
|
|
|
windowState="<%=LiferayWindowState.MAXIMIZED.toString()%>" />
|
|
|
|
<portlet:renderURL var="normalState"
|
|
|
|
windowState="<%=LiferayWindowState.NORMAL.toString()%>" />
|
|
|
|
|
|
|
|
<div id="ciccio"></div>
|
|
|
|
<c:set var="maximised" scope="session"
|
|
|
|
value="${renderRequest.getWindowState().toString().equalsIgnoreCase('maximized')}" />
|
|
|
|
|
|
|
|
<c:choose>
|
|
|
|
<c:when test="${not maximised}">
|
|
|
|
<div style="width: 100%; text-align: center; color: #3B5998;">
|
|
|
|
<a class="btn btn-link" href="${maximizedState}"><i
|
2018-02-07 17:13:19 +01:00
|
|
|
class="icon icon-cloud-upload icon-3x"></i></a>
|
2018-02-04 19:29:04 +01:00
|
|
|
</div>
|
|
|
|
</c:when>
|
|
|
|
<c:otherwise>
|
|
|
|
<a class="btn btn-link btn-large" href="${normalState}"><i
|
|
|
|
class="icon icon-angle-left"></i> Back (Cancel)</a>
|
|
|
|
<div
|
|
|
|
style="width: 100%; text-align: left; padding: 10px; color: #3B5998;">
|
2018-02-07 15:36:37 +01:00
|
|
|
<aui:form action="<%=addExperimentActionURL%>" method="post" name="fm">
|
|
|
|
<aui:input name="method_name" label="Dataset/Method name" value=""
|
2018-02-04 19:29:04 +01:00
|
|
|
required="true" style="width:90%;" />
|
|
|
|
<aui:input type="textarea" rows="3" name="people_institutions"
|
|
|
|
label="Involved people and or institutions" value=""
|
|
|
|
required="true" style="width:90%;" />
|
2018-02-07 15:36:37 +01:00
|
|
|
<aui:input type="textarea" rows="10" name="demo_tutorial"
|
|
|
|
label="Description + Demo/Tutorial, 2 pages max" value=""
|
|
|
|
required="true" style="width:90%;" />
|
|
|
|
<a class="btn btn-primary"
|
|
|
|
href="javascript:showWPPopup('<%=wpExplorerPopupURL%>');" style="margin: 10px 0;"><i
|
|
|
|
class="icon-paper-clip icon-white"></i> Select file to attach</a>
|
|
|
|
<div id="attachedFiles"></div>
|
2018-02-04 19:29:04 +01:00
|
|
|
<aui:input name="experiment_tags" label="Keywords (Comma separated)"
|
|
|
|
value="" required="false" style="width:90%;" />
|
|
|
|
<aui:button-row>
|
2018-02-07 15:36:37 +01:00
|
|
|
<a class="btn" href="${normalState}"><i class="icon-remove"></i>
|
|
|
|
Cancel</a>
|
2018-02-04 19:29:04 +01:00
|
|
|
<aui:button type="submit" value="Submit" />
|
|
|
|
</aui:button-row>
|
|
|
|
</aui:form>
|
|
|
|
</div>
|
|
|
|
</c:otherwise>
|
|
|
|
|
|
|
|
</c:choose>
|
|
|
|
|
|
|
|
|
|
|
|
|