Advertisement
Guest User

Untitled

a guest
May 3rd, 2015
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.12 KB | None | 0 0
  1.         /** =========================================
  2.          * Blinds
  3.         ===========================================*/
  4.  
  5.         $blindsContainer = new LiteralField('', '<div class="blinds-container">');
  6.         $blindFields = new LiteralField('', '<div class="blind-fields">');
  7.  
  8.         $widthOfBlind = new TextField('BlindWidth[]', 'Width of Blind');
  9.         $widthOfBlind->addExtraClass('form-control')
  10.             ->setAttribute('data-parsley-required-message', 'Please enter the <strong>Width of Blind</strong>')
  11.             ->setCustomValidationMessage('Please enter the <strong>Width of Blind</strong>');
  12.  
  13.         $heightOfBlind = new TextField('BlindHeight[]', 'Height of Blind');
  14.         $heightOfBlind->addExtraClass('form-control')
  15.             ->setAttribute('data-parsley-required-message', 'Please enter the <strong>Height of Blind</strong>')
  16.             ->setCustomValidationMessage('Please enter the <strong>Height of Blind</strong>');
  17.  
  18.         $addBlind = new LiteralField('',
  19.             '<p><button class="add-blind btn btn-secondary"><i class="fa fa-plus"></i> Add Another Blind</button></p>'
  20.         );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement