summaryrefslogtreecommitdiffstats
path: root/web/html/addvote.php
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2012-05-23 19:50:49 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-06 11:26:28 +0200
commit1b0b989fa17becd00fd52d52c48cfa20997bb1e8 (patch)
tree6b7a7ee973c19fc1f53aa4e90e1c6f9b9d8e8a21 /web/html/addvote.php
parentaf8f60fe7fab642dff85658acc2b560cc0ed6f20 (diff)
downloadaur-1b0b989fa17becd00fd52d52c48cfa20997bb1e8.tar.gz
aur-1b0b989fa17becd00fd52d52c48cfa20997bb1e8.tar.xz
addvote.php: Overhaul to match archweb
* Switch CSS over to archweb styling * General clean-up of XHTML * Set proposal box size to something more sane for a default Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/addvote.php')
-rw-r--r--web/html/addvote.php48
1 files changed, 25 insertions, 23 deletions
diff --git a/web/html/addvote.php b/web/html/addvote.php
index fe0047fa..cc463b28 100644
--- a/web/html/addvote.php
+++ b/web/html/addvote.php
@@ -5,7 +5,10 @@ set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
include_once("aur.inc.php");
set_lang();
check_sid();
-html_header();
+
+$title = __("Add Proposal");
+
+html_header($title);
if (isset($_COOKIE["AURSID"])) {
$atype = account_from_sid($_COOKIE["AURSID"]);
@@ -81,28 +84,27 @@ if ($atype == "Trusted User" || $atype == "Developer") {
<p style="color: red;" class="pkgoutput"><?php print $error ?></p>
<?php endif; ?>
-<div class="pgbox">
-<h2><?php print __("Submit a proposal to vote on.") ?></h2>
-<div class="pgboxbody">
-<form action='addvote.php' method='post'>
-<p>
-<b><?php print __('Applicant/TU') ?></b>
-<input type='text' name='user' value='<?php if (!empty($_POST['user'])) { print htmlentities($_POST['user'], ENT_QUOTES); } ?>' />
-<?php print __("(empty if not applicable)") ?>
-</p>
-<p>
-<b><?php print __('Length in days') ?></b>
-<input type='text' name='length' value='<?php if (!empty($_POST['length'])) { print htmlentities($_POST['length'], ENT_QUOTES); } ?>' />
-<?php print __("(defaults to 7 if empty)") ?>
-</p>
-<p>
-<b><?php print __('Proposal') ?></b><br />
-<textarea name='agenda' rows='25' cols='80'><?php if (!empty($_POST['agenda'])) { print htmlentities($_POST['agenda']); } ?></textarea><br />
-<input type='hidden' name='addVote' value='1' />
-<input type='submit' class='button' value='<?php print __('Submit'); ?>' />
-</p>
-</form>
-</div>
+<div class="box">
+ <h2><?php print __("Submit a proposal to vote on.") ?></h2>
+
+ <form action="addvote.php" method="post">
+ <p>
+ <b><?php print __("Applicant/TU") ?></b>
+ <input type="text" name="user" value="<?php if (!empty($_POST['user'])) { print htmlentities($_POST['user'], ENT_QUOTES); } ?>" />
+ <?php print __("(empty if not applicable)") ?>
+ </p>
+ <p>
+ <b><?php print __("Length in days") ?></b>
+ <input type="text" name="length" value="<?php if (!empty($_POST['length'])) { print htmlentities($_POST['length'], ENT_QUOTES); } ?>" />
+ <?php print __("(defaults to 7 if empty)") ?>
+ </p>
+ <p>
+ <b><?php print __("Proposal") ?></b><br />
+ <textarea name="agenda" rows="15" cols="80"><?php if (!empty($_POST['agenda'])) { print htmlentities($_POST['agenda']); } ?></textarea><br />
+ <input type="hidden" name="addVote" value="1" />
+ <input type="submit" class="button" value="<?php print __("Submit"); ?>" />
+ </p>
+ </form>
</div>
<?php
}