source: extensions/CommentEditor/template/edit.tpl @ 3462

Last change on this file since 3462 was 3462, checked in by Criss, 15 years ago

Display edit block on picture page if request comes from this page
Add simple administration configuration management
Add and remove default configuration from databaseon plugin install / uninstall

  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/plain
File size: 2.2 KB
Line 
1{* $Id: edit.tpl,v 1.7 2009/06/26 09:17:01 Criss Exp $ *}
2{if !$comment.DISABLED}
3<script type="text/javascript">
4function toggleDisabled(aToggle, aList1, aList2) {ldelim}
5  var lCheckBox = document.getElementById(aToggle);
6  var lList1 = document.getElementById(aList1);
7  var lList2 = document.getElementById(aList2);
8  lList1.disabled = lCheckBox.checked;
9  lList2.disabled = !lCheckBox.checked;
10}
11</script>
12{/if}       
13<div id="ce-content" class="content">
14  <div class="titrePage">
15    <ul class="categoryActions">
16      <li><a href="{$U_HOME}" title="{'return to homepage'|@translate}"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/></a></li>
17    </ul>
18  <h2>{'comment_edit'|@translate}</h2>
19  </div>
20  <div id="ce-comments">
21    <form  method="post" action="{$comment.F_ACTION}" class="filter" id="editComment">
22    <table>
23    <tr>
24      <td>{'comment_author'|@translate}</td>
25      {if $comment.DISABLED}
26      <td colspan="3">
27        <input type="text" name="ce_author" disabled="disabled" value="{$comment.AUTHOR}">
28      {else}
29      <td>
30        {html_options name=ce_author id=ce_authorlist options=$comment.USERS selected=$comment.AUTHOR}
31      </td>
32      <td align="right">
33        <input type="checkbox" name="ce_freeauthorck" id="ce_freeauthorck" value="1" onchange="toggleDisabled('ce_freeauthorck', 'ce_authorlist', 'ce_freeauthorfield');" {$comment.FREEAUTHOR}> {'comment_author_free'|@translate}
34      </td>
35      <td align="right">
36        <input type="text" name="ce_freeauthor" id="ce_freeauthorfield" value="{$comment.AUTHOR}" >
37        <script type="text/javascript">toggleDisabled('ce_freeauthorck', 'ce_authorlist', 'ce_freeauthorfield');</script>
38      {/if}
39      </td>
40    </tr>
41    <tr>
42      <td>{'comment_content'|@translate}</td>
43      <td colspan="3">
44        <textarea name="ce_content" id="ce_contentid" rows="5" cols="80">{$comment.CONTENT}</textarea>
45      </td>
46    </tr>
47    <tr>
48      <td colspan="4" align="center">
49        <input type="hidden" name="ce_imageid" value="{$comment.IMAGE}" />
50        <input type="hidden" name="ce_commentid" value="{$comment.KEY}" />
51        <input class="submit" type="submit" value="{'Submit'|@translate}">
52      </td>
53    </tr>
54    </table>
55    </form>
56  </div>
57</div>
Note: See TracBrowser for help on using the repository browser.