mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-13 03:27:45 +02:00
feat: enhance admin ui with responsive design and ux improvements
- add podcast sidebar navigation - add podcast dashboard with latest episodes - add pagination to podcast episodes - add components helper to reuse ui components (button, data_table, etc.) - enhance podcast and episode forms by splitting them into form sections - add hint tooltips to podcast and episode forms - transform radio inputs as buttons for better ux - replace explicit field by parental_advisory - replace author field by publisher - add podcasts_categories table to set multiple categories - use choices.js to enhance multiselect fields - update Language files - update js dependencies to latest versions closes #31, #9
This commit is contained in:
parent
31b7828e77
commit
2d44b457a0
111 changed files with 3933 additions and 1626 deletions
|
|
@ -86,7 +86,7 @@ class User extends BaseController
|
|||
// Force user to reset his password on first connection
|
||||
$user->forcePasswordReset();
|
||||
|
||||
if (!$userModel->save($user)) {
|
||||
if (!$userModel->insert($user)) {
|
||||
return redirect()
|
||||
->back()
|
||||
->withInput()
|
||||
|
|
@ -150,7 +150,7 @@ class User extends BaseController
|
|||
$userModel = new UserModel();
|
||||
$this->user->forcePasswordReset();
|
||||
|
||||
if (!$userModel->save($this->user)) {
|
||||
if (!$userModel->update($this->user->id, $this->user)) {
|
||||
return redirect()
|
||||
->back()
|
||||
->with('errors', $userModel->errors());
|
||||
|
|
@ -184,7 +184,7 @@ class User extends BaseController
|
|||
// TODO: add ban reason?
|
||||
$this->user->ban('');
|
||||
|
||||
if (!$userModel->save($this->user)) {
|
||||
if (!$userModel->update($this->user->id, $this->user)) {
|
||||
return redirect()
|
||||
->back()
|
||||
->with('errors', $userModel->errors());
|
||||
|
|
@ -205,7 +205,7 @@ class User extends BaseController
|
|||
$userModel = new UserModel();
|
||||
$this->user->unBan();
|
||||
|
||||
if (!$userModel->save($this->user)) {
|
||||
if (!$userModel->update($this->user->id, $this->user)) {
|
||||
return redirect()
|
||||
->back()
|
||||
->with('errors', $userModel->errors());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue