mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
af8f60fe7f
commit
1b0b989fa1
1 changed files with 25 additions and 23 deletions
|
@ -5,7 +5,10 @@ set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
||||||
include_once("aur.inc.php");
|
include_once("aur.inc.php");
|
||||||
set_lang();
|
set_lang();
|
||||||
check_sid();
|
check_sid();
|
||||||
html_header();
|
|
||||||
|
$title = __("Add Proposal");
|
||||||
|
|
||||||
|
html_header($title);
|
||||||
|
|
||||||
if (isset($_COOKIE["AURSID"])) {
|
if (isset($_COOKIE["AURSID"])) {
|
||||||
$atype = account_from_sid($_COOKIE["AURSID"]);
|
$atype = account_from_sid($_COOKIE["AURSID"]);
|
||||||
|
@ -81,29 +84,28 @@ if ($atype == "Trusted User" || $atype == "Developer") {
|
||||||
<p style="color: red;" class="pkgoutput"><?php print $error ?></p>
|
<p style="color: red;" class="pkgoutput"><?php print $error ?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="pgbox">
|
<div class="box">
|
||||||
<h2><?php print __("Submit a proposal to vote on.") ?></h2>
|
<h2><?php print __("Submit a proposal to vote on.") ?></h2>
|
||||||
<div class="pgboxbody">
|
|
||||||
<form action='addvote.php' method='post'>
|
<form action="addvote.php" method="post">
|
||||||
<p>
|
<p>
|
||||||
<b><?php print __('Applicant/TU') ?></b>
|
<b><?php print __("Applicant/TU") ?></b>
|
||||||
<input type='text' name='user' value='<?php if (!empty($_POST['user'])) { print htmlentities($_POST['user'], ENT_QUOTES); } ?>' />
|
<input type="text" name="user" value="<?php if (!empty($_POST['user'])) { print htmlentities($_POST['user'], ENT_QUOTES); } ?>" />
|
||||||
<?php print __("(empty if not applicable)") ?>
|
<?php print __("(empty if not applicable)") ?>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b><?php print __('Length in days') ?></b>
|
<b><?php print __("Length in days") ?></b>
|
||||||
<input type='text' name='length' value='<?php if (!empty($_POST['length'])) { print htmlentities($_POST['length'], ENT_QUOTES); } ?>' />
|
<input type="text" name="length" value="<?php if (!empty($_POST['length'])) { print htmlentities($_POST['length'], ENT_QUOTES); } ?>" />
|
||||||
<?php print __("(defaults to 7 if empty)") ?>
|
<?php print __("(defaults to 7 if empty)") ?>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b><?php print __('Proposal') ?></b><br />
|
<b><?php print __("Proposal") ?></b><br />
|
||||||
<textarea name='agenda' rows='25' cols='80'><?php if (!empty($_POST['agenda'])) { print htmlentities($_POST['agenda']); } ?></textarea><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="hidden" name="addVote" value="1" />
|
||||||
<input type='submit' class='button' value='<?php print __('Submit'); ?>' />
|
<input type="submit" class="button" value="<?php print __("Submit"); ?>" />
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue