diff options
| author | Christian Fowler <spider@viovio.com> | 2009-02-25 00:11:57 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2009-02-25 00:11:57 +0000 |
| commit | e338278e9604a92bd319f9c67b0d941d9152245a (patch) | |
| tree | fcea13a3b0b0ac38cd63ec421ed289c357fe169c | |
| parent | 5e44d076b34b8e926157f1c9a7b3441bf0f5e9e4 (diff) | |
| download | liberty-e338278e9604a92bd319f9c67b0d941d9152245a.tar.gz liberty-e338278e9604a92bd319f9c67b0d941d9152245a.tar.bz2 liberty-e338278e9604a92bd319f9c67b0d941d9152245a.zip | |
add code to be able to do online login/registration when posting comment
| -rw-r--r-- | templates/comments_post_inc.tpl | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/templates/comments_post_inc.tpl b/templates/comments_post_inc.tpl index 9155d2e..79d1199 100644 --- a/templates/comments_post_inc.tpl +++ b/templates/comments_post_inc.tpl @@ -33,13 +33,34 @@ </div> {if !$gBitUser->isRegistered()} - <div class="row"> - {formlabel label="Name" for="comments-name"} + <div class="row" id="post-login"> + {assign var=loginLabel value=$gBitSystem->mConfig.site_title|default:Site} + {formlabel label="`$loginLabel` Login" for="login-email"} + {forminput} + <div style="display:inline-block"> + <input type="text" size="20" name="login_email" id="login-email" value="{$smarty.request.login_email|escape:html}" /> + <div class="date">{tr}Email{/tr}</div> + </div> + <div style="display:inline-block"> + <input type="password" size="8" name="login_password" id="login-password" value="{$smarty.request.login_password|escape:html}" /> + <div class="date">{tr}Password{/tr}</div> + </div> + + {/forminput} + </div> + <div class="row" style="display:none" id="post-anon"> + {formlabel label="Your Name" for="comments-name"} {forminput} <input type="text" size="50" name="comment_name" id="comments-name" value="{$postComment.anon_name|escape:html}" /> {formhelp note=""} {/forminput} </div> + <div class="row"> + {forminput} + <input type="checkbox" name="anon_post" id="anon-post" value="y" onchange="BitBase.toggleElementDisplay('post-login','block');BitBase.toggleElementDisplay('post-anon','block');" /> {tr}Anonymous Post{/tr} + {formhelp note=""} + {/forminput} + </div> {/if} {textarea id="commentpost" name="comment_data" rows=$gBitSystem->getConfig('comments_default_post_lines', 6)}{$postComment.data}{/textarea} |
