This repository has been archived by the owner on Mar 19, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2fd3de
commit 51b02cd
Showing
12 changed files
with
156 additions
and
72 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
namespace Application\Form; | ||
|
||
use Zend\Form\Element\Password; | ||
use Zend\Form\Element\Submit; | ||
use Zend\Form\Element\Text; | ||
use Zend\Form\Form; | ||
|
||
class LoginForm extends Form | ||
{ | ||
|
||
public function __construct() | ||
{ | ||
|
||
$usernameElement = new Text('username'); | ||
$usernameElement->setLabel('Username'); | ||
$passwordElement = new Password('password'); | ||
$passwordElement->setLabel('Password'); | ||
$submitElement = new Submit('login'); | ||
$submitElement->setValue('Login'); | ||
$submitElement->setAttribute('class', 'btn'); | ||
|
||
$this->add($usernameElement); | ||
$this->add($passwordElement); | ||
$this->add($submitElement); | ||
|
||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace Application\Form; | ||
|
||
use Zend\Form\Element\Submit; | ||
use Zend\Form\Form; | ||
|
||
class LogoutForm extends Form | ||
{ | ||
public function __construct() | ||
{ | ||
|
||
parent::__construct('logout'); | ||
|
||
$submitElement = new Submit('logout'); | ||
$submitElement->setValue('Logout'); | ||
$submitElement->setAttribute('class', 'btn'); | ||
|
||
$this->add($submitElement); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1 @@ | ||
<div class="jumbotron"> | ||
<h1><?php echo sprintf($this->translate('Welcome to %sbarbossa%s'), '<span class="zf-green">', '</span>') ?></h1> | ||
<p><?php echo sprintf($this->translate('Congratulations! You have successfully installed %sbarbossa%s. You are currently running barbossa version %s.'), '<a href="https://github.com/fbergkemper/barbossa" target="_blank">', '</a>', \Zend\Version\Version::VERSION) ?></p> | ||
<p><a class="btn btn-success btn-lg" href="https://github.com/fbergkemper/barbossa" target="_blank"><?php echo $this->translate('Fork barbossa on GitHub') ?> »</a></p> | ||
</div> | ||
|
||
<div class="row"> | ||
|
||
<div class="col-md-4"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title"><?php echo $this->translate('Follow Development') ?></h3> | ||
</div> | ||
<div class="panel-body"> | ||
<p><?php echo sprintf($this->translate('Barbossa is under active development. If you are interested in following the development of ZF2, there is a special ZF2 portal on the official Zend Framework website which provides links to the ZF2 %swiki%s, %sdev blog%s, %sissue tracker%s, and much more. This is a great resource for staying up to date with the latest developments!'), '<a href="http://framework.zend.com/wiki/display/ZFDEV2/Home">', '</a>', '<a href="http://framework.zend.com/zf2/blog">', '</a>', '<a href="https://github.com/zendframework/zf2/issues">', '</a>') ?></p> | ||
<p><a class="btn btn-success pull-right" href="http://framework.zend.com/zf2" target="_blank"><?php echo $this->translate('ZF2 Development Portal') ?> »</a></p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-md-4"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title"><?php echo $this->translate('Discover Modules') ?></h3> | ||
</div> | ||
<div class="panel-body"> | ||
<p><?php echo sprintf($this->translate('The community is working on developing a community site to serve as a repository and gallery for ZF2 modules. The project is available %son GitHub%s. The site is currently live and currently contains a list of some of the modules already available for ZF2.'), '<a href="https://github.com/zendframework/modules.zendframework.com">', '</a>') ?></p> | ||
<p><a class="btn btn-success pull-right" href="http://modules.zendframework.com/" target="_blank"><?php echo $this->translate('Explore ZF2 Modules') ?> »</a></p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-md-4"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title"><?php echo $this->translate('Help & Support') ?></h3> | ||
</div> | ||
<div class="panel-body"> | ||
<p><?php echo sprintf($this->translate('If you need any help or support while developing with ZF2, you may reach us via IRC: %s#zftalk on Freenode%s. We\'d love to hear any questions or feedback you may have regarding the beta releases. Alternatively, you may subscribe and post questions to the %smailing lists%s.'), '<a href="irc://irc.freenode.net/zftalk">', '</a>', '<a href="http://framework.zend.com/wiki/display/ZFDEV/Mailing+Lists">', '</a>') ?></p> | ||
<p><a class="btn btn-success pull-right" href="http://webchat.freenode.net?channels=zftalk" target="_blank"><?php echo $this->translate('Ping us on IRC') ?> »</a></p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters