Move "Add Comment" button to Actions bar.

The lonely button now gains some friends.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
This commit is contained in:
tardo 2007-10-02 14:47:51 -04:00 committed by Paul Mattal
parent d03dd16194
commit 783895de73
2 changed files with 13 additions and 3 deletions

View file

@ -212,3 +212,7 @@
font-size: 12px;
}
form.actions
{
display: inline;
}

View file

@ -462,7 +462,15 @@ function package_details($id=0, $SID="") {
echo "<div class=\"pgbox\">\n";
echo " <div class=\"pgboxtitle\"><span class=\"f3\">".__("Actions")."</span></div>\n";
echo " <div class=\"pgboxbody\">\n";
echo " <form action='/packages.php' method='post'>\n";
# Add Comment button
#
echo " <form action='/pkgedit.php' method='post' class='actions'>\n";
echo " <input type='hidden' name='ID' value='".$row["ID"]."'>\n";
echo " <input type='submit' class='button' name='add_Comment' value=\"";
echo __("Add Comment")."\">\n";
echo " </form>\n";
echo " <form action='/packages.php' method='post' class='actions'>\n";
echo " <input type='hidden' name='IDs[".$row["ID"]."]' value='1'>\n";
echo " <input type='hidden' name='ID' value='".$row["ID"]."'>\n";
# Voting Button
@ -523,13 +531,11 @@ function package_details($id=0, $SID="") {
echo "<input type='submit' class='button' name='do_Delete'";
echo " value='".__("Delete Packages")."'>\n";
}
echo " </form>\n";
echo " </div>\n";
echo "</div>\n";
echo "\n<br />\n\n";
}
# Comments
#
echo "<div class=\"pgbox\">\n";