summaryrefslogtreecommitdiffstats
path: root/web/template/tu_details.php
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2012-05-23 13:49:43 -0400
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-06 11:26:26 +0200
commitaf8f60fe7fab642dff85658acc2b560cc0ed6f20 (patch)
treea08a8e2f2479dfa5f5dae94321d71a872586eb46 /web/template/tu_details.php
parentd2480e8b9d3d0f946d57fa9422811cb37296b8b4 (diff)
downloadaurweb-af8f60fe7fab642dff85658acc2b560cc0ed6f20.tar.xz
Overhaul trusted user proposal page to match archweb
* Change all boxes and other CSS to match archweb * General fixups in XHTML formatting * Change results table to match color scheme everywhere else Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/tu_details.php')
-rw-r--r--web/template/tu_details.php137
1 files changed, 68 insertions, 69 deletions
diff --git a/web/template/tu_details.php b/web/template/tu_details.php
index 45c7f9a..33e87a8 100644
--- a/web/template/tu_details.php
+++ b/web/template/tu_details.php
@@ -1,76 +1,75 @@
-<div class="pgbox">
-<h2><?php print __("Proposal Details") ?></h2>
-<div class="pgboxbody">
-<?php
-if ($isrunning == 1) { ?>
-<p style='font-weight: bold; color: red'>
-<?php print __("This vote is still running.") ?>
-</p>
-<?php
-} ?>
+<div class="box">
+ <h2><?php print __("Proposal Details") ?></h2>
-<p>
-<?php echo __('User') ?>: <b>
-<?php if (!empty($row['User'])) { ?>
-<a href='packages.php?K=<?php print $row['User'] ?>&amp;SeB=m'><?php print $row['User'] ?></a>
-<?php } else { ?>
-N/A
-<?php } ?>
-</b><br />
-<?php print __("Submitted: %s by %s", "<b>" . gmdate("Y-m-d H:i", $row['Submitted']) . "</b>", "<b>" . username_from_id($row['SubmitterID']) . "</b>") ?><br />
-<?php print __('End') ?>: <b><?php print gmdate("Y-m-d H:i", $row['End']) ?></b></p>
+ <?php if ($isrunning == 1): ?>
+ <p style="font-weight: bold; color: red">
+ <?php print __("This vote is still running.") ?>
+ </p>
+ <?php endif; ?>
-<p>
-<?php print str_replace("\n", "<br />\n", htmlspecialchars($row['Agenda'])) ?>
-</p>
+ <p>
+ <?php echo __("User") ?>:
+ <b>
+ <?php if (!empty($row['User'])): ?>
+ <a href="packages.php?K=<?php print $row['User'] ?>&amp;SeB=m"><?php print $row['User'] ?></a>
+ <?php else: ?>
+ N/A
+ <?php endif; ?>
+ </b>
+ <br />
+ <?php print __("Submitted: %s by %s", "<b>" . gmdate("Y-m-d H:i", $row['Submitted']) . "</b>", "<b>" . username_from_id($row['SubmitterID']) . "</b>") ?>
+ <br />
+ <?php print __("End") ?>:
+ <b><?php print gmdate("Y-m-d H:i", $row['End']) ?></b>
+ </p>
-<table class="boxSoft">
-<tr>
-<th class='boxSoftTitle'><span class='f2'><?php print __("Yes") ?></span></th>
-<th class='boxSoftTitle'><span class='f2'><?php print __("No") ?></span></th>
-<th class='boxSoftTitle'><span class='f2'><?php print __("Abstain") ?></span></th>
-<th class='boxSoftTitle'><span class='f2'><?php print __("Total") ?></span></th>
-<th class='boxSoftTitle'><span class='f2'><?php print __('Voted') ?></span></th>
-</tr>
-<tr>
-<td class='data1'><span class='f5'><span class='blue'><?php print $row['Yes'] ?></span></span></td>
-<td class='data1'><span class='f5'><span class='blue'><?php print $row['No'] ?></span></span></td>
-<td class='data1'><span class='f5'><span class='blue'><?php print $row['Abstain'] ?></span></span></td>
-<td class='data1'><span class='f5'><span class='blue'><?php print ($row['Yes'] + $row['No'] + $row['Abstain']) ?></span></span></td>
-<td class='data1'><span class='f5'><span class='blue'>
-<?php if ($hasvoted == 0) { ?>
-<span style='color: red; font-weight: bold'><?php print __("No") ?></span>
-<?php } else { ?>
-<span style='color: green; font-weight: bold'><?php print __("Yes") ?></span>
-<?php } ?>
-</span></span></td>
-</tr>
-</table>
-</div></div>
+ <p>
+ <?php print str_replace("\n", "<br />\n", htmlspecialchars($row['Agenda'])) ?>
+ </p>
-<?php
-if (!$isrunning) { ?>
-<div class="pgbox">
- <h2><?php echo __('Voters'); ?></h2>
- <div class="pgboxbody">
+ <table>
+ <tr>
+ <th><?php print __("Yes") ?></th>
+ <th><?php print __("No") ?></th>
+ <th><?php print __("Abstain") ?></th>
+ <th><?php print __("Total") ?></th>
+ <th><?php print __('Voted') ?></th>
+ </tr>
+ <tr>
+ <td><?php print $row['Yes'] ?></td>
+ <td><?php print $row['No'] ?></td>
+ <td><?php print $row['Abstain'] ?></td>
+ <td><?php print ($row['Yes'] + $row['No'] + $row['Abstain']) ?></td>
+ <td>
+ <?php if ($hasvoted == 0): ?>
+ <span style="color: red; font-weight: bold"><?php print __("No") ?></span>
+ <?php else: ?>
+ <span style="color: green; font-weight: bold"><?php print __("Yes") ?></span>
+ <?php endif; ?>
+ </td>
+ </tr>
+ </table>
+</div>
+
+<?php if (!$isrunning): ?>
+<div class="box">
+ <h2><?php echo __("Voters"); ?></h2>
<?php echo $whovoted; ?>
- </div>
</div>
-<?php
-} ?>
+<?php endif; ?>
-<div class='pgbox'>
-<div class='pgboxbody'>
-<?php if ($canvote == 1) { ?>
-<form action='tu.php?id=<?php print $row['ID'] ?>' method='post'>
-<fieldset>
-<input type='submit' class='button' name='voteYes' value='<?php print __("Yes") ?>' />
-<input type='submit' class='button' name='voteNo' value='<?php print __("No") ?>' />
-<input type='submit' class='button' name='voteAbstain' value='<?php print __("Abstain") ?>' />
-<input type='hidden' name='doVote' value='1' />
-</fieldset>
-</form>
-<?php } else { ?>
-<?php print $errorvote ?>
-<?php } ?>
-</div></div>
+<div class="box">
+
+<?php if ($canvote == 1): ?>
+ <form action="tu.php?id=<?php print $row['ID'] ?>" method="post">
+ <fieldset>
+ <input type="submit" class="button" name="voteYes" value="<?php print __("Yes") ?>" />
+ <input type="submit" class="button" name="voteNo" value="<?php print __("No") ?>" />
+ <input type="submit" class="button" name="voteAbstain" value="<?php print __("Abstain") ?>" />
+ <input type="hidden" name="doVote" value="1" />
+ </fieldset>
+ </form>
+<?php else:
+ print $errorvote ?>
+<?php endif; ?>
+</div>