Commit Graph

125 Commits

Author SHA1 Message Date
Thomas Rubini
cfe0277df5
throw a 404 if deleting a non-existing recipe 2023-01-27 10:23:57 +01:00
Thomas Rubini
ed3f3eabc0
Merge pull request #162 from ThomasRubini/recipe_fill_author 2023-01-27 10:20:26 +01:00
Thomas Rubini
2125fdeea6
Only set recipe author ID when inserting 2023-01-27 10:19:05 +01:00
Thomas Rubini
32fccac21c
rename fillRecipeFromPostParams() to fillBasicRecipeAttributes() 2023-01-27 10:18:51 +01:00
95faefd893 fixed deleting recipe, expected post got nothing 2023-01-27 07:35:46 +01:00
ee57bf0711 fixed non shown category 2023-01-27 07:12:40 +01:00
c0a0246e5b fixed particularities 2023-01-26 23:43:46 +01:00
Thomas Rubini
1d9079398b
remove done TODOs 2023-01-26 23:17:13 +01:00
Thomas Rubini
d6cf92b7da
rename 'recipe' to 'instructions' 2023-01-26 22:34:13 +01:00
Thomas Rubini
0fd3e0aa15
delete ingredients not in update request 2023-01-26 21:45:02 +01:00
Thomas Rubini
2a54dd3192
add comments 2023-01-26 21:35:54 +01:00
Thomas Rubini
1e75a5df58
allow to set recipe img when inserting 2023-01-26 21:34:28 +01:00
5845108eb1
Merge pull request #146 from ThomasRubini/verboser_userManagement
verbose usermanagement
2023-01-26 21:12:33 +01:00
c0193ca759 verbose usermanagement 2023-01-26 21:11:50 +01:00
Thomas Rubini
44f8c0e499
add ability to update recipe image 2023-01-26 20:53:32 +01:00
Thomas Rubini
7690615b82
move image processing to a separate function 2023-01-26 20:42:45 +01:00
Thomas Rubini
84ebcd13a4
fix typo on image type verification 2023-01-26 20:21:29 +01:00
Thomas Rubini
3fd908580e
handle errors on user update 2023-01-26 20:21:29 +01:00
Thomas Rubini
2f4128beeb
deal with dates correctly 2023-01-26 20:10:11 +01:00
Thomas Rubini
e04b43f0ad
use UserModel::createFull() instead of constructor 2023-01-26 20:10:04 +01:00
Thomas Rubini
cf7d337c9d
fix function name 2023-01-26 19:50:03 +01:00
Thomas Rubini
dea9dcb80f
do not query user id if not login 2023-01-26 19:23:20 +01:00
Thomas Rubini
7e63369481
Merge pull request #136 from ThomasRubini/recipe_ingredients 2023-01-26 19:21:03 +01:00
Thomas Rubini
25bd38ece7
update recipe ingredients 2023-01-26 19:20:33 +01:00
069fca704e categories 2023-01-26 19:13:39 +01:00
Thomas Rubini
44c785aa01
add ingredients on recipe/create 2023-01-26 18:53:11 +01:00
Thomas Rubini
d62628d0d9
verify return_uri is not empty for redirection 2023-01-26 17:04:57 +01:00
Thomas Rubini
97b39a4552
make apprs use new models + allow users to delete their appr 2023-01-26 16:56:51 +01:00
Thomas Rubini
fcf69dad56
remove all functions to preload recipe attributes 2023-01-26 16:25:59 +01:00
Thomas Rubini
2898ca3345
add recipe/delete action 2023-01-26 16:19:11 +01:00
5d0e19b45f refactored appr model references 2023-01-26 15:47:10 +01:00
Thomas Rubini
e4a3c9665a
make category view use model 2023-01-26 12:01:19 +01:00
Thomas Rubini
3160b12455
pass recipe ID to edit in URL param 2023-01-25 23:11:53 +01:00
Thomas Rubini
300f11bb06
rename getRecipeByID() to getByID() 2023-01-25 23:08:09 +01:00
Thomas Rubini
8ad62d8620
make edit and new actions work 2023-01-25 22:41:22 +01:00
Thomas Rubini
00c103fdd3
get post params with Utils::getOrDie() 2023-01-25 21:57:34 +01:00
Thomas Rubini
b439628d0e
redirect to recipe on creation 2023-01-25 21:51:19 +01:00
Thomas Rubini
cba3f90657
add recipe/create action 2023-01-25 21:49:22 +01:00
Thomas Rubini
d676042792
do not make an error when user doesn't fill out all fields to update 2023-01-25 17:01:50 +01:00
Thomas Rubini
112f4daf81
do not call queryImg() twice 2023-01-25 16:50:05 +01:00
Thomas Rubini
7baf1bdcf3
rename some methods 2023-01-25 16:46:59 +01:00
Thomas Rubini
752796fab3
Show 3 random recipes on home page 2023-01-25 16:14:46 +01:00
Thomas Rubini
63f8b9468a
start to adapt views to new Recipe Model 2023-01-25 15:58:07 +01:00
9633e59e5e refactored recipeModel 2023-01-25 15:37:20 +01:00
Thomas Rubini
1e64bbf286
use ints instead of numbers for DISABLED property 2023-01-24 21:04:09 +01:00
Thomas Rubini
92544228d2
add method manageUser/update 2023-01-24 21:03:18 +01:00
Thomas Rubini
2bfec0df03
force admin status everywhere on ManagerUser Controller 2023-01-24 21:01:02 +01:00
Thomas Rubini
d0648e30d0
Merge pull request #71 from ThomasRubini/manage-users-view 2023-01-24 21:00:24 +01:00
Thomas Rubini
b53dd6844e
remove old comment 2023-01-24 20:13:58 +01:00
Thomas Rubini
1a1226700b
require login to create a new recipe 2023-01-24 20:12:29 +01:00