Last active
September 17, 2015 05:49
-
-
Save RJustice/5b8afc535e10d4fdec0a to your computer and use it in GitHub Desktop.
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
public function panelStart() | |
{ | |
Form::macro('panel_start', function ($title = '') { | |
return '<div class="panel panel-default"> | |
<div class="panel-heading bg-white"> | |
<span class="font-bold">' . $title . '</span> | |
</div> | |
<div class="panel-body">'; | |
}); | |
} | |
public function panelEnd() | |
{ | |
Form::macro('panel_end', function ($submit_label = '') { | |
if (!$submit_label) { | |
return ''; | |
} | |
$result = '</div><footer class="panel-footer"> | |
<button type="submit" class="btn btn-info">' . $submit_label . '</button> | |
</footer></div>'; | |
return $result; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment