Created
October 19, 2018 16:46
-
-
Save yakubenko/24419ae01c4e23922d2047d5b79b09cb to your computer and use it in GitHub Desktop.
templates.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
<?php | |
return [ | |
'inputContainer' => '<div class="form-group {{required}}">{{content}}<small class="form-text text-muted">{{help}}</small></div>', | |
'inputContainerError' => '<div class="form-group {{required}} error">{{content}}<small class="form-text text-muted">{{help}}</small>{{error}}</div>', | |
'error' => '<div class="invalid-field">{{content}}</div>', | |
'input' => '<input type="{{type}}" class="form-control" name="{{name}}"{{attrs}} />', | |
// 'checkbox' => '<input type="checkbox" class="form-check-input" name="{{name}}" value="{{value}}"{{attrs}}>', | |
'checkboxFormGroup' => '<div class="form-check">{{label}}</div>', | |
'checkboxWrapper' => '<div class="form-check">{{label}}</div>', | |
'nestingLabel' => '{{hidden}}{{input}}<label {{attrs}}>{{text}}</label>', | |
'radioWrapper' => '<div class="form-check">{{label}}</div>', | |
'radio' => '<input type="radio" class="form-check-input" name="{{name}}" value="{{value}}"{{attrs}}>', | |
'textarea' => '<textarea class="form-control" name="{{name}}"{{attrs}}>{{value}}</textarea>' | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment