diff --git a/public/css/app.css b/public/css/app.css index 6ccf1995..87fcc4c8 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -799,6 +799,26 @@ body { align-items: center; } +.module-actions .input { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: reverse; + -ms-flex-direction: column-reverse; + flex-direction: column-reverse; + line-height: 1; + font-size: 9px; + font-weight: 400; + text-transform: uppercase; + color: #ababab; + padding: 0 10px; +} + +.module-actions .input label { + margin-top: 3px; +} + .module-actions .button { font-size: 18px; color: #515564; @@ -1142,15 +1162,15 @@ a.settinglink { } #appimage img { - max-width: 150px; + max-width: 95px; } -#sapconfig { +#sapconfig, .newblock { display: none; width: 100%; } -#sapconfig h2 { +#sapconfig h2, .newblock h2 { background: #f2f3f6; padding: 18px 25px; margin-left: -15px; @@ -1163,7 +1183,7 @@ a.settinglink { font-weight: 500; } -#sapconfig .items { +#sapconfig .items, .newblock .items { display: -webkit-box; display: -ms-flexbox; display: flex; diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 96cfafe2..b8a42a4f 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -1,4 +1,4 @@ { - "/css/app.css": "/css/app.css?id=24e9bb4fa993b66f0572", + "/css/app.css": "/css/app.css?id=d60b65455c61760b1750", "/js/app.js": "/js/app.js?id=f18d23b8fc7a094a2c66" } diff --git a/resources/assets/sass/_app.scss b/resources/assets/sass/_app.scss index af3c1397..ab1cb7e3 100644 --- a/resources/assets/sass/_app.scss +++ b/resources/assets/sass/_app.scss @@ -450,7 +450,21 @@ body { .module-actions { display: flex; justify-content:space-between; - align-items: center; + align-items: center; + + .input { + display: flex; + flex-direction: column-reverse; + line-height: 1; + font-size: 9px; + font-weight: 400; + text-transform: uppercase; + color: #ababab; + padding: 0 10px; + label { + margin-top: 3px; + } + } .button { font-size: 18px; @@ -755,11 +769,11 @@ div.create { #appimage { img { - max-width: 150px; + max-width: 95px; } } -#sapconfig { +#sapconfig, .newblock { display: none; width: 100%; h2 { diff --git a/resources/lang/en/app.php b/resources/lang/en/app.php index 2148839e..4589a807 100644 --- a/resources/lang/en/app.php +++ b/resources/lang/en/app.php @@ -73,6 +73,7 @@ return [ 'apps.tag_name' => 'Tag name', 'apps.tags' => 'Tags', 'apps.override' => 'If different to main url', + 'apps.preview' => 'Preview', 'user.user_list' => 'Users', 'user.add_user' => 'Add user', diff --git a/resources/views/items/form.blade.php b/resources/views/items/form.blade.php index dbcf779f..fafb5787 100644 --- a/resources/views/items/form.blade.php +++ b/resources/views/items/form.blade.php @@ -2,20 +2,7 @@
{{ __('app.apps.add_application') }}
- - {{ __('app.buttons.cancel') }} -
-
-
- {!! csrf_field() !!} - {!! Form::hidden('class', '') !!}
- - {!! Form::text('title', null, array('placeholder' => __('app.apps.title'), 'id' => 'appname', 'class' => 'form-control')) !!} -
- - {!! Form::text('url', null, array('placeholder' => __('app.url'), 'id' => 'appurl', 'class' => 'form-control')) !!} -
{!! Form::hidden('pinned', '0') !!} +
+ + {{ __('app.buttons.cancel') }} +
+ +
+ {!! csrf_field() !!} + {!! Form::hidden('class', '') !!} +
+ + {!! Form::text('title', null, array('placeholder' => __('app.apps.title'), 'id' => 'appname', 'class' => 'form-control')) !!}
{!! Form::select('class', App\Application::applist(), null, array('class' => 'form-control')) !!} -
+
+ +
{!! Form::text('colour', null, array('placeholder' => __('app.apps.hex'),'class' => 'form-control color-picker')) !!} -
+
+ +
+ + {!! Form::text('url', null, array('placeholder' => __('app.url'), 'id' => 'appurl', 'class' => 'form-control')) !!} +
+ +
{!! Form::select('tags[]', $tags, $current_tags, ['class' => 'tags', 'multiple']) !!}
+
-
@if(isset($item->icon) && !empty($item->icon) || old('icon')) @@ -60,6 +67,20 @@
+ + + +
+

Preview

+
+ + +
+ @include('items.preview') +
+ + + @if(isset($item) && $item->enhanced())
diff --git a/resources/views/items/preview.blade.php b/resources/views/items/preview.blade.php new file mode 100644 index 00000000..f9f50e4a --- /dev/null +++ b/resources/views/items/preview.blade.php @@ -0,0 +1,21 @@ + +
+
+ @if(isset($item->icon) && !empty($item->icon)) + + @else + + @endif +
+
{{ $item->title ?? '' }}
+ @if($item->enhanced()) +
+ @endif +
+ link_target !!} href="{{ $item->link }}"> +
+ + +