From 06fcf3e07d79c720b56f0db955a42e828c6cc1e0 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 12 Aug 2016 16:01:34 -0700 Subject: [PATCH] Import history blade --- resources/views/hardware/history.blade.php | 157 +++++++++++++++++++++ 1 file changed, 157 insertions(+) create mode 100644 resources/views/hardware/history.blade.php diff --git a/resources/views/hardware/history.blade.php b/resources/views/hardware/history.blade.php new file mode 100644 index 0000000000..6230853f9a --- /dev/null +++ b/resources/views/hardware/history.blade.php @@ -0,0 +1,157 @@ +@extends('layouts/default') + +{{-- Page title --}} +@section('title') + Import History + @parent +@stop + +@section('header_right') + {{ trans('general.back') }} +@stop + +{{-- Page content --}} +@section('content') + + +
+
+
+
+
+
+ + + + @if (Session::get('message')) +

+ You have an error in your CSV file:
+ {{ Session::get('message') }} +

+ @endif + +

+ Upload a CSV that contains asset history. The assets MUST already exist in the system, or they will be skipped. Matching assets for history import happens against the asset tag. +

+ +

Fields included in the CSV must match the headers: Date, Tag, Name, Action. Any additional fields will be ignored.

+ +

Date should be the checkin/checkout date. Tag should be the asset tag. Name should be the user's name (firstname lastname). Action should be either checkin or checkout.

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

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

+ @endif + +
+ +
+ +
+
+ + + + + +
+
+
+
+ {{ Form::checkbox('create_users', '1', Input::old('create_users')) }} Create users if they do not exist? +
+
+ + +
+
+
+
+ {{ Form::checkbox('match_firstnamelastname', '1', Input::old('match_firstnamelastname')) }} Try to match users by firstname.lastname (jane.smith) format +
+
+ + +
+
+
+
+ {{ Form::checkbox('match_flastname', '1', Input::old('match_flastname')) }} Try to match users by first initial last name (jsmith) format +
+
+ + +
+
+
+
+ {{ Form::checkbox('match_firstname', '1', Input::old('match_firstname')) }} Try to match users by first name (jane) format +
+
+ + +
+
+
+
+ {{ Form::checkbox('match_email', '1', Input::old('match_email')) }} Try to match users by email as username +
+
+ + +
+
+
+
+ {{ Form::checkbox('checkin_date', '1', Input::old('checkin_date')) }} If no checkin date info is available, should we generate a checkin right before the next checkout? +
+
+ +
+ + + +
+ + + + + + + + + +
+ + @if (isset($status)) + + @foreach($status['error'] as $type => $msg) + + @endforeach + + @foreach($status['success'] as $type => $msg) + + @endforeach +
{{ $msg }}
{{ $msg }}
+ @endif + +
+ +@stop