Commit 0a663b22f2d8958d60b4b5d69207747a20ae04c1
1 parent
3bb8609a
Convert to using kt_cancel submit buttons for cancel buttons.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5015 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
17 changed files
with
21 additions
and
20 deletions
templates/ktcore/document/admin/force_checkin_confirm.smarty
| @@ -29,7 +29,6 @@ | @@ -29,7 +29,6 @@ | ||
| 29 | <input type="hidden" name="fDocumentId" value="{$document->getId()}"> | 29 | <input type="hidden" name="fDocumentId" value="{$document->getId()}"> |
| 30 | <div class="form_actions"> | 30 | <div class="form_actions"> |
| 31 | <input type="submit" value="{i18n}Force Checkin{/i18n}" /> | 31 | <input type="submit" value="{i18n}Force Checkin{/i18n}" /> |
| 32 | - <!-- FIXME separate this even further. --> | ||
| 33 | - <p><a href="{$smarty.server.PHP_SELF}" class="ktCancelLink">{i18n}Cancel{/i18n}</a></p> | 32 | + <input type="submit" name="kt_cancel[]" value="{i18n}Cancel{/i18n}" /> |
| 34 | </div> | 33 | </div> |
| 35 | </form> | 34 | </form> |
templates/ktcore/folder/mass_delete.smarty
| @@ -35,8 +35,8 @@ will be recorded in the documents' "Transaction History"{/i18n}.</p> | @@ -35,8 +35,8 @@ will be recorded in the documents' "Transaction History"{/i18n}.</p> | ||
| 35 | 35 | ||
| 36 | <div class="form_actions"> | 36 | <div class="form_actions"> |
| 37 | <input type="submit" value="Delete" /> | 37 | <input type="submit" value="Delete" /> |
| 38 | - <a href="{addQS}fFolderId={$folder_id}{/addQS}" class="ktCancelLink">{i18n}Cancel{/i18n}</a> | 38 | + <input type="submit" name="kt_cancel[{addQS}fFolderId={$folder_id}{/addQS}]" value="Cancel" /> |
| 39 | </div> | 39 | </div> |
| 40 | 40 | ||
| 41 | </fieldset> | 41 | </fieldset> |
| 42 | -</form> | ||
| 43 | \ No newline at end of file | 42 | \ No newline at end of file |
| 43 | +</form> |
templates/ktcore/folder/permissions.smarty
| @@ -95,7 +95,7 @@ value="{$iGroupId}"></td> | @@ -95,7 +95,7 @@ value="{$iGroupId}"></td> | ||
| 95 | <div class="form_actions"> | 95 | <div class="form_actions"> |
| 96 | {if $edit} | 96 | {if $edit} |
| 97 | <input type="submit" value="{i18n}Update Permission Assignments{/i18n}" /> | 97 | <input type="submit" value="{i18n}Update Permission Assignments{/i18n}" /> |
| 98 | - <a href="{addQS}fFolderId={$iFolderId}{/addQS}" class="ktCancelLink">Cancel</a> | 98 | + <input type="submit" name="kt_cancel[{addQS}fFolderId={$iFolderId}{/addQS}]" value="Cancel" /> |
| 99 | {else} | 99 | {else} |
| 100 | {* non-inherited view mode. *} | 100 | {* non-inherited view mode. *} |
| 101 | {if ((!$inherited) && (!$edit)) } | 101 | {if ((!$inherited) && (!$edit)) } |
| @@ -189,4 +189,4 @@ $this->assign("aPermissions", $this->_tpl_vars['oDynamicCondition']->getAssignme | @@ -189,4 +189,4 @@ $this->assign("aPermissions", $this->_tpl_vars['oDynamicCondition']->getAssignme | ||
| 189 | <input type="submit" name="submit" value="{i18n}Add{/i18n}" /> | 189 | <input type="submit" name="submit" value="{i18n}Add{/i18n}" /> |
| 190 | </form> | 190 | </form> |
| 191 | { /if } | 191 | { /if } |
| 192 | -{/if} | ||
| 193 | \ No newline at end of file | 192 | \ No newline at end of file |
| 193 | +{/if} |
templates/ktcore/folder/roles_managegroups.smarty
| @@ -62,7 +62,8 @@ | @@ -62,7 +62,8 @@ | ||
| 62 | 62 | ||
| 63 | <div class="form_actions"> | 63 | <div class="form_actions"> |
| 64 | <input type="submit" value="{i18n}save changes{/i18n}" /> | 64 | <input type="submit" value="{i18n}save changes{/i18n}" /> |
| 65 | - <a href="{$smarty.server.PHP_SELF}" class="ktCancelLink">{i18n}Cancel{/i18n}</a> | 65 | + {capture assign=link}{addQS}fFolderId={$context->oFolder->getId()}{/addQS}{/capture} |
| 66 | + <input type="submit" name="kt_cancel[{$link}]" value="{i18n}Cancel{/i18n}" /> | ||
| 66 | </div> | 67 | </div> |
| 67 | </fieldset> | 68 | </fieldset> |
| 68 | </form> | 69 | </form> |
templates/ktcore/folder/roles_manageusers.smarty
| @@ -62,7 +62,8 @@ | @@ -62,7 +62,8 @@ | ||
| 62 | 62 | ||
| 63 | <div class="form_actions"> | 63 | <div class="form_actions"> |
| 64 | <input type="submit" value="{i18n}save changes{/i18n}" /> | 64 | <input type="submit" value="{i18n}save changes{/i18n}" /> |
| 65 | - <a href="{$smarty.server.PHP_SELF}" class="ktCancelLink">{i18n}Cancel{/i18n}</a> | 65 | + {capture assign=link}{addQS}fFolderId={$context->oFolder->getId()}{/addQS}{/capture} |
| 66 | + <input type="submit" name="kt_cancel[{$link}]" value="{i18n}Cancel{/i18n}" /> | ||
| 66 | </div> | 67 | </div> |
| 67 | </fieldset> | 68 | </fieldset> |
| 68 | </form> | 69 | </form> |
templates/ktcore/principals/addgroup.smarty
| @@ -37,7 +37,7 @@ within KnowledgeTree below.{/i18n}</p> | @@ -37,7 +37,7 @@ within KnowledgeTree below.{/i18n}</p> | ||
| 37 | {/foreach} | 37 | {/foreach} |
| 38 | <div class="form_actions"> | 38 | <div class="form_actions"> |
| 39 | <input type="submit" value="{i18n}create group{/i18n}" /> | 39 | <input type="submit" value="{i18n}create group{/i18n}" /> |
| 40 | - <a href="{addQS}action=main{/addQS}" class="ktCancelLink">{i18n}Cancel{/i18n}</a> | 40 | + <input type="submit" name="kt_cancel[]" value="{i18n}Cancel{/i18n}" /> |
| 41 | </div> | 41 | </div> |
| 42 | </fieldset> | 42 | </fieldset> |
| 43 | </form> | 43 | </form> |
templates/ktcore/principals/adduser.smarty
| @@ -36,7 +36,7 @@ within KnowledgeTree below.{/i18n}</p> | @@ -36,7 +36,7 @@ within KnowledgeTree below.{/i18n}</p> | ||
| 36 | {/foreach} | 36 | {/foreach} |
| 37 | <div class="form_actions"> | 37 | <div class="form_actions"> |
| 38 | <input type="submit" value="{i18n}create user{/i18n}" /> | 38 | <input type="submit" value="{i18n}create user{/i18n}" /> |
| 39 | - <a href="{addQS}action=main{/addQS}" class="ktCancelLink">{i18n}Cancel{/i18n}</a> | 39 | + <input type="submit" name="kt_cancel[]" value="{i18n}Cancel{/i18n}" /> |
| 40 | </div> | 40 | </div> |
| 41 | </fieldset> | 41 | </fieldset> |
| 42 | </form> | 42 | </form> |
templates/ktcore/principals/editgroup.smarty
| @@ -14,7 +14,7 @@ the system's information about group <strong>#name</strong>{/i18n}</p> | @@ -14,7 +14,7 @@ the system's information about group <strong>#name</strong>{/i18n}</p> | ||
| 14 | {/foreach} | 14 | {/foreach} |
| 15 | <div class="form_actions"> | 15 | <div class="form_actions"> |
| 16 | <input type="submit" value="{i18n}save changes to group{/i18n}" /> | 16 | <input type="submit" value="{i18n}save changes to group{/i18n}" /> |
| 17 | - <a href="{addQS}action=main{/addQS}" class="ktCancelLink">{i18n}Cancel{/i18n}</a> | 17 | + <input type="submit" name="kt_cancel[]" value="{i18n}Cancel{/i18n}" /> |
| 18 | </div> | 18 | </div> |
| 19 | </fieldset> | 19 | </fieldset> |
| 20 | </form> | 20 | </form> |
templates/ktcore/principals/editunit.smarty
| @@ -14,7 +14,7 @@ the system's information about unit <strong>#name#</strong>{/i18n}</p> | @@ -14,7 +14,7 @@ the system's information about unit <strong>#name#</strong>{/i18n}</p> | ||
| 14 | {/foreach} | 14 | {/foreach} |
| 15 | <div class="form_actions"> | 15 | <div class="form_actions"> |
| 16 | <input type="submit" value="{i18n}save changes to unit{/i18n}" /> | 16 | <input type="submit" value="{i18n}save changes to unit{/i18n}" /> |
| 17 | - <a href="{addQS}action=main{/addQS}" class="ktCancelLink">{i18n}Cancel{/i18n}</a> | 17 | + <input type="submit" name="kt_cancel[]" value="{i18n}Cancel{/i18n}" /> |
| 18 | </div> | 18 | </div> |
| 19 | </fieldset> | 19 | </fieldset> |
| 20 | </form> | 20 | </form> |
templates/ktcore/principals/edituser.smarty
| @@ -12,7 +12,7 @@ | @@ -12,7 +12,7 @@ | ||
| 12 | {/foreach} | 12 | {/foreach} |
| 13 | <div class="form_actions"> | 13 | <div class="form_actions"> |
| 14 | <input type="submit" value="{i18n}save changes{/i18n}" /> | 14 | <input type="submit" value="{i18n}save changes{/i18n}" /> |
| 15 | - <a href="{addQS}action=main{/addQS}" class="ktCancelLink">{i18n}Cancel{/i18n}</a> | 15 | + <input type="submit" name="kt_cancel[]" value="{i18n}Cancel{/i18n}" /> |
| 16 | </div> | 16 | </div> |
| 17 | </fieldset> | 17 | </fieldset> |
| 18 | </form> | 18 | </form> |
templates/ktcore/principals/groups_managesubgroups.smarty
| @@ -63,7 +63,7 @@ | @@ -63,7 +63,7 @@ | ||
| 63 | 63 | ||
| 64 | <div class="form_actions"> | 64 | <div class="form_actions"> |
| 65 | <input type="submit" value="{i18n}save changes{/i18n}" /> | 65 | <input type="submit" value="{i18n}save changes{/i18n}" /> |
| 66 | - <a href="{addQS}action=main{/addQS}" class="ktCancelLink">{i18n}Cancel{/i18n}</a> | 66 | + <input type="submit" name="kt_cancel[]" value="{i18n}Cancel{/i18n}" /> |
| 67 | </div> | 67 | </div> |
| 68 | </fieldset> | 68 | </fieldset> |
| 69 | </form> | 69 | </form> |
templates/ktcore/principals/groups_manageusers.smarty
| @@ -62,7 +62,7 @@ | @@ -62,7 +62,7 @@ | ||
| 62 | 62 | ||
| 63 | <div class="form_actions"> | 63 | <div class="form_actions"> |
| 64 | <input type="submit" value="{i18n}save changes{/i18n}" /> | 64 | <input type="submit" value="{i18n}save changes{/i18n}" /> |
| 65 | - <a href="{addQS}action=main{/addQS}" class="ktCancelLink">{i18n}Cancel{/i18n}</a> | 65 | + <input type="submit" name="kt_cancel[]" value="{i18n}Cancel{/i18n}" /> |
| 66 | </div> | 66 | </div> |
| 67 | </fieldset> | 67 | </fieldset> |
| 68 | </form> | 68 | </form> |
templates/ktcore/principals/roleadmin.smarty
| @@ -35,7 +35,7 @@ | @@ -35,7 +35,7 @@ | ||
| 35 | 35 | ||
| 36 | <div class="form_actions"> | 36 | <div class="form_actions"> |
| 37 | <input type="submit" value="{i18n}update role information{/i18n}" /> | 37 | <input type="submit" value="{i18n}update role information{/i18n}" /> |
| 38 | - <a href="{addQS}action=main{/addQS}" class="ktCancelLink">{i18n}Cancel{/i18n}</a> | 38 | + <input type="submit" name="kt_cancel[]" value="{i18n}Cancel{/i18n}" /> |
| 39 | </div class="form_actions"> | 39 | </div class="form_actions"> |
| 40 | </fieldset> | 40 | </fieldset> |
| 41 | </form> | 41 | </form> |
templates/ktcore/principals/updatepassword.smarty
| @@ -12,7 +12,7 @@ | @@ -12,7 +12,7 @@ | ||
| 12 | 12 | ||
| 13 | <div class="form_actions"> | 13 | <div class="form_actions"> |
| 14 | <input type="submit" value="{i18n}change password{/i18n}" /> | 14 | <input type="submit" value="{i18n}change password{/i18n}" /> |
| 15 | - <a href="{addQS}action=main{/addQS}" class="ktCancelLink">{i18n}Cancel{/i18n}</a> | 15 | + <input type="submit" name="kt_cancel[]" value="{i18n}Cancel{/i18n}" /> |
| 16 | </div> | 16 | </div> |
| 17 | </fieldset> | 17 | </fieldset> |
| 18 | </form> | 18 | </form> |
templates/ktcore/principals/usergroups.smarty
| @@ -64,7 +64,7 @@ | @@ -64,7 +64,7 @@ | ||
| 64 | 64 | ||
| 65 | <div class="form_actions"> | 65 | <div class="form_actions"> |
| 66 | <input type="submit" value="{i18n}save changes{/i18n}" /> | 66 | <input type="submit" value="{i18n}save changes{/i18n}" /> |
| 67 | - <a href="{addQS}action=main{/addQS}" class="ktCancelLink">{i18n}Cancel{/i18n}</a> | 67 | + <input type="submit" name="kt_cancel[]" value="{i18n}Cancel{/i18n}" /> |
| 68 | </div> | 68 | </div> |
| 69 | </fieldset> | 69 | </fieldset> |
| 70 | </form> | 70 | </form> |
templates/ktstandard/authentication/ldapaddgroup.smarty
| @@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
| 10 | <input type="hidden" name="dn" value="{$dn}" /> | 10 | <input type="hidden" name="dn" value="{$dn}" /> |
| 11 | <div class="form_actions"> | 11 | <div class="form_actions"> |
| 12 | <input type="submit" name="submit[create]" value="{i18n}create group{/i18n}" /> | 12 | <input type="submit" name="submit[create]" value="{i18n}create group{/i18n}" /> |
| 13 | - <a href="{$smarty.server.PHP_SELF}" class="ktCancelLink">{i18n}Cancel{/i18n}</a> | 13 | + <input type="submit" name="kt_cancel[]" value="{i18n}Cancel{/i18n}" /> |
| 14 | </div> | 14 | </div> |
| 15 | </fieldset> | 15 | </fieldset> |
| 16 | </form> | 16 | </form> |
templates/ktstandard/authentication/ldapadduser.smarty
| @@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
| 11 | <input type="hidden" name="samaccountname" value="{$samaccountname}" /> | 11 | <input type="hidden" name="samaccountname" value="{$samaccountname}" /> |
| 12 | <div class="form_actions"> | 12 | <div class="form_actions"> |
| 13 | <input type="submit" name="submit[create]" value="{i18n}create user{/i18n}" /> | 13 | <input type="submit" name="submit[create]" value="{i18n}create user{/i18n}" /> |
| 14 | - <a href="{$smarty.server.PHP_SELF}" class="ktCancelLink">{i18n}Cancel{/i18n}</a> | 14 | + <input type="submit" name="kt_cancel[]" value="{i18n}Cancel{/i18n}" /> |
| 15 | </div> | 15 | </div> |
| 16 | </fieldset> | 16 | </fieldset> |
| 17 | </form> | 17 | </form> |