Commit Graph

69 Commits

Author SHA1 Message Date
AudricV
40500baf3b
Rename manage user view in ManageUserController
Also remove debug output code and pass query and search results in an array
2023-01-24 19:20:12 +01:00
Thomas Rubini
8e387abaed
modify view to fit new user model 2023-01-24 19:13:10 +01:00
Thomas Rubini
8958fa5998
fix typo in variables names 2023-01-24 19:01:47 +01:00
d73ba69a07
finished userModel refactor 2023-01-24 18:57:46 +01:00
1919fb359b
started model refactor 2023-01-24 18:50:21 +01:00
Thomas Rubini
6f57b5a189
link model controller and view to be able to post an appr 2023-01-24 18:39:47 +01:00
Thomas Rubini
b940a1226f
Fix - show the default image on non existant user 2023-01-24 18:26:07 +01:00
Thomas Rubini
7b546cd565
show the default image on non existant user/recipe 2023-01-24 18:08:55 +01:00
Thomas Rubini
02a53db50c
add recipe/img controller action 2023-01-24 18:07:12 +01:00
Thomas Rubini
e9726ad111
use the svg file as the default profile picture 2023-01-24 18:04:39 +01:00
Thomas Rubini
b8814e5220
redirect on appr creation/deletion 2023-01-24 11:37:07 +01:00
Thomas Rubini
66d4a89bdb
Use error handling system in all controllers 2023-01-24 09:49:07 +01:00
Thomas Rubini
84788b31e2
use model for recipe/edit 2023-01-23 22:50:12 +01:00
Thomas Rubini
ba9b1439b5
handle cases where user doesn't exit/doesn't have a profile pic 2023-01-23 20:45:37 +01:00
Thomas Rubini
0c1dc52d7d
add action to get user profile picture 2023-01-23 20:32:38 +01:00
Thomas Rubini
a4fcfb08e3
store profile picture in database when uploaded 2023-01-23 18:55:13 +01:00
Thomas Rubini
40ef4800d7
Merge pull request #54 from ThomasRubini/user_delete_admin 2023-01-23 14:18:33 +01:00
Thomas Rubini
f2418991cd
add admin action to delete accounts 2023-01-23 13:58:29 +01:00
Thomas Rubini
de8301d173
verify int arguments are ints 2023-01-23 13:52:17 +01:00
Thomas Rubini
ac78ec31fd
make final version of structure send to recipe view 2023-01-23 13:33:22 +01:00
Thomas Rubini
98ac177ed0
add possibility for users to delete their own appreciations 2023-01-22 21:32:27 +01:00
Thomas Rubini
ee18ee7619
add AprController with create and delete action (for admins) 2023-01-22 21:18:13 +01:00
Thomas Rubini
00f80b9094
refactor getFullRecipeWithComments to getFullRecipeWithApprs 2023-01-22 20:54:44 +01:00
Thomas Rubini
8a5d6e4cfc
Alias default action to search action in ManagerUser controller 2023-01-20 19:12:54 +01:00
Thomas Rubini
58e47ccb94
refactor view manageUser/default to manageUser/search 2023-01-20 19:12:54 +01:00
Thomas Rubini
9b0013ba9f
use model for ManageUser search action 2023-01-20 19:12:54 +01:00
Thomas Rubini
3361babf05
finish controller manageUser/search 2023-01-20 19:12:54 +01:00
Thomas Rubini
f7e0f5885f
use Kernel Utils getOrDie function 2023-01-20 19:12:54 +01:00
Thomas Rubini
637782f907
refactor admin checking function to Session 2023-01-20 19:12:54 +01:00
Thomas Rubini
b290394181
start to make manageUser/search 2023-01-20 19:12:54 +01:00
Thomas Rubini
fd9e25ca8c
create ManageUserController and admin-only access 2023-01-20 19:12:54 +01:00
Thomas Rubini
5f61d15a89
add search functionality to RecipeModel 2023-01-20 18:30:16 +01:00
Thomas Rubini
7c6a5441a7
refactor 'search_term' to 'query' 2023-01-20 18:25:32 +01:00
Thomas Rubini
28810d0b7c
change refs to view search/search to recipe/search 2023-01-20 18:21:39 +01:00
Thomas Rubini
38e4e16856
add search action 2023-01-20 18:08:27 +01:00
Thomas Rubini
219a5b0f5d
add kernel class 'Utils' with 'getOrDie()' 2023-01-20 17:58:06 +01:00
Capelier-Marla
6a375e97a7 now category display imgs and redirect to the right page 2023-01-20 10:04:49 +01:00
Capelier-Marla
f8e81d6136 renamed all categories in category 2023-01-20 09:50:54 +01:00
Thomas Rubini
6a91c2a9be
change keys passed to the view 2023-01-20 09:20:57 +01:00
Nicolas
69ee3faa65 fix category page with controller 2023-01-19 16:55:09 +01:00
Thomas Rubini
4c02a3ec74
add CategoriesController 2023-01-19 16:17:45 +01:00
Capelier-Marla
2bb1eb18d9 fixed recipes view and translations 2023-01-18 14:21:26 +01:00
Capelier-Marla
12a6d649a4 edit page done from data in Database and has dynamic js 2023-01-18 13:54:11 +01:00
Thomas Rubini
7f3ba9a918
Merge pull request #21 from ThomasRubini/getordie 2023-01-17 16:05:08 +01:00
Thomas Rubini
0eadb9f388
refactor get_or_die() to getOrDie() 2023-01-17 16:04:46 +01:00
Thomas Rubini
f3109c51a0
Add user/delete method 2023-01-17 16:03:49 +01:00
Thomas Rubini
19cf44bc00
Create /user/update route 2023-01-17 15:53:15 +01:00
Capelier-Marla
2469823f9d
moved edit page to user view, to replace view.php, and edited Controller to show the right page 2023-01-17 15:24:38 +01:00
Thomas Rubini
22d8e271b6
Set the default user action to view/edit 2023-01-17 15:05:32 +01:00
Thomas Rubini
a14404f958
Redirect user from /user/login from /user/view if login 2023-01-17 15:00:58 +01:00