From: Rob H. <for...@us...> - 2001-11-24 11:58:04
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv6742/templates Modified Files: browse.html checkout.html upload.html Log Message: fixed the location bug in create_file and create_folder. They both work as expected now; amount of code added was tiny. They need better error checking; right now, if creation fails, the user isn't notified ( blech ). Besides that, it's pretty sweet. The UI is pretty simple, and it's easy to add new files and folders and work with them. Index: browse.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/browse.html,v retrieving revision 1.27 retrieving revision 1.28 diff -U2 -r1.27 -r1.28 --- browse.html 2001/11/24 11:34:45 1.27 +++ browse.html 2001/11/24 11:58:00 1.28 @@ -18,11 +18,11 @@ </td> <td width="60%" colspan="3" align="center"> - <a href="<TMPL_VAR NAME=PROGNAME>?action=file&filename=0&command=create_file">Create File</a> + <a href="<TMPL_VAR NAME=PROGNAME>?action=file&filename=0&command=create_file&location=<TMPL_VAR NAME=LOCATION>">Create File</a>   |   - <a href="<TMPL_VAR NAME=PROGNAME>?action=file&filename=0&command=create_folder">Create Folder</a> + <a href="<TMPL_VAR NAME=PROGNAME>?action=file&filename=0&command=create_folder&location=<TMPL_VAR NAME=LOCATION>">Create Folder</a>   |   - <a href="<TMPL_VAR NAME=PROGNAME>?action=file&filename=0&command=upload">Upload</a> + <a href="<TMPL_VAR NAME=PROGNAME>?action=file&filename=0&command=upload&location=<TMPL_VAR NAME=LOCATION>">Upload</a>   |   - <a href="<TMPL_VAR NAME=PROGNAME>?action=file&filename=0&command=checkout">Checkout</a> + <a href="<TMPL_VAR NAME=PROGNAME>?action=file&filename=0&command=checkout&location=<TMPL_VAR NAME=LOCATION>">Checkout</a> <br /> </td> Index: checkout.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/checkout.html,v retrieving revision 1.2 retrieving revision 1.3 diff -U2 -r1.2 -r1.3 --- checkout.html 2001/11/24 11:34:45 1.2 +++ checkout.html 2001/11/24 11:58:00 1.3 @@ -5,4 +5,5 @@ <input type="hidden" name="command" value="checkout" /> <input type="hidden" name="location" value="<TMPL_VAR NAME=LOCATION>" /> + <input name="fullpath" value="<TMPL_VAR NAME=FULLPATH>" type="hidden" /> <input type="text" name="filename" /> <input type="submit" name="checkout" value="Done" /> Index: upload.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/upload.html,v retrieving revision 1.2 retrieving revision 1.3 diff -U2 -r1.2 -r1.3 --- upload.html 2001/08/07 16:47:55 1.2 +++ upload.html 2001/11/24 11:58:00 1.3 @@ -3,4 +3,5 @@ <input name="action" value="upload" type="hidden" /> <input name="location" value="<TMPL_VAR NAME=LOCATION>" type="hidden" /> +<input name="fullpath" value="<TMPL_VAR NAME=FULLPATH>" type="hidden" /> Enter a file to upload:<br /> <TMPL_VAR NAME=ERROR> |