[pLog-svn] r6991 - plog/branches/lifetype-1.2/templates/default
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Fri Apr 9 11:49:43 EDT 2010
Author: jondaley
Date: 2010-04-09 11:49:43 -0400 (Fri, 09 Apr 2010)
New Revision: 6991
Modified:
plog/branches/lifetype-1.2/templates/default/commentform.template
Log:
added the smiley bar (if it is installed) and added a spacer to make this form usable on more themes - it looked really bad before, so that is why all of the templates wrote their own
Modified: plog/branches/lifetype-1.2/templates/default/commentform.template
===================================================================
--- plog/branches/lifetype-1.2/templates/default/commentform.template 2010-03-15 15:04:05 UTC (rev 6990)
+++ plog/branches/lifetype-1.2/templates/default/commentform.template 2010-04-09 15:49:43 UTC (rev 6991)
@@ -2,38 +2,70 @@
<div id="CommentForm">
<form id="NewComment" action="{$url->getIndexUrl()}" method="post">
<fieldset>
-<legend>{$locale->tr("add_comment")}</legend>
-{dynamic}
-<div><label for="commentTopic">{$locale->pr("comment_topic")}</label><input type="text" name="commentTopic" id="commentTopic" value="{$topic}" /></div>
-<div><label for="commentText">{$locale->pr("comment_text")} ({$locale->tr("required")})</label><textarea rows="10" cols="30" name="commentText" id="commentText"></textarea></div>
-<div><label for="userName">{$locale->pr("comment_username")} ({$locale->tr("required")})</label>
+<legend class="add_comment_title">{$locale->tr("add_comment")}</legend>
+<table border="0">
+<tr>
+ <td><label for="commentTopic">{$locale->pr("comment_topic")}</label></td>
+ <td><input type="text" name="commentTopic" id="commentTopic" value="{$topic}" /></td>
+</tr>
+<tr>
+ <td><label for="commentText">{$locale->pr("comment_text")}<sup class="required">*</sup></label></td>
+ <td><textarea rows="10" cols="50" name="commentText" id="commentText"></textarea></td>
+ </tr>
+
+{if $smileys && $smileys->isEnabled()}
+ <script type="text/javascript" src="{$url->getBaseUrl()}/plugins/smileys/js/smileys/smileys.js"></script>
+ <tr><td> </td><td>{$smileys->generateSmileysBar()}</td></tr>
+{/if}
+
+<tr>
+ <td><label for="userName">{$locale->pr("comment_username")}<sup class="required">*</sup></label></td>
+ <td>
+ {dynamic}
{if $authuser}
- <span id="AuthUser">{$authuser->getUsername()} ({$locale->tr("form_authenticated")})</span>
- <input type="hidden" name="userName" id="userNameHidden" value="{if $authuser}{$authuser->getUsername()}{/if}" /></div>
+ <span id="AuthUser">{$authuser->getUsername()} ({$locale->tr("form_authenticated")})</span>
+ <input type="hidden" name="userName" id="userNameHidden" value="{if $authuser}{$authuser->getUsername()}{/if}" />
{else}
- <input type="text" name="userName" id="userName" value="" /></div>
+ <input type="text" name="userName" id="userName" value="" />
{/if}
-<div><label for="userEmail">{$locale->tr("comment_email")}</label><input type="text" name="userEmail" id="userEmail" value="" /></div>
-<div><label for="userUrl">{$locale->tr("comment_url")}</label><input type="text" name="userUrl" id="userUrl" value="" /></div>
-{/dynamic}
+ {/dynamic}
+ </td>
+</tr>
+
+<tr>
+ <td><label for="userEmail">{$locale->tr("comment_email")}</label></td>
+ <td><input type="text" name="userEmail" id="userEmail" value="" /></td>
+</tr>
+<tr>
+ <td><label for="userUrl">{$locale->tr("comment_url")}</label></td>
+ <td><input type="text" name="userUrl" id="userUrl" value="" /></td>
+</tr>
+
{if $authimage && $authimage->isEnabled()}
- <div><label for="authImage">{$locale->tr("authimage_type_code")}</label>
- <input type="text" name="authImage" id="authImage" value="" /> {$authimage->show()}
- </div>
+ <tr>
+ <td><label for="authImage">{$locale->tr("authimage_type_code")}</label></td>
+ <td><input type="text" name="authImage" id="authImage" value="" /> {$authimage->show()}</td>
+ </tr>
{/if}
{if $subscribe && $subscribe->isEnabled()}
- <input type="checkbox" name="subscribe" />
- E-mail me when comments occur on this article
+ <tr><td colspan="2"><input type="checkbox" name="subscribe" /> E-mail me when comments occur on this article</td></tr>
{/if}
{if $hiddeninput && $hiddeninput->isEnabled()}
- {$hiddeninput->printHiddenFields()}
+ <tr><td>{$hiddeninput->printHiddenFields()}</td></tr>
{/if}
-<div id="Submit"><input id="Add" type="submit" value="{$locale->pr("comment_send")}" name="Add" />
-<input type="hidden" name="op" value="AddComment" />
-<input type="hidden" name="articleId" value="{$post->getId()}" />
-<input type="hidden" name="blogId" value="{$blog->getId()}" />
-<input type="hidden" name="parentId" value="{$parentId}" /></div>
+<tr id="Submit">
+ <td colspan="2">
+ <input id="Add" type="submit" value="{$locale->pr("comment_send")}" name="Add" />
+ <input type="hidden" name="op" value="AddComment" />
+ <input type="hidden" name="articleId" value="{$post->getId()}" />
+ <input type="hidden" name="blogId" value="{$blog->getId()}" />
+ <input type="hidden" name="parentId" value="{$parentId}" />
+ </td>
+</tr>
+
+</table>
+
</fieldset>
</form>
</div>
More information about the pLog-svn
mailing list