diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-05-31 03:39:24 +0300 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-05-31 03:39:24 +0300 |
| commit | d21f6ba14c8e15a5d0d44f82bea35c9e89eabbb9 (patch) | |
| tree | 74216f87c05181b0ac7a3c252d76a1160799dfc0 /public/app/routes | |
| parent | 304613216a2dfa4701c50c08dcad1eddaf2919b9 (diff) | |
| download | gyraf1gov-d21f6ba14c8e15a5d0d44f82bea35c9e89eabbb9.tar.gz gyraf1gov-d21f6ba14c8e15a5d0d44f82bea35c9e89eabbb9.tar.bz2 gyraf1gov-d21f6ba14c8e15a5d0d44f82bea35c9e89eabbb9.zip | |
manage petitions; in progress
Diffstat (limited to 'public/app/routes')
| -rw-r--r-- | public/app/routes/user.php | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/public/app/routes/user.php b/public/app/routes/user.php index 12ca7d2..4a09801 100644 --- a/public/app/routes/user.php +++ b/public/app/routes/user.php @@ -88,19 +88,30 @@ if (Auth::is_connected()) { ]); }); - // file of petitions + // request PAGE list-my-petitions // --- -- -- - - - Route::add('/user/petitions', function() { - Render::view('admin/invite'); + Render::view('user/panel',[ + 'is_admin' => Auth::in_admin_group(), + 'content' => 'own_petitions', + 'user' => json_decode(json_encode( + Auth::user_data(), JSON_UNESCAPED_UNICODE + )) + ]); + }); + + // requst RESULTS list my petitions + Route::add('/user/get/petitions', function() { + Office::user_petitions(); }); - // request New petition form + // request NEW petition FORM // --- -- -- - - - Route::add('/petition/([0-9a-z\-_]*)', function($tag) { Office::request_petition($tag); }); - // request existing petition + // request EXISTING PETITION // --- -- -- - - - Route::add('/petition/signature/([0-9a-f]*)', function($signature) { Office::filter_request_petition($signature); |
