Changeset 16347 for extensions/GuestBook/template
- Timestamp:
- Jul 4, 2012, 10:39:49 PM (12 years ago)
- Location:
- extensions/GuestBook/template
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GuestBook/template/comment_list.tpl
r15948 r16347 2 2 {foreach from=$comments item=comment name=comment_loop} 3 3 <li class="commentElement {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}"> 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 4 <div class="description"{if isset($comment.IN_EDIT)} style="height:200px"{/if}> 5 {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT)} 6 <div class="actions" style="float:right;font-size:90%"> 7 {if isset($comment.U_DELETE)} 8 <a href="{$comment.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"> 9 {'Delete'|@translate} 10 </a>{if isset($comment.U_VALIDATE) or isset($comment.U_EDIT) or isset($comment.U_CANCEL)} | {/if} 11 {/if} 12 {if isset($comment.U_CANCEL)} 13 <a href="{$comment.U_CANCEL}"> 14 {'Cancel'|@translate} 15 </a>{if isset($comment.U_VALIDATE) or isset($comment.U_EDIT)} | {/if} 16 {/if} 17 {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)} 18 <a class="editComment" href="{$comment.U_EDIT}#edit_comment"> 19 {'Edit'|@translate} 20 </a>{if isset($comment.U_VALIDATE)} | {/if} 21 {/if} 22 {if isset($comment.U_VALIDATE)} 23 <a href="{$comment.U_VALIDATE}"> 24 {'Validate'|@translate} 25 </a> 26 {/if} 27 </div> 28 {/if} 29 29 30 30 {if $comment.WEBSITE} … … 41 41 {if $comment.EMAIL} <a href="mailto:{$comment.EMAIL}">{$comment.EMAIL}</a>{/if} 42 42 </div> 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 43 {if isset($comment.IN_EDIT)} 44 <a name="edit_comment"></a> 45 <form method="post" action="{$comment.U_EDIT}" id="editComment"> 46 <p><label>{'Edit a comment'|@translate} :</label></p> 47 <p><textarea name="content" id="contenteditid" rows="5" cols="80">{$comment.CONTENT|@escape}</textarea></p> 48 <p><input type="hidden" name="key" value="{$comment.KEY}"> 49 <input type="hidden" name="pwg_token" value="{$comment.PWG_TOKEN}"> 50 <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}"> 51 <input type="submit" value="{'Submit'|@translate}"> 52 </p> 53 </form> 54 {else} 55 <blockquote><div>{$comment.CONTENT}</div></blockquote> 56 {/if} 57 </div> 58 58 </li> 59 59 {/foreach} -
extensions/GuestBook/template/guestbook.tpl
r16047 r16347 67 67 68 68 <p><label for="contentid">{'Comment'|@translate}* :</label></p> 69 <p><textarea name="content" id="contentid" rows="10" cols="60">{$comment_add.CONTENT}</textarea></p>69 <p><textarea name="content" id="contentid" rows="10" style="width:100%;">{$comment_add.CONTENT}</textarea></p> 70 70 <p><input type="hidden" name="key" value="{$comment_add.KEY}"> 71 71 <input type="submit" value="{'Submit'|@translate}"> {'* : mandatory fields'|@translate}</p>
Note: See TracChangeset
for help on using the changeset viewer.