diff options
author | tardo <tardo@nagi-fanboi.net> | 2007-10-02 20:47:51 +0200 |
---|---|---|
committer | Paul Mattal <paul@mattal.com> | 2007-10-11 15:25:51 +0200 |
commit | 783895de7319942ded3708a51a2aed4bfc7ddfda (patch) | |
tree | bb6510657912225cd74c6ead2b4f3fe36ee0037d /web/lib | |
parent | d03dd1619423cd38d6bab712bf2ba766e8e59afc (diff) | |
download | aur-783895de7319942ded3708a51a2aed4bfc7ddfda.tar.gz aur-783895de7319942ded3708a51a2aed4bfc7ddfda.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.inc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 66fa9ec9..c5e1719c 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"; |