Skip to content

4.12.45-beta

Compare
Choose a tag to compare
@butschster butschster released this 25 Feb 16:08
· 2676 commits to development since this release
  • Added belongsTo and hasOne relations support in forms.
AdminFormElement::text('country.title', 'Country title')->required()
  • Added validation labels
  • Added new class FormButtons
$form = AdminForm::panel();
$form->getButtons()
    ->setSaveButtonText('Save news')
    ->hideSaveAndCloseButton();

// or set custom buttons

$form->setButtons(new \App\Form\Buttons);
  • Added class alias prefix in config file
  • Added success message for creating, updating, deleting and restoring record.
$model->setMessageOnDelete('<i class="fa fa-comment-o fa-lg"></i> Contact deleted');
$model->setMessageOnCreate('<i class="fa fa-check fa-lg"></i> Contact created');
$model->setMessageOnUpdate('<i class="fa fa-check fa-lg"></i> Contact updated');
$model->setMessageOnRestore('<i class="fa fa-check fa-lg"></i> Contact restored');

By default uses messages from lang file.

  • AdminDisplay moved to src directory and renamed to Display
  • Remove getParams method. Use toArray()
  • Move Filter directory to Display