mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-02-21 12:10:34 +09:00
search functionality and settings fixes
This commit is contained in:
67
resources/assets/sass/_app.scss
vendored
67
resources/assets/sass/_app.scss
vendored
@@ -66,6 +66,9 @@ body {
|
||||
}
|
||||
|
||||
}
|
||||
main {
|
||||
flex-direction: column;
|
||||
}
|
||||
main, #sortable {
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
@@ -387,7 +390,7 @@ div.create {
|
||||
display: block;
|
||||
font-weight: 300;
|
||||
}
|
||||
input {
|
||||
input, select {
|
||||
width: 100%;
|
||||
border: 1px solid #dedfe2;
|
||||
padding: 10px;
|
||||
@@ -512,4 +515,66 @@ div.create {
|
||||
border: none;
|
||||
appearance: none;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
a.settinglink {
|
||||
color: $app-text;
|
||||
font-size: 13px;
|
||||
margin: 15px 5px;
|
||||
display: inline-block;
|
||||
font-weight: 700;
|
||||
}
|
||||
.setting-view-image {
|
||||
margin-bottom: 20px;
|
||||
display: inline-block;
|
||||
img {
|
||||
max-width: 330px;
|
||||
}
|
||||
}
|
||||
|
||||
.searchform {
|
||||
display: flex;
|
||||
align-self: flex-start;
|
||||
text-align: center;
|
||||
margin: 50px auto;
|
||||
padding: 14px;
|
||||
background: rgba(0,0,0,0.2);
|
||||
border-radius: 14px;
|
||||
box-shadow: inset 0px 1px 6px 0 rgba(0,0,0,0.3);
|
||||
border-top: 1px solid rgba(0,0,0,0.5);
|
||||
border-bottom: 1px solid rgba(255,255,255,0.35);
|
||||
position: relative;
|
||||
width: 100%;
|
||||
max-width: 500px;
|
||||
form {
|
||||
width: 100%;
|
||||
}
|
||||
.input-container {
|
||||
background: white;
|
||||
border-radius: 5px;
|
||||
box-shadow: 0px 0px 5px 0 rgba(0,0,0,0.4);
|
||||
overflow: hidden;
|
||||
}
|
||||
input {
|
||||
padding: 17px 15px;
|
||||
font-size: 15px;
|
||||
border: 0 none;
|
||||
width: 100%;
|
||||
background: transparent;
|
||||
}
|
||||
button {
|
||||
position: absolute;
|
||||
right: 14px;
|
||||
top: 14px;
|
||||
border: none;
|
||||
font-size: 16px;
|
||||
padding: 7px 15px;
|
||||
line-height: 37px;
|
||||
font-weight: 500;
|
||||
border-top-right-radius: 5px;
|
||||
border-bottom-right-radius: 5px;
|
||||
color: white;
|
||||
text-transform: uppercase;
|
||||
background: $app-red;
|
||||
}
|
||||
}
|
||||
1
resources/views/partials/search.blade.php
Normal file
1
resources/views/partials/search.blade.php
Normal file
@@ -0,0 +1 @@
|
||||
{!! App\Setting::search() !!}
|
||||
@@ -14,20 +14,7 @@
|
||||
</div>-->
|
||||
|
||||
<div class="input">
|
||||
@php($type = explode('|', $setting->type)[0])
|
||||
{!! Form::label('value', 'Value') !!}
|
||||
@if ($type == 'image')
|
||||
{!! Form::file('value', ['class' => 'form-control']) !!}
|
||||
@elseif ($type == 'select')
|
||||
@php($options = explode('|', $setting->type)[1])
|
||||
@php($options = explode(',', $options))
|
||||
{!! Form::select('value', $options, null, ['class' => 'form-control']) !!}
|
||||
@elseif ($type == 'textarea')
|
||||
{!! Form::textarea('value', Request::get('value'), ['class' => 'form-control trumbowyg', 'placeholder' => 'FAQ contents']) !!}
|
||||
@else
|
||||
{!! Form::text('value', null, ['class' => 'form-control']) !!}
|
||||
@endif
|
||||
|
||||
{!! $setting->edit_value !!}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -25,22 +25,7 @@
|
||||
<tr>
|
||||
<td>{{ $setting->label }}</td>
|
||||
<td>
|
||||
@php($type = explode('|', $setting->type)[0])
|
||||
@if ($type == 'image')
|
||||
@if(!empty($setting->value))
|
||||
<a href="{{ asset('storage/'.$setting->value) }}" title="View" target="_blank">View</a>
|
||||
@else
|
||||
- not set -
|
||||
@endif
|
||||
@elseif ($type == 'select')
|
||||
@if ($setting->value == 1)
|
||||
YES
|
||||
@else
|
||||
NO
|
||||
@endif
|
||||
@else
|
||||
{!! $setting->value !!}
|
||||
@endif
|
||||
{!! $setting->list_value !!}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
@if((bool)$setting->system !== true)
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
@extends('app')
|
||||
|
||||
@section('content')
|
||||
@include('partials.search')
|
||||
|
||||
@if($apps->first())
|
||||
@include('sortable')
|
||||
@else
|
||||
|
||||
Reference in New Issue
Block a user