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

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

Deactivate anti-flood on update
Adviser can edit only its comments
Language file converted in UTF-8
Add home link in edit and message block title bar

  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/plain
File size: 2.4 KB
Line 
1{* $Id: edit.tpl,v 1.4 2009/06/22 22:18:13 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        <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="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="author" disabled="disabled" value="{$comment.AUTHOR}">
28            {else}
29            <td>
30                {html_options name=author id=authorlist options=$comment.USERS selected=$comment.AUTHOR}
31            </td>
32            <td align="right">
33                <input type="checkbox" name="freeauthorck" id="freeauthorck" value="1" onchange="toggleDisabled('freeauthorck', 'authorlist', 'freeauthorfield');" {$comment.FREEAUTHOR}> {'comment_author_free'|@translate}
34            </td>
35            <td align="right">
36                <input type="text" name="freeauthor" id="freeauthorfield" value="{$comment.AUTHOR}" >
37                <script type="text/javascript">toggleDisabled('freeauthorck', 'authorlist', 'freeauthorfield');</script>
38            {/if}
39            </td>
40        </tr>
41        <tr>
42            <td>{'comment_content'|@translate}</td>
43            <td colspan="3">
44                <textarea name="content" id="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="imageid" value="{$comment.IMAGE}" />
50                <input type="hidden" name="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.