aboutsummaryrefslogtreecommitdiffstats
path: root/themes
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-11-11 15:01:09 +0000
committermistic100 <mistic@piwigo.org>2012-11-11 15:01:09 +0000
commit2fa1013ace21fe6df7beb9c8505a256244fa637e (patch)
tree47546c1d28894f816779758385e53f5c31c2f66e /themes
parentc81093b0e943d3625554c808ecb072ef20615d6f (diff)
feature:2786 Allow to edit website url in user comments + improve "user experience" on comment edition
git-svn-id: http://piwigo.org/svn/trunk@18995 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes')
-rw-r--r--themes/default/template/comment_list.tpl10
1 files changed, 6 insertions, 4 deletions
diff --git a/themes/default/template/comment_list.tpl b/themes/default/template/comment_list.tpl
index 05ee28f75..df60a453a 100644
--- a/themes/default/template/comment_list.tpl
+++ b/themes/default/template/comment_list.tpl
@@ -5,7 +5,7 @@
}
.content .commentElement .description{ldelim}
- height: {$comment_derivative_params->max_height()+5}px
+ min-height: {$comment_derivative_params->max_height()+5}px
}
{/html_style}{/strip}
{/if}
@@ -28,7 +28,7 @@
</a>
</div>
{/if}
- <div class="description"{if isset($comment.IN_EDIT)} style="height:200px"{/if}>
+ <div class="description">
{if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT)}
<div class="actions" style="float:right;font-size:90%">
{if isset($comment.U_DELETE)}
@@ -39,7 +39,7 @@
{if isset($comment.U_CANCEL)}
<a href="{$comment.U_CANCEL}">
{'Cancel'|@translate}
- </a>{if isset($comment.U_VALIDATE) or isset($comment.U_EDIT)} | {/if}
+ </a>{if isset($comment.U_VALIDATE)} | {/if}
{/if}
{if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)}
<a class="editComment" href="{$comment.U_EDIT}#edit_comment">
@@ -60,8 +60,10 @@
{if isset($comment.IN_EDIT)}
<a name="edit_comment"></a>
<form method="post" action="{$comment.U_EDIT}" id="editComment">
- <p><label>{'Edit a comment'|@translate} :</label></p>
+ <p><label for="contenteditid">{'Edit a comment'|@translate} :</label></p>
<p><textarea name="content" id="contenteditid" rows="5" cols="80">{$comment.CONTENT|@escape}</textarea></p>
+ <p><label for="website_url">{'Website'|@translate} :</label></p>
+ <p><input type="text" name="website_url" id="website_url" value="{$comment.WEBSITE_URL}" size="40"></p>
<p><input type="hidden" name="key" value="{$comment.KEY}">
<input type="hidden" name="pwg_token" value="{$comment.PWG_TOKEN}">
<input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}">