Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** =========================================
- * Blinds
- ===========================================*/
- $blindsContainer = new LiteralField('', '<div class="blinds-container">');
- $blindFields = new LiteralField('', '<div class="blind-fields">');
- $widthOfBlind = new TextField('BlindWidth[]', 'Width of Blind');
- $widthOfBlind->addExtraClass('form-control')
- ->setAttribute('data-parsley-required-message', 'Please enter the <strong>Width of Blind</strong>')
- ->setCustomValidationMessage('Please enter the <strong>Width of Blind</strong>');
- $heightOfBlind = new TextField('BlindHeight[]', 'Height of Blind');
- $heightOfBlind->addExtraClass('form-control')
- ->setAttribute('data-parsley-required-message', 'Please enter the <strong>Height of Blind</strong>')
- ->setCustomValidationMessage('Please enter the <strong>Height of Blind</strong>');
- $addBlind = new LiteralField('',
- '<p><button class="add-blind btn btn-secondary"><i class="fa fa-plus"></i> Add Another Blind</button></p>'
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement