Alerts: replace 'error' class with 'danger'
This commit is contained in:
@@ -115,7 +115,7 @@ class EditTag extends HTMLController
|
||||
|
||||
// Anything missing?
|
||||
if (!empty($form->getMissing()))
|
||||
return $formview->adopt(new Alert('Some data missing', 'Please fill out the following fields: ' . implode(', ', $form->getMissing()), 'error'));
|
||||
return $formview->adopt(new Alert('Some data missing', 'Please fill out the following fields: ' . implode(', ', $form->getMissing()), 'danger'));
|
||||
|
||||
$data = $form->getData();
|
||||
|
||||
@@ -127,7 +127,7 @@ class EditTag extends HTMLController
|
||||
{
|
||||
$return = Tag::createNew($data);
|
||||
if ($return === false)
|
||||
return $formview->adopt(new Alert('Cannot create this tag', 'Something went wrong while creating the tag...', 'error'));
|
||||
return $formview->adopt(new Alert('Cannot create this tag', 'Something went wrong while creating the tag...', 'danger'));
|
||||
|
||||
if (isset($_POST['submit_and_new']))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user