Added JS confirmation for deleting wiki pages.
Documented need for JS confirmation and escaping template variables to the gotchas file.
This commit is contained in:
parent
e5ea16e1d2
commit
824b7a4545
6 changed files with 45 additions and 0 deletions
24
docs/upgrades/templates-7.3.5/wiki-page.tmpl
Normal file
24
docs/upgrades/templates-7.3.5/wiki-page.tmpl
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#WikiPageEditTmpl000001
|
||||
<tmpl_var formHeader>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr><td><label for="title_formId"><tmpl_var titleLabel></label></td><td><tmpl_var formTitle></td></tr>
|
||||
<tr><td><label for="content_formId"><tmpl_var contentLabel></label></td><td><tmpl_var formContent></td></tr>
|
||||
<tmpl_if canAdminister>
|
||||
<tr><td><label for="isProtected_formId"><tmpl_var protectQuestionLabel></label></td><td><tmpl_var formProtect></td></tr>
|
||||
</tmpl_if>
|
||||
<tmpl_if allowsAttachments>
|
||||
<tr><td><label for="storageId_formId"><tmpl_var attachmentLabel></label></td><td><tmpl_var formAttachment></td></tr>
|
||||
</tmpl_if>
|
||||
</tbody>
|
||||
</table>
|
||||
<tmpl_var formSubmit>
|
||||
<tmpl_var formFooter>
|
||||
|
||||
<tmpl_if canAdminister><tmpl_unless isNew>
|
||||
<ul>
|
||||
<li><a href="<tmpl_var deleteUrl>" onclick="return confirm('<tmpl_var deleteConfirm ESCAPE="JS">');"><tmpl_var deleteLabel></a></li>
|
||||
</ul>
|
||||
</tmpl_unless></tmpl_if>
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue