Alerts: replace 'error' class with 'danger'
This commit is contained in:
@@ -123,7 +123,7 @@ class EditAlbum 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();
|
||||
|
||||
@@ -140,7 +140,7 @@ class EditAlbum extends HTMLController
|
||||
$data['kind'] = 'Album';
|
||||
$newTag = Tag::createNew($data);
|
||||
if ($newTag === false)
|
||||
return $formview->adopt(new Alert('Cannot create this album', 'Something went wrong while creating the album...', 'error'));
|
||||
return $formview->adopt(new Alert('Cannot create this album', 'Something went wrong while creating the album...', 'danger'));
|
||||
|
||||
if (isset($_POST['submit_and_new']))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user