From: <ge...@us...> - 2014-01-06 15:29:21
|
Revision: 49323 http://sourceforge.net/p/tikiwiki/code/49323 Author: gezzzan Date: 2014-01-06 15:29:17 +0000 (Mon, 06 Jan 2014) Log Message: ----------- [MOD] Edit comment boostrapped Modified Paths: -------------- trunk/templates/comment/edit.tpl Modified: trunk/templates/comment/edit.tpl =================================================================== --- trunk/templates/comment/edit.tpl 2014-01-06 13:51:16 UTC (rev 49322) +++ trunk/templates/comment/edit.tpl 2014-01-06 15:29:17 UTC (rev 49323) @@ -6,15 +6,29 @@ {block name="content"} <form method="post" action="{service controller=comment action=edit threadId=$comment.threadId}"> - <fieldset> - <input type="hidden" name="edit" value="1"/> - {if $prefs.comments_notitle neq 'y'} - <label class="clearfix comment-title">{tr}Title:{/tr} <input type="text" name="title" value="{$comment.title|escape}"/></label> - {/if} - {capture name=rows}{if $type eq 'forum'}{$prefs.default_rows_textarea_forum}{else}{$prefs.default_rows_textarea_comment}{/if}{/capture} - {textarea codemirror='true' syntax='tiki' name=data comments="y" _wysiwyg="n" rows=$smarty.capture.rows}{$comment.data}{/textarea} - <input type="submit" class="clearfix comment-editclass btn btn-default" value="{tr}Save{/tr}"/> - <div class="button"><a href="#" onclick="$(this).closest('.comment-container, .ui-dialog-content').reload(); return false;">{tr}Cancel{/tr}</a></div> - </fieldset> + <div class="panel panel-default"> + <div class="panel-heading"> + {tr}Edit Comment{/tr} + </div> + <fieldset> + <input type="hidden" name="edit" value="1"/> + <div class="panel-body"> + {if $prefs.comments_notitle neq 'y'} + <div class="form-group"> + <label for="comment-title" class="clearfix comment-title">{tr}Title{/tr}</label> + <input type="text" id="comment-title" name="title" value="{$comment.title|escape}" class="form-control" placeholder="Comment title"/> + </div> + {/if} + {capture name=rows}{if $type eq 'forum'}{$prefs.default_rows_textarea_forum}{else}{$prefs.default_rows_textarea_comment}{/if}{/capture} + {textarea codemirror='true' syntax='tiki' name=data comments="y" _wysiwyg="n" rows=$smarty.capture.rows}{$comment.data}{/textarea} + </div> + <div class="panel-footer"> + <input type="submit" class="clearfix comment-editclass btn btn-primary btn-sm" value="{tr}Save{/tr}"/> + <div class="btn btn-link btn-sm"> + <a href="#" onclick="$(this).closest('.comment-container, .ui-dialog-content').reload(); return false;">{tr}Cancel{/tr}</a> + </div> + </div> + </fieldset> + </div> </form> {/block} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |