nginxsonarrradarrplexorganizrdashboardnzbgetbookmarkapplication-dashboardmuximuxlandingpagestartpagelandinghtpcserverhomepagesabnzbdheimdallembycouchpotato
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
2.8 KiB
63 lines
2.8 KiB
<section class="module-container">
|
|
<header>
|
|
<div class="section-title">Add application</div>
|
|
<div class="module-actions">
|
|
<button type="submit"class="button"><i class="fa fa-save"></i><span>Save</span></button>
|
|
<a href="{{ route('items.index') }}" class="button"><i class="fa fa-ban"></i><span>Cancel</span></a>
|
|
</div>
|
|
</header>
|
|
<div class="create">
|
|
{!! csrf_field() !!}
|
|
<!--<div class="input">
|
|
<label>Application name</label>
|
|
{!! Form::select('supported', \App\Item::supportedOptions(), array('placeholder' => 'Title','class' => 'form-control')) !!}
|
|
</div>-->
|
|
|
|
<div class="input">
|
|
<label>Application name *</label>
|
|
{!! Form::text('title', null, array('placeholder' => 'Title','class' => 'form-control')) !!}
|
|
</div>
|
|
<div class="input">
|
|
<label>Colour *</label>
|
|
{!! Form::text('colour', null, array('placeholder' => 'Hex Colour','class' => 'form-control color-picker')) !!}
|
|
</div>
|
|
<div class="input">
|
|
<label>URL</label>
|
|
{!! Form::text('url', null, array('placeholder' => 'Url','class' => 'form-control')) !!}
|
|
</div>
|
|
|
|
<div class="input">
|
|
<label>Icon</label>
|
|
@if(isset($item->icon) && !empty($item->icon))
|
|
<a href="{{ asset('storage/'.$item->icon) }}">View current icon</a>
|
|
{!! Form::hidden('icon', $item->icon, ['class' => 'form-control']) !!}
|
|
@endif
|
|
<input name="file" type="file" class="form-control">
|
|
|
|
</div>
|
|
|
|
<div class="input">
|
|
<label>Pinned</label>
|
|
<label class="switch">
|
|
<?php
|
|
$checked = false;
|
|
if(isset($item->pinned) && (bool)$item->pinned === true) $checked = true;
|
|
$set_checked = ($checked) ? ' checked="checked"' : '';
|
|
?>
|
|
{!! Form::hidden('pinned', '0') !!}
|
|
<input type="checkbox" name="pinned" value="1"<?php echo $set_checked;?> />
|
|
<span class="slider round"></span>
|
|
</label>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<footer>
|
|
<div class="section-title"> </div>
|
|
<div class="module-actions">
|
|
<button type="submit"class="button"><i class="fa fa-save"></i><span>Save</span></button>
|
|
<a href="{{ route('items.index') }}" class="button"><i class="fa fa-ban"></i><span>Cancel</span></a>
|
|
</div>
|
|
</footer>
|
|
|
|
</section>
|
|
|