From 656387518b6422843f6befa21a96d97160234508 Mon Sep 17 00:00:00 2001 From: eldadfux Date: Thu, 8 Aug 2019 08:09:49 +0300 Subject: [PATCH] Updates for service comp --- app/controllers/shared/web.php | 6 +- app/views/console/account/index.phtml | 100 ++++++++++++++++++++--- app/views/console/home/index.phtml | 7 +- app/views/console/keys/index.phtml | 12 +-- app/views/console/settings/index.phtml | 40 ++++----- app/views/console/tasks/index.phtml | 40 ++++++++- app/views/console/users/index.phtml | 20 ++--- app/views/console/users/view.phtml | 16 ++-- app/views/console/webhooks/index.phtml | 12 +-- app/views/home/auth/confirm.phtml | 7 +- app/views/home/auth/join.phtml | 6 +- app/views/home/auth/recovery.phtml | 4 +- app/views/home/auth/recovery/reset.phtml | 4 +- app/views/home/auth/signin.phtml | 4 +- app/views/home/auth/signup.phtml | 4 +- app/views/layouts/default.phtml | 2 +- public/dist/scripts/app-all.js | 2 +- public/dist/scripts/app.js | 2 +- public/scripts/init.js | 2 +- 19 files changed, 202 insertions(+), 88 deletions(-) diff --git a/app/controllers/shared/web.php b/app/controllers/shared/web.php index e8d18be45..e3e803e10 100644 --- a/app/controllers/shared/web.php +++ b/app/controllers/shared/web.php @@ -6,9 +6,9 @@ use Utopia\Locale\Locale; Locale::$exceptions = false; $roles = [ - 'owner' => Locale::getText('general.roles.owner'), - 'developer' => Locale::getText('general.roles.developer'), - 'admin' => Locale::getText('general.roles.admin'), + ['type' => 'owner', 'label' => Locale::getText('general.roles.owner')], + ['type' => 'developer', 'label' => Locale::getText('general.roles.developer')], + ['type' => 'admin', 'label' => Locale::getText('general.roles.admin')], ]; $layout = new View(__DIR__ . '/../../views/layouts/default.phtml'); diff --git a/app/views/console/account/index.phtml b/app/views/console/account/index.phtml index 1792674d7..c589c0d22 100644 --- a/app/views/console/account/index.phtml +++ b/app/views/console/account/index.phtml @@ -11,14 +11,28 @@ use Utopia\Locale\Locale;