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

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

CommentEditor plugin creation

  • 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.3 2009/06/17 19:08:24 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="content" class="content">
14    <div class="titrePage">
15        <h2>{'comment_edit'|@translate}</h2>
16    </div>
17    <div id="comments">
18        <form  method="post" action="{$comment.F_ACTION}" class="filter" id="editComment">
19        <table>
20        <tr>
21            <td>{'comment_author'|@translate}</td>
22            {if $comment.DISABLED}
23            <td colspan="3">
24                <input type="text" name="author" disabled="disabled" value="{$comment.AUTHOR}">
25            {else}
26            <td>
27                {html_options name=author id=authorlist options=$comment.USERS selected=$comment.AUTHOR}
28            </td>
29            <td align="right">
30                <input type="checkbox" name="freeauthorck" id="freeauthorck" value="1" onchange="toggleDisabled('freeauthorck', 'authorlist', 'freeauthorfield');" {$comment.FREEAUTHOR}> {'comment_author_free'|@translate}
31            </td>
32            <td align="right">
33                <input type="text" name="freeauthor" id="freeauthorfield" value="{$comment.AUTHOR}" >
34                <script type="text/javascript">toggleDisabled('freeauthorck', 'authorlist', 'freeauthorfield');</script>
35            {/if}
36            </td>
37        </tr>
38        <tr>
39            <td>{'comment_content'|@translate}</td>
40            <td colspan="3">
41                <textarea name="content" id="contentid" rows="5" cols="80">{$comment.CONTENT}</textarea>
42            </td>
43        </tr>
44        <tr>
45            <td colspan="4" align="center">
46                <input type="hidden" name="imageid" value="{$comment.IMAGE}" />
47                <input type="hidden" name="commentid" value="{$comment.KEY}" />
48                <input class="submit" type="submit" value="{'Submit'|@translate}">
49            </td>
50        </tr>
51        </table>
52        </form>
53    </div>
54</div>
Note: See TracBrowser for help on using the repository browser.