-
+
-
-
+
+ {{ Form::close() }}
About Custom Fields
Custom fields allow you to add arbitrary attributes to assets.
+@section('moar_scripts')
+
+@stop
+
+
@stop
diff --git a/resources/views/custom_fields/show.blade.php b/resources/views/custom_fields/show.blade.php
index e32a76fed2..082ff02ad0 100644
--- a/resources/views/custom_fields/show.blade.php
+++ b/resources/views/custom_fields/show.blade.php
@@ -37,9 +37,10 @@
|
{{ trans('admin/custom_fields/general.order') }} |
- {{ trans('admin/custom_fields/general.field_name') }} |
+ {{ trans('admin/custom_fields/general.field_name') }} |
{{ trans('admin/custom_fields/general.field_format') }} |
{{ trans('admin/custom_fields/general.field_element') }} |
+ {{ trans('admin/custom_fields/general.encrypted') }} |
{{ trans('admin/custom_fields/general.required') }} |
|
@@ -71,6 +72,7 @@
{{$field->name}} |
{{$field->format}} |
{{$field->element}} |
+
{{ $field->field_encrypted=='1' ? trans('general.yes') : trans('general.no') }} |
{{$field->pivot->required ? "REQUIRED" : "OPTIONAL"}} |
Remove |
diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php
index f59ad3d516..a2edef1c58 100755
--- a/resources/views/dashboard.blade.php
+++ b/resources/views/dashboard.blade.php
@@ -141,7 +141,7 @@
@if (($activity->assetlog) && ($activity->asset_type=="hardware"))
- {{ $activity->assetlog->showAssetName() }}
+ {{ $activity->assetlog->asset_tag }} - {{ $activity->assetlog->showAssetName() }}
@elseif (($activity->licenselog) && ($activity->asset_type=="software"))
{{ $activity->licenselog->name }}
@elseif (($activity->consumablelog) && ($activity->asset_type=="consumable"))
diff --git a/resources/views/hardware/edit.blade.php b/resources/views/hardware/edit.blade.php
index 53a469ecea..55b8778c71 100755
--- a/resources/views/hardware/edit.blade.php
+++ b/resources/views/hardware/edit.blade.php
@@ -569,5 +569,28 @@ $(function () {
});
});
+
+
+
+
@stop
@stop
diff --git a/resources/views/hardware/import.blade.php b/resources/views/hardware/import.blade.php
index cb8ff0f714..e5c1d4b415 100644
--- a/resources/views/hardware/import.blade.php
+++ b/resources/views/hardware/import.blade.php
@@ -9,6 +9,86 @@
{{-- Page content --}}
@section('content')
+
+{{-- Modal import dialog --}}
+
+@if (session()->has('import_errors'))
+
+
+
+ Warning {{trans('admin/hardware/message.import.errorDetail')}}
+
+
+
+
+
+
+ Asset |
+ Errors |
+
+
+ @foreach (session('import_errors') as $asset => $itemErrors)
+
+ {{ $asset }} |
+
+ @foreach ($itemErrors as $field => $values )
+ {{ $field }}:
+ @foreach( $values as $errorString)
+ {{$errorString[0]}}
+ @endforeach
+
+ @endforeach
+ |
+
+ @endforeach
+
+
+
+
+
+@endif
+
+
+
+
+
@@ -40,8 +120,6 @@
-
-
File |
@@ -56,8 +134,8 @@
{{ date("M d, Y g:i A", $file['modified']) }} |
{{ $file['filesize'] }} |
-
- Process
+ Process
+
|
@endforeach
@@ -66,37 +144,9 @@
-
- @if (session()->has('import_errors'))
-
-
- Warning {{trans('admin/hardware/message.import.errorDetail')}}
-
-
-
- Asset |
- Errors |
-
-
- @foreach (session('import_errors') as $asset => $itemErrors)
-
- {{ $asset }} |
-
- @foreach ($itemErrors as $field => $values )
- {{ $field }}:
- @foreach( $values as $errorString)
- {{$errorString[0]}}
- @endforeach
-
- @endforeach
- |
-
- @endforeach
-
-
-
- @endif
+
+
@section('moar_scripts')
@@ -149,8 +199,7 @@
$('.progress-bar-text').html('Finished!');
$('.progress-checkmark').fadeIn('fast').html('');
$.each(data.result.files, function (index, file) {
- $('' + file.name + ' | Just now | ' + file.filesize + ' | Process | ').prependTo("#upload-table > tbody");
- //$('').text(file.name).appendTo(document.body);
+ $(' | ' + file.name + ' | Just now | ' + file.filesize + ' | Process | ').prependTo("#upload-table > tbody");
});
}
$('#progress').removeClass('active');
@@ -159,6 +208,14 @@
}
});
});
+
+ // Modal Import options handling
+ $('#importModal').on("show.bs.modal", function(event) {
+ var link = $(event.relatedTarget);
+ var filename = link.data('filename');
+ $(this).find('.modal-title').text("Import File: " + filename );
+ $("#modal-filename").val(filename);
+ });
@stop
diff --git a/resources/views/hardware/index.blade.php b/resources/views/hardware/index.blade.php
index 314c40aba6..a5408b2ff4 100755
--- a/resources/views/hardware/index.blade.php
+++ b/resources/views/hardware/index.blade.php
@@ -65,7 +65,7 @@
data-toolbar="#toolbar"
class="table table-striped"
id="table"
- data-url="{{route('api.hardware.list', array(''=>e(Input::get('status')),'order_number'=>e(Input::get('order_number'))))}}"
+ data-url="{{route('api.hardware.list', array(''=>e(Input::get('status')),'order_number'=>e(Input::get('order_number')), 'status_id'=>e(Input::get('status_id'))))}}"
data-cookie="true"
data-click-to-select="true"
data-cookie-id-table="{{ e(Input::get('status')) }}assetTable-{{ config('version.hash_version') }}">
@@ -95,7 +95,16 @@
{{ trans('admin/hardware/table.checkout_date') }} |
{{ trans('admin/hardware/form.expected_checkin') }} |
@foreach(\App\Models\CustomField::all() AS $field)
- {{$field->name}} |
+
+
+
+ @if ($field->field_encrypted=='1')
+
+ @endif
+
+ {{$field->name}}
+ |
+
@endforeach
{{ trans('general.created_at') }} |
{{ trans('admin/hardware/table.change') }} |
diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.php
index 7cfdab9935..676061b8ed 100755
--- a/resources/views/hardware/view.blade.php
+++ b/resources/views/hardware/view.blade.php
@@ -121,15 +121,34 @@
@if ($asset->model->fieldset)
@foreach($asset->model->fieldset->fields as $field)
- {{ $field->name }} |
-
+ | {{ $field->name }}
- @if (($field->format=='URL') && ($asset->{$field->db_column_name()}!=''))
- {{ $asset->{$field->db_column_name()} }}
- @else
- {{ $asset->{$field->db_column_name()} }}
+
+ |
+
+ @if ($field->field_encrypted=='1')
+
+ @endif
+
+ @if ($field->isFieldDecryptable($asset->{$field->db_column_name()} ))
+
+ @can('admin')
+ @if (($field->format=='URL') && ($asset->{$field->db_column_name()}!=''))
+ {{ \App\Helpers\Helper::gracefulDecrypt($field, $asset->{$field->db_column_name()}) }}
+ @else
+ {{ \App\Helpers\Helper::gracefulDecrypt($field, $asset->{$field->db_column_name()}) }}
+ @endif
+ @else
+ {{ strtoupper(trans('admin/custom_fields/general.encrypted')) }}
+ @endcan
+
+ @else
+ @if (($field->format=='URL') && ($asset->{$field->db_column_name()}!=''))
+ {{ $asset->{$field->db_column_name()} }}
+ @else
+ {{ $asset->{$field->db_column_name()} }}
+ @endif
@endif
-
|
@@ -269,13 +288,13 @@
@if ($asset->image)
-
+
@elseif ($asset->model->image!='')
-
+
@endif
@if (App\Models\Setting::getSettings()->qr_code=='1')
-
+
@endif
@if (($asset->assigneduser) && ($asset->assigned_to > 0) && ($asset->deleted_at==''))
diff --git a/resources/views/layouts/basic.blade.php b/resources/views/layouts/basic.blade.php
index 850b6c3fdd..e6b7202ebb 100644
--- a/resources/views/layouts/basic.blade.php
+++ b/resources/views/layouts/basic.blade.php
@@ -11,9 +11,7 @@
-
-
-
+
diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.php
index 9b119d9374..d8b2d71c65 100644
--- a/resources/views/layouts/default.blade.php
+++ b/resources/views/layouts/default.blade.php
@@ -75,12 +75,20 @@
};
-
-
-
+
+
+
- ey
+
diff --git a/resources/views/models/custom_fields_form.blade.php b/resources/views/models/custom_fields_form.blade.php
index 8097e2c900..9becec8fb4 100644
--- a/resources/views/models/custom_fields_form.blade.php
+++ b/resources/views/models/custom_fields_form.blade.php
@@ -1,13 +1,40 @@
@if($model->fieldset)
@foreach($model->fieldset->fields AS $field)
-
diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.php
index 022288e66a..8eae09e113 100755
--- a/resources/views/users/edit.blade.php
+++ b/resources/views/users/edit.blade.php
@@ -406,8 +406,6 @@ $(document).ready(function(){
}
});
- console.dir($('.superuser'));
-
$('#genPassword').pGenerator({
'bind': 'click',
'passwordElement': '#password',
|