Author: sletellier Date: 2011-11-04 13:50:20 +0100 (Fri, 04 Nov 2011) New Revision: 11 Url: http://forge.codelutin.com/repositories/revision/echobase/11 Log: - Creating export page Added: trunk/echobase-ui/src/main/webapp/WEB-INF/jsp/export/ trunk/echobase-ui/src/main/webapp/WEB-INF/jsp/export/export.jsp trunk/echobase-ui/src/main/webapp/WEB-INF/jsp/export/exportQueryForm.jsp Modified: trunk/echobase-ui/src/main/resources/i18n/echobase-ui_fr_FR.properties Modified: trunk/echobase-ui/src/main/resources/i18n/echobase-ui_fr_FR.properties =================================================================== --- trunk/echobase-ui/src/main/resources/i18n/echobase-ui_fr_FR.properties 2011-11-04 12:50:00 UTC (rev 10) +++ trunk/echobase-ui/src/main/resources/i18n/echobase-ui_fr_FR.properties 2011-11-04 12:50:20 UTC (rev 11) @@ -5,6 +5,10 @@ echobase.common.admin=Administrateur echobase.common.email=Email echobase.common.password=Mot de passe +echobase.common.save=Sauvegarder +echobase.export.queryDescription=Description +echobase.export.queryName=Nom +echobase.export.querySql=SQL echobase.label.language=Language echobase.label.locale.english=Anglais echobase.label.locale.french=Français @@ -15,6 +19,7 @@ echobase.menu.logs=Logs echobase.menu.users=Utilisateurs echobase.msg.warnImportInProgress=Merci de ne pas fermer la fenêtre pour pouvoir acceder au résultats de l'import. +echobase.title.export=Export echobase.title.import=Imports echobase.title.importProgress=Import en cours echobase.title.importResult=Résultats de l'import Added: trunk/echobase-ui/src/main/webapp/WEB-INF/jsp/export/export.jsp =================================================================== --- trunk/echobase-ui/src/main/webapp/WEB-INF/jsp/export/export.jsp (rev 0) +++ trunk/echobase-ui/src/main/webapp/WEB-INF/jsp/export/export.jsp 2011-11-04 12:50:20 UTC (rev 11) @@ -0,0 +1,53 @@ +<%-- + #%L + EchoBase :: UI + + $Id$ + $HeadURL$ + %% + Copyright (C) 2011 Ifremer, Codelutin + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + #L% + --%> +<%@page contentType="text/html" pageEncoding="UTF-8" %> +<%@ taglib prefix="s" uri="/struts-tags" %> +<%@ taglib prefix="sj" uri="/struts-jquery-tags" %> + +<title><s:text name="echobase.title.export"/></title> + +<s:url id="savedExportQueries" action="savedExportQueries" namespace="/ajax"/> + +<sj:select id="lastQueriesSelect" + href="%{savedExportQueries}" + name="selectedQuery" + listKey="topiaId" + listValue="name" + list="savedExportQueries" + emptyOption="true" + listenTopics="updateSavedExportQueries" + onChangeTopics="updateExportQueryForm"/> + +<s:url id="exportQueryFormUrl" action="exportQueryFormForm" namespace="/fragment"/> +<sj:div id="exportQueryForm" + href="%{exportQueryFormUrl}" + listenTopics="updateExportQueryForm" + onSuccessTopics="updateExportGrid" + indicator="indicator-searchPanel"> + <img id="indicator-searchPanel" src="/img/indicator.gif" alt="Loading..." style="display:none"/> +</sj:div> + +<%-- TODO sletellier : add result grid listen event updateExportGrid named exportGrid --%> + +</sjg:grid> \ No newline at end of file Added: trunk/echobase-ui/src/main/webapp/WEB-INF/jsp/export/exportQueryForm.jsp =================================================================== --- trunk/echobase-ui/src/main/webapp/WEB-INF/jsp/export/exportQueryForm.jsp (rev 0) +++ trunk/echobase-ui/src/main/webapp/WEB-INF/jsp/export/exportQueryForm.jsp 2011-11-04 12:50:20 UTC (rev 11) @@ -0,0 +1,67 @@ +<%-- + #%L + EchoBase :: UI + + $Id$ + $HeadURL$ + %% + Copyright (C) 2011 Ifremer, Codelutin + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + #L% + --%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> +<%@taglib prefix="s" uri="/struts-tags"%> +<%@taglib prefix="sj" uri="/struts-jquery-tags" %> + +<s:form id="exportQueryForm" action="executeExportQuery" namespace="/export"> + + <s:text name="echobase.export.queryName"/> + <s:textfield id="queryName" + cssClass="right" + theme="simple" + name="queryName" + size="40"/> + + <s:text name="echobase.export.querySql"/> + <s:textarea id="querySql" + name="querySql" + cols="160" + rows="6"/> + + <s:text name="echobase.export.queryDescription"/> + <s:textarea id="querySql" + name="querySql" + cols="160" + rows="6"/> + + <s:url id="saveExportQueryUrl" action="saveExportQuery" namespace="export"/> + + <s:set id="saveExportQueryText"> + <s:text name="echobase.common.save"/> + </s:set> + + <sj:submit id="saveQuery" + href="%{saveExportQueryUrl}" + value="%{saveExportQueryText}" + onSuccessTopics="updateExportQueries" + button="true"/> + + <sj:submit id="search" + value="%{searchText}" + indicator="indicator-exportGrid" + targets="exportGrid" + button="true"/> + +</s:form> \ No newline at end of file