Skip to content

Commit

Permalink
Merge pull request #216 from FriendsOfCake/form-before-button
Browse files Browse the repository at this point in the history
Form before button
  • Loading branch information
ADmad authored Sep 29, 2017
2 parents 2a59b15 + a536b0e commit a02c9a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ before_script:

script:
- if [[ $PHPCS = 1 ]]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ config/; fi
- if [[ $PHPSTAN = 1 ]]; then vendor/bin/phpstan analyse -c phpstan.neon -l 5 src; fi
- if [[ $PHPSTAN = 1 ]]; then vendor/bin/phpstan analyse -l 5 src; fi

notifications:
email: false
3 changes: 0 additions & 3 deletions phpstan.neon

This file was deleted.

5 changes: 3 additions & 2 deletions src/Template/Element/form.ctp
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
use Cake\Utility\Text;

$formSidebarExists = $this->exists('form.sidebar');
if ($this->exists('form.before_create')) {
echo $this->fetch('form.before_create');
Expand Down Expand Up @@ -30,6 +28,9 @@ if ($this->exists('form.before_create')) {
</div>
<?php endif; ?>
</div>
<?php if ($this->exists('form.before_buttons')) : ?>
<?= $this->fetch('form.before_buttons'); ?>
<?php endif; ?>
<div class="row">
<div class="col-lg-<?= $formSidebarExists ? '8' : '12' ?>">
<div class="form-group">
Expand Down

0 comments on commit a02c9a9

Please sign in to comment.