From: Rob H. <for...@us...> - 2003-01-06 00:35:19
|
Update of /cvsroot/sandweb/sandweb/templates In directory sc8-pr-cvs1:/tmp/cvs-serv3492 Modified Files: delete.html repository.html repository.js submitform.js tool_bar.html vcs.html Log Message: * fixed repository commit stuff, just needed a hidden variable defined on the form so I could redifine it in javascript :) it uses anchor tags now * started working on image integration Index: delete.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/delete.html,v retrieving revision 1.3 retrieving revision 1.4 diff -U2 -r1.3 -r1.4 --- delete.html 6 Oct 2002 07:12:48 -0000 1.3 +++ delete.html 6 Jan 2003 00:35:16 -0000 1.4 @@ -16,5 +16,5 @@ <input type="hidden" name="module_name" value="<TMPL_VAR NAME=MODULE_NAME>"> <input type="hidden" name="repo_name" value="<TMPL_VAR NAME=REPO_NAME>"> - <input name="Submit" value="1" type="submit" value="Ok"> + <input name="Submit" value="1" type="submit" value="Done"> </form> </center> Index: repository.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/repository.html,v retrieving revision 1.21 retrieving revision 1.22 diff -U2 -r1.21 -r1.22 --- repository.html 4 Jan 2003 22:55:41 -0000 1.21 +++ repository.html 6 Jan 2003 00:35:16 -0000 1.22 @@ -1,3 +1,3 @@ -<form name="repository" method="post"> +<form name="repository" method="get"> <!-- <TMPL_VAR NAME=PROGNAME> --> <input type="hidden" name="action" value="repository"> @@ -96,5 +96,12 @@ <td width="25%" align="center"> <br> - <input type="submit" name="Submit" Value="Commit" onClick="javascript:{doSubmit('Commit');}"> + <input type="hidden" name="Submit"> + + <a href="javascript:{document.repository.Submit.value='Commit';doSubmit('Commit');}"><img src="<TMPL_VAR NAME=IMAGE_DIR>/commit.png" alt="Commit" title="Commit"</a> + + + + <a href="javascript:{document.repository.Submit.value='Delete';doSubmit('Delete');}"><img src="<TMPL_VAR NAME=IMAGE_DIR>/delete.png" alt="Delete" title="Delete"</a> + <!-- <a href="javascript:{doSubmit('Delete');}" onMouseOver="rollOver(2)" onMouseO @@ -102,6 +109,4 @@ <TMPL_VAR NAME=LANG>.gif" width="79" height="20" name="button2"></a> --> - - <input type="submit" name="Submit" Value="Delete" onClick="javascript:{doSubmit('Delete');}"> </td> <td width="60%" align="center"> Index: repository.js =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/repository.js,v retrieving revision 1.5 retrieving revision 1.6 diff -U2 -r1.5 -r1.6 --- repository.js 15 Aug 2002 08:02:41 -0000 1.5 +++ repository.js 6 Jan 2003 00:35:16 -0000 1.6 @@ -1,8 +1,8 @@ function checkForm(clicked) { if (clicked == 'Delete') { - if (confirm("Deleting this repository will also delete all modules checked out from this repository. Are you sure you wish to do this?")) { + if (confirm("Deleting this repository will also delete all modules checked out from this repository. Are you sure you wish to do this?")) { return true; - } - } + } + } else if (clicked == 'Commit') { if (isEmpty(document.repository.repo_name.value)) { @@ -22,5 +22,5 @@ else { return true; - } + } return false; } Index: submitform.js =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/submitform.js,v retrieving revision 1.4 retrieving revision 1.5 diff -U2 -r1.4 -r1.5 --- submitform.js 5 Jan 2003 21:37:52 -0000 1.4 +++ submitform.js 6 Jan 2003 00:35:16 -0000 1.5 @@ -4,12 +4,7 @@ function doSubmit(clicked) { - var submitOk = false; - if (checkForm(clicked)) { - submitOk = true - } - -// if (submitOk) { -// submitForm(clicked); -// } + if (checkForm(clicked)) { + submitForm(clicked); + } } Index: tool_bar.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/tool_bar.html,v retrieving revision 1.14 retrieving revision 1.15 diff -U2 -r1.14 -r1.15 --- tool_bar.html 16 Sep 2002 05:06:48 -0000 1.14 +++ tool_bar.html 6 Jan 2003 00:35:16 -0000 1.15 @@ -9,8 +9,11 @@ <tr> <td width="100%" align="center" colspan="3"> - <input type="submit" name="action" value="create_folder" accesskey="o"> - <input type="submit" name="action" value="delete" accesskey="d"> - <input type="submit" name="action" value="rename" accesskey="r"> - <input type="submit" name="action" value="upload" accesskey="u"> + + <input type="hidden" name="action"> + + <a href="javascript:{document.browse.action.value='create_folder';document.browse.submit();}"><img src="<TMPL_VAR NAME=IMAGE_DIR>/create_folder.png" alt="Create Folder" title="Create Folder" border="0"></a> + <a href="javascript:{document.browse.action.value='delete';document.browse.submit();}"><img src="<TMPL_VAR NAME=IMAGE_DIR>/delete.png" alt="Delete" title="Delete" border="0"></a> + <a href="javascript:{document.browse.action.value='rename';document.browse.submit();}"><img src="<TMPL_VAR NAME=IMAGE_DIR>/rename.png" alt="Rename" title="Rename" border="0"></a> + <a href="javascript:{document.browse.action.value='upload';document.browse.submit();}"><img src="<TMPL_VAR NAME=IMAGE_DIR>/upload.png" alt="Upload" title="Upload" border="0"></a> | <select name="vcs_command"> @@ -21,5 +24,5 @@ </select> - <input type="submit" name="action" value="vcs"> + <a href="javascript:{document.browse.action.value='vcs';document.browse.submit();}"><img src="<TMPL_VAR NAME=IMAGE_DIR>/go.png" alt="Go" title="Go" border="0"></a> </td> </tr> Index: vcs.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/vcs.html,v retrieving revision 1.4 retrieving revision 1.5 diff -U2 -r1.4 -r1.5 --- vcs.html 6 Nov 2002 05:34:42 -0000 1.4 +++ vcs.html 6 Jan 2003 00:35:16 -0000 1.5 @@ -17,5 +17,5 @@ <input type="hidden" name="vcs_command" value="<TMPL_VAR NAME=VCS_COMMAND>"> <input type="hidden" name="vcs_message" value="<TMPL_VAR NAME=VCS_MESSAGE>"> - <input name="Submit" value="1" type="submit" value="Ok"> + <input name="Submit" value="1" type="submit" value="Done"> </form> </center> |