Ignore:
Timestamp:
Jun 30, 2009, 9:05:35 PM (15 years ago)
Author:
Criss
Message:

Add toolbar trigger for edit template

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/CommentEditor/template/edit.tpl

    r3462 r3475  
    1 {* $Id: edit.tpl,v 1.7 2009/06/26 09:17:01 Criss Exp $ *}
    2 {if !$comment.DISABLED}
     1{* $Id: edit.tpl,v 1.8 2009/06/30 19:01:51 Criss Exp $ *}
     2{if isset($comment_editor.USERS)}
    33<script type="text/javascript">
    44function toggleDisabled(aToggle, aList1, aList2) {ldelim}
     
    1414  <div class="titrePage">
    1515    <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>
     16      <li><a href="{$ce_exit.URL}" title="{$ce_exit.TITLE|@translate}"><img src="{$themeconf.icon_dir}/{$ce_exit.IMG}" class="button" alt="{$ce_exit.ALT|@translate}"/></a></li>
    1717    </ul>
    18   <h2>{'comment_edit'|@translate}</h2>
     18  <h2>{'ce_edit'|@translate}</h2>
    1919  </div>
    2020  <div id="ce-comments">
    21     <form  method="post" action="{$comment.F_ACTION}" class="filter" id="editComment">
     21    <form  method="post" action="{$comment_editor.F_ACTION}" class="filter" id="editComment">
    2222    <table>
    2323    <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}
     24      <td>{'ce_author'|@translate}</td>
     25      {if isset($comment_editor.USERS)}
    2926      <td>
    30         {html_options name=ce_author id=ce_authorlist options=$comment.USERS selected=$comment.AUTHOR}
     27        {html_options name=ce_author id=ce_authorlist options=$comment_editor.USERS selected=$comment_editor.AUTHOR}
    3128      </td>
    3229      <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}
     30        <input type="checkbox" name="ce_freeauthorck" id="ce_freeauthorck" value="1" onchange="toggleDisabled('ce_freeauthorck', 'ce_authorlist', 'ce_freeauthorfield');" {$comment_editor.FREEAUTHOR}> {'ce_author_free'|@translate}
    3431      </td>
    3532      <td align="right">
    36         <input type="text" name="ce_freeauthor" id="ce_freeauthorfield" value="{$comment.AUTHOR}" >
     33        <input type="text" name="ce_freeauthor" id="ce_freeauthorfield" value="{$comment_editor.AUTHOR}" >
    3734        <script type="text/javascript">toggleDisabled('ce_freeauthorck', 'ce_authorlist', 'ce_freeauthorfield');</script>
     35      {else}
     36      <td colspan="3">
     37        <input type="text" name="ce_author" disabled="disabled" value="{$comment_editor.AUTHOR}">
    3838      {/if}
    3939      </td>
    4040    </tr>
     41    {if isset($comment_editor.TOOLBAR)}
    4142    <tr>
    42       <td>{'comment_content'|@translate}</td>
     43      <td>&nbsp;</td>
     44      <td colspan="4">{$comment_editor.TOOLBAR}</td>
     45    </tr>
     46    {/if}
     47    <tr>
     48      <td>{'ce_content'|@translate}</td>
    4349      <td colspan="3">
    44         <textarea name="ce_content" id="ce_contentid" rows="5" cols="80">{$comment.CONTENT}</textarea>
     50        <textarea name="ce_content" id="ce_contentid" rows="5" cols="80">{$comment_editor.CONTENT}</textarea>
    4551      </td>
    4652    </tr>
    4753    <tr>
    4854      <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}" />
     55        <input type="hidden" name="ce_imageid" value="{$comment_editor.IMAGE}" />
     56        <input type="hidden" name="ce_commentid" value="{$comment_editor.KEY}" />
    5157        <input class="submit" type="submit" value="{'Submit'|@translate}">
    5258      </td>
Note: See TracChangeset for help on using the changeset viewer.