Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Commit

Permalink
add spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolineus committed Jun 23, 2014
1 parent cdc0572 commit 50b76dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Netzmacht/Bootstrap/Form/Subscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

use Netzmacht\Bootstrap\Bootstrap;
use Netzmacht\Bootstrap\Helper\Icons;
use Netzmacht\FormHelper\Element\StaticHtml;
use Netzmacht\FormHelper\Event\Events;
use Netzmacht\FormHelper\Event\GenerateEvent;
use Netzmacht\FormHelper\Event\SelectLayoutEvent;
Expand Down Expand Up @@ -163,9 +164,13 @@ public function generate(GenerateEvent $event)

if($widget->bootstrap_addSubmitIconPosition == 'left') {
$position = Node::POSITION_FIRST;
$icon .= ' ';
}
else {
$icon = ' ' . $icon;
}

$submit->addChild($icon, $position);
$submit->addChild(new StaticHtml($icon), $position);
}

$inputGroup->setRight($submit, $inputGroup::BUTTON);
Expand Down

0 comments on commit 50b76dc

Please sign in to comment.