Construct and display the AddPoints view
* define input form (draft) * create the view and make it display the form * add a link to the view in the topNav Signed-off-by: Michael Tänzer <neo@nhng.de>AddPoints
parent
38d397043e
commit
c0b9257511
@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @author Michael Tänzer
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
|
||||||
|
<h1><?php print I18n::_('Add Assurance Points to your Account') ?></h1>
|
||||||
|
|
||||||
|
<h2><?php print I18n::_('Get Points by Automated Assurance') ?></h2>
|
||||||
|
<p><?php print I18n::_('Assign the points by doing an automated assurance '.
|
||||||
|
'which looks just like a normal assurance done by a real person.') ?></p>
|
||||||
|
<p><?php print I18n::_('If you enter more than 35 points they will be split '.
|
||||||
|
'into multiple assurances. You can do zero point assurances.') ?></p>
|
||||||
|
<?php print $this->assurance_form ?>
|
@ -0,0 +1,53 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
require_once (FWACTIONS_PATH . '/FWAction.php');
|
||||||
|
|
||||||
|
class AddPoints extends FWAction {
|
||||||
|
/**
|
||||||
|
* get a list of required permissions that are needed to access this action
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public static function getRequiredPermissions() {
|
||||||
|
return array();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get a role that is required for accessing that action
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function getRequiredRole() {
|
||||||
|
return 'User';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* sort order for top navigation
|
||||||
|
* @return integer
|
||||||
|
*/
|
||||||
|
public static function getTopNavPrio() {
|
||||||
|
return 50;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* controller to invoke
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function getController() {
|
||||||
|
return 'add-points';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* action to invoke
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function getAction() {
|
||||||
|
return 'index';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get text for menu, caller is responsible for translating
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function getMenuText() {
|
||||||
|
return 'Add Points';
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue