From 3ca5d39c6651f370739a6a58882b2708093bcb75 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 1 Nov 2017 23:44:31 -0700 Subject: [PATCH] Hide upload button if app is locked --- resources/views/importer/import.blade.php | 4 +++ resources/views/users/import.blade.php | 32 ++++++++++++++++++----- 2 files changed, 29 insertions(+), 7 deletions(-) diff --git a/resources/views/importer/import.blade.php b/resources/views/importer/import.blade.php index ce64f6fda..b32372833 100644 --- a/resources/views/importer/import.blade.php +++ b/resources/views/importer/import.blade.php @@ -29,12 +29,16 @@
+ + @if (!config('app.lock_passwords')) Select Import File... + @endif +
diff --git a/resources/views/users/import.blade.php b/resources/views/users/import.blade.php index 81e767b69..285e89e60 100644 --- a/resources/views/users/import.blade.php +++ b/resources/views/users/import.blade.php @@ -13,12 +13,17 @@ Create a User {{-- Page content --}} @section('content') - +
+ + @if (config('app.lock_passwords')) +

CSV uploads are disabled on the demo.

+ @endif + @@ -41,14 +46,22 @@ Create a User Any additional fields to the right of those fields will be ignored. Email is optional, however users will not be able to recover their passwords or receive EULAs if you do not provide an email address. If you wish to include a company association, you must reference the ID number of an existing company - companies will not be created on the fly.

- @if (config('app.lock_passwords')) -

Note: Email notification for users is disabled for this installation.

- @endif -
+ + +
- + + Select Import File... + @if (config('app.lock_passwords')) + + @else + + @endif + + +
@@ -81,7 +94,12 @@ Create a User