diff options
author | Michael Tänzer <neo@nhng.de> | 2011-07-05 18:54:19 +0200 |
---|---|---|
committer | Michael Tänzer <neo@nhng.de> | 2011-07-05 18:54:19 +0200 |
commit | 118cf4383eb89f4a42bdcd2e106a96cc71c9f557 (patch) | |
tree | 58dec06526ab2f927c049478571bb0c783c9c7eb /manager/application/views/scripts/manage-account | |
parent | b3d761a0d609c530e44bdf37676743bca4162d1e (diff) | |
download | cacert-mgr-118cf4383eb89f4a42bdcd2e106a96cc71c9f557.tar.gz cacert-mgr-118cf4383eb89f4a42bdcd2e106a96cc71c9f557.tar.xz cacert-mgr-118cf4383eb89f4a42bdcd2e106a96cc71c9f557.zip |
Implement batch assurance.
Fixes bug 944
Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'manager/application/views/scripts/manage-account')
-rw-r--r-- | manager/application/views/scripts/manage-account/batch-assurance-form.phtml | 28 | ||||
-rw-r--r-- | manager/application/views/scripts/manage-account/batch-assurance.phtml | 28 |
2 files changed, 56 insertions, 0 deletions
diff --git a/manager/application/views/scripts/manage-account/batch-assurance-form.phtml b/manager/application/views/scripts/manage-account/batch-assurance-form.phtml new file mode 100644 index 0000000..3a68691 --- /dev/null +++ b/manager/application/views/scripts/manage-account/batch-assurance-form.phtml @@ -0,0 +1,28 @@ +<?php +/** + * @author Michael Tänzer + */ +?> + +<h1><?php print I18n::_('Do Multiple Assurances at Once') ?></h1> + +<p><?php print I18n::_('Assure multiple dummy accounts in one step. '. + 'The assurances look just like normal assurances and can be used to gain '. + 'experience points without suffering from RSI (also known as mouse arm).') +?></p> + +<p><?php print I18n::_('The amount of points given per Assurance can be '. + 'specified in two ways:') ?></p> +<dl> + <dt><?php print I18n::_('Percentage') ?></dt> + <dd><?php print I18n::_('n percent of the maximal possible points are '. + 'given per Assurance. If it\'s not an integer it is rounded down to '. + 'the next integer') ?></dd> + <dt><?php print I18n::_('Absolute') ?></dt> + <dd><?php print I18n::_('Exactly n points are given. If n exceeds the '. + 'current maximum of points that may be given, it is set to the '. + 'maximum until due to the gained experience points more points may be '. + 'given') ?></dd> +</dl> + +<?php print $this->batch_assurance_form ?> diff --git a/manager/application/views/scripts/manage-account/batch-assurance.phtml b/manager/application/views/scripts/manage-account/batch-assurance.phtml new file mode 100644 index 0000000..4e0ae82 --- /dev/null +++ b/manager/application/views/scripts/manage-account/batch-assurance.phtml @@ -0,0 +1,28 @@ +<?php +/** + * @author Michael Tänzer <neo@nhng.de> + */ +?> + +<h1><?php print I18n::_('Assurances executed successfully')?></h1> + +<p><?php print I18n::_('The following assurances were executed:')?></p> + +<table> + <thead> + <tr> + <th>#</th> + <th><?php print I18n::_('Assuree')?></th> + <th><?php print I18n::_('Number of points')?></th> + </tr> + </thead> + <tbody> + <?php foreach ($this->assurancesDone as $i => $assurance) {?> + <tr> + <td><?php print $i ?></td> + <td><?php print $assurance['assuree'] ?></td> + <td><?php print $assurance['points'] ?></td> + </tr> + <?php }?> + </tbody> +</table>
\ No newline at end of file |