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>
This commit is contained in:
Lukas Fleischer 2012-05-23 13:45:17 -04:00
parent cf0718bd43
commit ba120ca304

View file

@ -49,20 +49,27 @@ if (isset($_REQUEST['comment'])) {
# Prompt visitor for comment # Prompt visitor for comment
?> ?>
<div class="pgbox"> <div id="generic-form" class="box">
<form action='<?php echo $_SERVER['REQUEST_URI'] ?>' method='post'> <h2><?php echo __("Add Comment"); ?></h2>
<div style="padding: 1%"> <form call="general-form" action="<?php echo $_SERVER['REQUEST_URI'] ?>" method="post">
<fieldset>
<?php <?php
if (isset($_REQUEST['comment'])) { 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']) ?>" /> <div>
<?php echo __('Enter your comment below.') ?><br /> <input type="hidden" name="ID" value="<?php echo intval($_REQUEST['ID']) ?>" />
<textarea name='comment' cols='80' rows='10' style="width: 100%"></textarea><br /> </div>
<input type='submit' value="<?php echo __("Submit") ?>" /> <p>
<input type='reset' value="<?php echo __("Reset") ?>" /> <label for="id_comment"><?php echo __("Comment") . ':' ?></label>
</div> <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> </form>
</div> </div>