From 0f5e345467256bdad37f5406cc5614aa579e8771 Mon Sep 17 00:00:00 2001 From: Arno Kaimbacher Date: Tue, 23 Apr 2019 13:30:22 +0200 Subject: [PATCH] correct active routes in backend --- composer.lock | 20 ++++----- public/backend/style.css | 16 +++++++ .../views/settings/layouts/app.blade.php | 42 ++++++++++++------- .../views/workflow/editor/index.blade.php | 2 +- .../views/workflow/editor/receive.blade.php | 2 +- .../views/workflow/submitter/index.blade.php | 2 +- .../workflow/submitter/release.blade.php | 4 +- routes/web.php | 30 ++++++------- 8 files changed, 74 insertions(+), 44 deletions(-) diff --git a/composer.lock b/composer.lock index 51cd0b6..b5928bf 100755 --- a/composer.lock +++ b/composer.lock @@ -1697,16 +1697,16 @@ }, { "name": "swiftmailer/swiftmailer", - "version": "v6.2.0", + "version": "v6.2.1", "source": { "type": "git", "url": "https://github.com/swiftmailer/swiftmailer.git", - "reference": "6fa3232ff9d3f8237c0fae4b7ff05e1baa4cd707" + "reference": "5397cd05b0a0f7937c47b0adcb4c60e5ab936b6a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/6fa3232ff9d3f8237c0fae4b7ff05e1baa4cd707", - "reference": "6fa3232ff9d3f8237c0fae4b7ff05e1baa4cd707", + "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/5397cd05b0a0f7937c47b0adcb4c60e5ab936b6a", + "reference": "5397cd05b0a0f7937c47b0adcb4c60e5ab936b6a", "shasum": "" }, "require": { @@ -1755,7 +1755,7 @@ "mail", "mailer" ], - "time": "2019-03-10T07:52:41+00:00" + "time": "2019-04-21T09:21:45+00:00" }, { "name": "symfony/console", @@ -3802,16 +3802,16 @@ }, { "name": "phpunit/phpunit", - "version": "7.5.8", + "version": "7.5.9", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "c29c0525cf4572c11efe1db49a8b8aee9dfac58a" + "reference": "134669cf0eeac3f79bc7f0c793efbc158bffc160" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c29c0525cf4572c11efe1db49a8b8aee9dfac58a", - "reference": "c29c0525cf4572c11efe1db49a8b8aee9dfac58a", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/134669cf0eeac3f79bc7f0c793efbc158bffc160", + "reference": "134669cf0eeac3f79bc7f0c793efbc158bffc160", "shasum": "" }, "require": { @@ -3882,7 +3882,7 @@ "testing", "xunit" ], - "time": "2019-03-26T13:23:54+00:00" + "time": "2019-04-19T15:50:46+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", diff --git a/public/backend/style.css b/public/backend/style.css index 5faca14..01e287e 100644 --- a/public/backend/style.css +++ b/public/backend/style.css @@ -323,6 +323,19 @@ appears on the left side of the page. color: #2097e6; background: #1d272e; } + #menu .pure-menu li.active a::after { + right: 0; + border: solid 8px transparent; + border-right-color: transparent; + content: " "; + height: 0; + width: 0; + position: absolute; + pointer-events: none; + border-right-color: #f1f1f1; + top: 50%; + margin-top: -8px; + } /* This styles the selected menu item `
  • `. @@ -908,6 +921,8 @@ textarea.large, input.large { } + + .dropbox { outline: 2px dashed grey; /* the dash box */ outline-offset: -10px; @@ -943,6 +958,7 @@ textarea.large, input.large { } + .pure-table tr.inprogress { padding: 0.8em; background-color: paleturquoise; diff --git a/resources/views/settings/layouts/app.blade.php b/resources/views/settings/layouts/app.blade.php index 659a7fc..9dee68a 100644 --- a/resources/views/settings/layouts/app.blade.php +++ b/resources/views/settings/layouts/app.blade.php @@ -42,7 +42,7 @@
  • --}} -
  • +
  • Reports @@ -59,7 +59,7 @@ {{--
  • Collections
  • --}} -
  • +
  • Collection Roles
  • @@ -72,12 +72,12 @@ Projects
  • -
  • +
  • Mimetypes
  • @permission('page') -
  • +
  • {{ trans('labels.backend.pages.title') }} @@ -99,22 +99,22 @@
  • @endpermission @permission('dataset-list') -
  • - All my datasets +
  • + All my datasets
  • @endpermission @permission('dataset-editor-list') -
  • +
  • EDITOR PAGE: Released datasets
  • @endpermission @permission('dataset-review-list') -
  • +
  • REVIEW PAGE: Approved datasets
  • @endpermission @permission('dataset-publish-list') -
  • +
  • Publish PAGE: Reviewed datasets
  • @endpermission @@ -158,9 +158,9 @@ EDIT @endpermission -
  • - Logout -
  • + {{--
  • + Logout +
  • --}} @endif @@ -175,15 +175,29 @@
    -

    Dashboard

    + {{-- +

    Dashboard

    --}} +
    diff --git a/resources/views/workflow/editor/index.blade.php b/resources/views/workflow/editor/index.blade.php index f9ef9cd..6cd6cd9 100644 --- a/resources/views/workflow/editor/index.blade.php +++ b/resources/views/workflow/editor/index.blade.php @@ -52,7 +52,7 @@ @if ($dataset->server_state == "released") - + Receive editor task diff --git a/resources/views/workflow/editor/receive.blade.php b/resources/views/workflow/editor/receive.blade.php index e61112b..760bbf7 100644 --- a/resources/views/workflow/editor/receive.blade.php +++ b/resources/views/workflow/editor/receive.blade.php @@ -26,7 +26,7 @@ $message = 'If you are not the desired editor, you can still accept the dataset!!'; @endphp - {!! Form::model($dataset, [ 'method' => 'POST', 'route' => ['publish.workflow.receiveUpdate', $dataset->id], 'id' => 'acceptForm', + {!! Form::model($dataset, [ 'method' => 'POST', 'route' => ['publish.workflow.editor.receiveUpdate', $dataset->id], 'id' => 'acceptForm', 'class' => 'pure-form', 'enctype' => 'multipart/form-data', 'v-on:submit.prevent' => 'checkForm']) !!}
    General diff --git a/resources/views/workflow/submitter/index.blade.php b/resources/views/workflow/submitter/index.blade.php index 8135fdf..d700fdd 100644 --- a/resources/views/workflow/submitter/index.blade.php +++ b/resources/views/workflow/submitter/index.blade.php @@ -55,7 +55,7 @@ @if ($dataset->server_state == "inprogress") - + Release diff --git a/resources/views/workflow/submitter/release.blade.php b/resources/views/workflow/submitter/release.blade.php index 279d3e2..2b8b5a9 100644 --- a/resources/views/workflow/submitter/release.blade.php +++ b/resources/views/workflow/submitter/release.blade.php @@ -16,13 +16,13 @@
    - + BACK
    - {!! Form::model($dataset, [ 'method' => 'POST', 'route' => ['publish.workflow.releaseUpdate', $dataset->id], 'id' => 'releaseForm', + {!! Form::model($dataset, [ 'method' => 'POST', 'route' => ['publish.workflow.submit.releaseUpdate', $dataset->id], 'id' => 'releaseForm', 'class' => 'pure-form', 'enctype' => 'multipart/form-data', 'v-on:submit.prevent' => 'checkForm']) !!}
    General diff --git a/routes/web.php b/routes/web.php index c76c81e..6b6f80c 100644 --- a/routes/web.php +++ b/routes/web.php @@ -55,17 +55,17 @@ Route::group( 'uses' => 'IndexController@store', ]); - Route::get('workflow/index', [ + Route::get('workflow/submit/index', [ 'middleware' => ['permission:dataset-list'], - 'as' => 'workflow.index', 'uses' => 'SubmitController@index', + 'as' => 'workflow.submit.index', 'uses' => 'SubmitController@index', ]); - Route::get('workflow/release/{id}', [ + Route::get('workflow/submit/release/{id}', [ 'middleware' => ['permission:dataset-submit', 'isUserDatasetAdmin:true'], - 'as' => 'workflow.release', 'uses' => 'SubmitController@release', + 'as' => 'workflow.submit.release', 'uses' => 'SubmitController@release', ]); - Route::post('workflow/release/{id}', [ + Route::post('workflow/submit/release/{id}', [ 'middleware' => ['permission:dataset-submit', 'isUserDatasetAdmin:true'], - 'as' => 'workflow.releaseUpdate', 'uses' => 'SubmitController@releaseUpdate', + 'as' => 'workflow.submit.releaseUpdate', 'uses' => 'SubmitController@releaseUpdate', ]); Route::get('workflow/delete/{id}', [ 'middleware' => ['isUserDatasetAdmin:true'], @@ -77,27 +77,27 @@ Route::group( 'middleware' => ['permission:dataset-editor-list'], 'as' => 'workflow.editor.index', 'uses' => 'EditorController@index', ]); - Route::get('workflow/receive/{id}', [ + Route::get('workflow/editor/receive/{id}', [ 'middleware' => ['permission:dataset-receive'], - 'as' => 'workflow.receive', 'uses' => 'EditorController@receive', + 'as' => 'workflow.editor.receive', 'uses' => 'EditorController@receive', ]); - Route::post('workflow/receive/{id}', [ + Route::post('workflow/editor/receive/{id}', [ 'middleware' => ['permission:dataset-receive'], - 'as' => 'workflow.receiveUpdate', 'uses' => 'EditorController@receiveUpdate', + 'as' => 'workflow.editor.receiveUpdate', 'uses' => 'EditorController@receiveUpdate', ]); - Route::get('workflow/edit/{id}', [ + Route::get('workflow/editor/edit/{id}', [ 'middleware' => ['permission:dataset-editor-update'], 'as' => 'workflow.editor.edit', 'uses' => 'EditorController@edit', ]); - Route::post('workflow/edit/{id}', [ + Route::post('workflow/editor/edit/{id}', [ 'middleware' => ['permission:dataset-editor-update'], 'as' => 'workflow.editor.update', 'uses' => 'EditorController@update', ]); - Route::get('workflow/approve/{id}', [ + Route::get('workflow/editor/approve/{id}', [ 'middleware' => ['permission:dataset-approve'], 'as' => 'workflow.editor.approve', 'uses' => 'EditorController@approve', ]); - Route::post('workflow/approve/{id}', [ + Route::post('workflow/editor/approve/{id}', [ 'middleware' => ['permission:dataset-approve'], 'as' => 'workflow.editor.approveUpdate', 'uses' => 'EditorController@approveUpdate', ]); @@ -196,7 +196,7 @@ Route::group( ], function () { //Route::resource('page', 'PageController', ['except' => ['show', 'update']]); - Route::get('user', [ + Route::get('page', [ 'as' => 'page.index', 'uses' => 'PageController@index', ]); Route::get('page/edit/{page}', [