summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-05-23 13:45:17 -0400
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-06 11:26:12 +0200
commitba120ca30457e1a146350871fa83757b501db16a (patch)
treed8e3281fec3c69f86a87d5dcd0e2d3501a23074a /web
parentcf0718bd43f12c0038e73c63f246a6732823ec49 (diff)
Refactor package comment form
* Adjust style to match the overall layout. * Use proper HTML tags and double quotes. * Remove the "Reset" button. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: canyonknight <canyonknight@gmail.com>
Diffstat (limited to 'web')
-rw-r--r--web/template/pkg_comment_form.php27
1 files changed, 17 insertions, 10 deletions
diff --git a/web/template/pkg_comment_form.php b/web/template/pkg_comment_form.php
index 7606ce9..0fcfa7c 100644
--- a/web/template/pkg_comment_form.php
+++ b/web/template/pkg_comment_form.php
@@ -49,20 +49,27 @@ if (isset($_REQUEST['comment'])) {
# Prompt visitor for comment
?>
-<div class="pgbox">
- <form action='<?php echo $_SERVER['REQUEST_URI'] ?>' method='post'>
- <div style="padding: 1%">
+<div id="generic-form" class="box">
+ <h2><?php echo __("Add Comment"); ?></h2>
+ <form call="general-form" action="<?php echo $_SERVER['REQUEST_URI'] ?>" method="post">
+ <fieldset>
<?php
if (isset($_REQUEST['comment'])) {
- echo '<b>' . __('Comment has been added.') . '</b>';
+ echo '<p>' . __('Comment has been added.') . '</p>';
}
?>
- <input type='hidden' name='ID' value="<?php echo intval($_REQUEST['ID']) ?>" />
- <?php echo __('Enter your comment below.') ?><br />
- <textarea name='comment' cols='80' rows='10' style="width: 100%"></textarea><br />
- <input type='submit' value="<?php echo __("Submit") ?>" />
- <input type='reset' value="<?php echo __("Reset") ?>" />
- </div>
+ <div>
+ <input type="hidden" name="ID" value="<?php echo intval($_REQUEST['ID']) ?>" />
+ </div>
+ <p>
+ <label for="id_comment"><?php echo __("Comment") . ':' ?></label>
+ <textarea id="id_comment" name="comment" cols="80" rows="10"></textarea>
+ </p>
+ <p>
+ <label></label>
+ <input type="submit" value="<?php echo __("Add Comment") ?>" />
+ </p>
+ </fieldset>
</form>
</div>