portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morci...@apache.org
Subject cvs commit: jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html psml-form.vm browser-psml.vm
Date Thu, 29 Aug 2002 21:11:39 GMT
morciuch    2002/08/29 14:11:39

  Modified:    webapp/WEB-INF/templates/vm/portlets/html psml-form.vm
                        browser-psml.vm
  Log:
  Added on-line import all/export all features (see Bugzilla issue# 11599)
  
  Revision  Changes    Path
  1.7       +36 -1     jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/psml-form.vm
  
  Index: psml-form.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/psml-form.vm,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- psml-form.vm	23 Aug 2002 17:24:43 -0000	1.6
  +++ psml-form.vm	29 Aug 2002 21:11:39 -0000	1.7
  @@ -129,6 +129,37 @@
               #formCell ("Copy To" "CopyTo" $copyTo)
           </tr>
        #end    
  +     #if ($mode == "export_all")     
  +        <tr>
  +            <td colspan="2">
  +            This option exports ALL .psml profiles found to the root given by <b>Copy
To</b> parameter. The root 
  +            directory is assumed to be located on the server machine. <p>
  +            Please note that this feature is probably not very useful if you're using file-based
psml.            
  +            </td>
  +        </tr>
  +        <tr>
  +            #formCell ("Copy To" "CopyTo" $copyTo)
  +        </tr>
  +     #end    
  +     #if ($mode == "import_all")     
  +        <tr>
  +            <td colspan="2">
  +            This option imports ALL .psml files found in the root given by <b>Copy
From</b> parameter including
  +            subdirectories. The root directory is assumed to be located on the server machine.
Also, it is assumed that 
  +            each .psml file found will reside relative to the root in one of the following
locations:
  +            <ul>
  +                <li>/user | role | group/${entity-name}/${media-type}/${language}/${country}/${page-name}.psml</li>
  +                <li>/user | role | group/${entity-name}/${media-type}/${language}/${page-name}.psml</li>
  +                <li>/user | role | group/${entity-name}/${media-type}/${page-name}.psml</li>
  +                <li>/user | role | group/${entity-name}/${page-name}.psml}</li>
                                               
  +            </ul>
  +            Please note that this feature is probably not very useful if you're using file-based
psml.
  +            </td>
  +        </tr>
  +        <tr>
  +            #formCell ("Copy From" "CopyFrom" $copyFrom)
  +        </tr>
  +     #end    
     </table>
     <table border="0"  cellspacing="0" cellpadding="5" width="30%">
         <tr>
  @@ -141,6 +172,10 @@
               <input type="submit" name="eventSubmit_doExport" value="Export Psml"/>
             #elseif ($mode == "import")
               <input type="submit" name="eventSubmit_doImport" value="Import Psml"/>
  +          #elseif ($mode == "export_all")
  +            <input type="submit" name="eventSubmit_doExportall" value="Export All"/>
  +          #elseif ($mode == "import_all")
  +            <input type="submit" name="eventSubmit_doImportall" value="Import All"/>
             #end
         </td>
         </form>
  
  
  
  1.9       +9 -0      jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/browser-psml.vm
  
  Index: browser-psml.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/browser-psml.vm,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- browser-psml.vm	23 Aug 2002 17:24:42 -0000	1.8
  +++ browser-psml.vm	29 Aug 2002 21:11:39 -0000	1.9
  @@ -4,6 +4,15 @@
       <td><img src="images/blank.gif" width="80%" height="1" border="0"></td>
   </tr>
   
  +<tr>    
  +    <td colspan="6">
  +        #set ($exportAll = $jslink.setPaneByName("PsmlForm").addQueryData("mode","export_all"))
  +        <a style="font-size:10" href='$exportAll'>Export All</a>&nbsp;&nbsp;&nbsp;&nbsp;
   
  +        #set ($importAll = $jslink.setPaneByName("PsmlForm").addQueryData("mode","import_all"))
  +        <a style="font-size:10" href='$importAll'>Import All</a>
  +    </td>
  +</tr>
  +
   #foreach ( $entry in $psml )
   
       #if($!entry.GroupName)
  
  
  

--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message