Skip to content
This repository was archived by the owner on Jun 5, 2022. It is now read-only.

AppsDevTeam/BaseForm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

133 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BaseForm

  • Bootstrap 4 renderer
  • all forms are ajax by default - you can turn this off by setting $this->isAjax = false
  • if you want use toggles in a form, just add $form->addGroup('anyNameYouWant') before the element(s) you want to toggle and then do $form['showElement']->addCondition($form::FILLED)->toggle('anyNameYouWant'). After the element(s), just use $form->addGroup(). Method addGroup just wrap elements to div with id attribute set to anyNameYouWant, it won't render any group caption. If you want to render a caption, do it manually in latte and then call {include renderGroup form => $form, group => 'nameOfYourGroup'}
  • if you render a form manually, you can use macro formPair for rendering both label and input including all the related stuff (wrapping div, error div, description div etc.)
  • if you render a form manually, you can use {include errors} for rendering errors
  • you can also render an entire container by {include renderContainer container => $form['container']}
  • empty labels are not rendered
  • submits are rendered as buttons (due to higher flexibility)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors