Commit graph

50 commits

Author SHA1 Message Date
mwalbeck
090da3469a Random password is now default when creating a user, also an option when editing. Mods part of master group go straight to tests when clicking show test 2016-11-03 16:19:16 +01:00
mwalbeck
c91765e828 Added reset password functionality, and added a random password generator function 2016-11-01 16:38:38 +01:00
mwalbeck
4fc0d5c793 Added session flashes and validation errors to views and add session flashes in controllers 2016-11-01 13:03:39 +01:00
mwalbeck
614258af16 Changed the view you are redirected when creating a user, and changed password compare to use the laravel validator instead 2016-10-31 14:35:00 +01:00
mwalbeck
1c28345ddf Moderators can now create moderators and upgrade or downgrade other users, but not administrators 2016-10-30 00:37:15 +02:00
mwalbeck
0863dbb175 fixed so moderator can't edit or delete administrators in the same group, fixed so delete button actually works 2016-10-29 23:45:00 +02:00
mwalbeck
24a3d3940a Made it possible for mod to edit their own group, and see the detail view for that group, fixed a bug where redirect routed to the admin version of view 2016-10-29 23:01:29 +02:00
mwalbeck
b00f436e10 Made a show view for groups 2016-10-29 22:23:54 +02:00
mwalbeck
b98def63fb Added simple admin and mod show view for users 2016-10-28 22:22:54 +02:00
mwalbeck
74eedfdba4 Changed delete view to a popup instead of seperate page, and a few layout changes 2016-10-28 14:44:31 +02:00
mwalbeck
f06ce731bf added 3 error pages with common layout base 2016-10-28 13:06:29 +02:00
mwalbeck
d2aaf8addc made the question titles on test show view expandable to show question and options 2016-10-27 17:24:41 +02:00
mwalbeck
12f6d58099 fixed bug password wouldn't get hashed when changed through admin/mod view, added so group 1 test can be seen by every mod 2016-10-27 12:59:17 +02:00
mwalbeck
6511f3a248 Added the rest of the policy files 2016-10-26 16:17:58 +02:00
mwalbeck
1233f02d40 Cleaned up admin and mod authorization on routes and added UserPolicy 2016-10-26 13:10:30 +02:00
mwalbeck
66bf4390a1 added middleware to authenticate access to admin and mod views, plus seperated a few controllers 2016-10-25 20:30:05 +02:00
mwalbeck
6b8526971b fixed bug where tests page in moderator view wouldn't load 2016-10-25 16:10:54 +02:00
mwalbeck
6f78428814 Added edit page with validation for users 2016-10-25 13:11:32 +02:00
mwalbeck
d2060660d4 Added missed validation, few style changes and added dynamic field adding of option fields in question creation and edit 2016-10-24 19:12:23 +02:00
mwalbeck
aa6e5653e1 Added validation for options, change a bit of layout and added some html5 validation 2016-10-24 13:38:02 +02:00
mwalbeck
71c79d3b2a Added validation to site with barebones error reporting to users 2016-10-22 17:22:26 +02:00
mwalbeck
7af12d0f5b Added validation to tests creation and fixed a bug related to amount of wrong questions allowed in tests 2016-10-22 13:57:56 +02:00
mwalbeck
c8ebd1756f added better feedback page on test after each question 2016-09-29 20:53:57 +02:00
mwalbeck
d4d8801f8b reduced database queries when loading home page and added time limit and date completed to home page 2016-09-28 15:26:43 +02:00
mwalbeck
7d160134b8 added full time limit functionality for tests 2016-09-28 11:28:12 +02:00
mwalbeck
40aa77386b small layout changes and added time stamp in session to set time limit on test 2016-09-26 17:34:05 +02:00
mwalbeck
bde382c1ff fixed bug where refreshing on question page during test taking would advance the question 2016-09-24 22:20:17 +02:00
mwalbeck
8afccdc7f5 added seed for questions and options and passed test now show up under completed tests 2016-09-23 16:02:13 +02:00
mwalbeck
711dd87d32 refactored a bit of code used for create of questions and options 2016-09-22 18:45:09 +02:00
mwalbeck
f010bbf128 fixed test taking logic to accommodate multi answer questions 2016-09-22 15:57:39 +02:00
mwalbeck
d4d634363d added functionality for multi answer questions and 2 different question types 2016-09-22 14:28:27 +02:00
mwalbeck
a1af585133 added views and functions for adding, editing and deleting groups through admin interface 2016-09-21 20:37:52 +02:00
mwalbeck
40992d676a added routing for mod section and put admin/mod uri selection into a function to one view can be used for both 2016-09-21 15:53:54 +02:00
mwalbeck
3569d1909b admin and mod view for test and users now have group show, and creating tests and users have dropdown for groups 2016-09-21 12:39:29 +02:00
mwalbeck
32d5e034e1 added some seeds and change some small details 2016-09-19 15:25:20 +02:00
mwalbeck
fd715bda05 refactored a bit of code and edit the views to be more DRY 2016-09-18 15:00:44 +02:00
mwalbeck
fc2cbef237 refactored some admin function to prepar for the addition of the moderator section 2016-09-16 17:37:31 +02:00
mwalbeck
8fb7e8576f users are now only showns general tests and tests from their groups and test info is now stored in testdetails or failure or completion 2016-09-12 14:51:03 +02:00
mwalbeck
a3dca2142e a bit more refactoring and changed the layout of views/admin folder 2016-09-11 19:28:27 +02:00
mwalbeck
5a330b1e64 did a bit more refactoring 2016-09-11 16:14:32 +02:00
mwalbeck
75253b0b64 finished basic test taking functionality 2016-09-10 18:08:33 +02:00
mwalbeck
7987e74a6e did some more refactoring and add more test taking functionality 2016-09-10 15:17:31 +02:00
mwalbeck
58551fc668 added a comment to User model 2016-09-09 19:36:48 +02:00
mwalbeck
bc6183991d more logic for test taking and started moving logic from controllers to models 2016-09-09 12:19:49 +02:00
mwalbeck
3a8ec97891 started on logic for taking tests 2016-09-07 18:26:58 +02:00
mwalbeck
74cbeb2eb8 added delete for whole test, settings for users and small layout changes 2016-09-06 15:34:17 +02:00
mwalbeck
d50b6214ed added new, edit and delete functionality for questions 2016-09-02 14:52:02 +02:00
mwalbeck
f36e6a2c9d added new, edit and delete functionality for users and refined tests 2016-09-01 21:21:36 +02:00
mwalbeck
1e4b7fd57c added new, edit and delete functionality for tests 2016-09-01 14:07:42 +02:00
mwalbeck
6dd296a664 added files 2016-09-01 11:37:49 +02:00