summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authortardo <tardo@nagi-fanboi.net>2007-10-02 14:47:51 -0400
committerDan McGee <dan@archlinux.org>2008-01-19 23:48:30 -0600
commitd06163269bd88ee7fd5e48fd7d43a8b249ffd2d8 (patch)
treed1c6c99c0e8acaf1554e0e5ccab96ebb0614c3f6 /web/lib
parentc404c278cc8b4184f2104e6525baf092ed60b27c (diff)
downloadaurweb-d06163269bd88ee7fd5e48fd7d43a8b249ffd2d8.tar.xz
Move "Add Comment" button to Actions bar.
The lonely button now gains some friends. Signed-off-by: tardo <tardo@nagi-fanboi.net>
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/pkgfuncs.inc21
1 files changed, 9 insertions, 12 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index 300593b..c5e1719 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -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";
@@ -585,15 +591,6 @@ function package_details($id=0, $SID="") {
}
}
- echo " <tr>\n";
- echo " <td colspan='2'>\n";
- echo " <form action='/pkgedit.php' method='post'>\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 " </td>\n";
- echo " </tr>\n";
echo " </table>\n";
echo " </div>\n";
echo "</div>\n";