Commit ba120ca3 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

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: default avatarLukas Fleischer <>
Signed-off-by: default avatarcanyonknight <>
parent cf0718bd
......@@ -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">
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") ?>" />
<input type="hidden" name="ID" value="<?php echo intval($_REQUEST['ID']) ?>" />
<label for="id_comment"><?php echo __("Comment") . ':' ?></label>
<textarea id="id_comment" name="comment" cols="80" rows="10"></textarea>
<input type="submit" value="<?php echo __("Add Comment") ?>" />
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment