<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" %>

<%@ taglib uri="/WEB-INF/iman.tld" prefix="iman" %>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/x.tld" prefix="x" %>

<iman:stringtable bundle="FwResources"/>
<iman:stringtable bundle="DevResources"/>

<HTML>
<HEAD>
   <iman:stylesheet/>
   <iman:eMFrameScripts/>
   <iman:osScripts/>
   <SCRIPT src="<c:out value="${ContextPath}" />/portal/modules/fw/javascripts/Studio.js"></SCRIPT>

   <SCRIPT>
      function onExit()
      {

      }
   </SCRIPT>
</HEAD>

<BODY onInit="init()">
<Form name="uploadForm" method="post" action="webacc?Autoparse=true" enctype="multipart/form-data" onSubmit="return false">

   <INPUT type="hidden" name="nextState" value="import">
   <INPUT type="hidden" name="taskId" value="<c:out value="${taskId}"/>">

   <iman:taskHeader titleKey="Studio.importPlugins" titleBundle="FwResources" /><BR>

   <TABLE>
      <TR>
         <TD><iman:string key="TaskBuilder.RbsCollection"/></TD>
         <TD><INPUT type="text" name="rbsCollection" size="50"><iman:os typeFilter="rbsCollection2" control="rbsCollection" history="true" /></TD>
      </TR>
      <TR>
         <TD><iman:string key="Studio.npmFile"/></TD>
         <TD><INPUT type="file" name="fileToUpload" size="50" ></TD>
      </TR>
   </TABLE>

   <BR>
   <iman:bar/>
   <iman:button key="Import" onClick="document.uploadForm.submit()"  />
   <iman:button key="Cancel" onClick="window.location='webacc?taskId=${taskId}&nextState=initialState'"  />

</FORM>
<iman:osFooter/>
</BODY>
</HTML>
