diff options
Diffstat (limited to 'application/forms/Session.php')
| -rw-r--r-- | application/forms/Session.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/application/forms/Session.php b/application/forms/Session.php index 30aefda..f2175a7 100644 --- a/application/forms/Session.php +++ b/application/forms/Session.php @@ -73,7 +73,11 @@ $this->addElement('text', 'ip6', array( $this->addElement('submit', 'add', array( 'required' => false, 'ignore' => true, - 'label' => 'Save', + 'label' => $this->buttontext, + )); + + $this->addElement('button', 'Cancel', array( + 'onclick' => 'self.location="/session"' )); } function setClients($v){ @@ -85,6 +89,10 @@ $this->addElement('text', 'ip6', array( function setBootisos($v){ $this->bootisos = $v; } + private $buttontext = 'Save'; + function setButtontext($v){ + $this->buttontext = $v; + } } |
