Heimdall/resources/views/items/form.blade.php

54 lines
2.2 KiB
PHP
Raw Normal View History

2018-02-01 14:45:59 +00:00
<section class="module-container">
<header>
<div class="section-title">Add application</div>
<div class="module-actions">
2018-02-01 15:57:16 +00:00
<a href="{{ route('items.index') }}" class="button"><i class="fa fa-ban"></i><span>Cancel</span></a>
<button type="submit"class="button"><i class="fa fa-save"></i><span>Save</span></button>
2018-02-01 14:45:59 +00:00
</div>
</header>
<div class="create">
{!! csrf_field() !!}
2018-02-02 15:16:55 +00:00
<!--<div class="input">
<label>Application name</label>
{!! Form::select('supported', \App\Item::supportedOptions(), array('placeholder' => 'Title','class' => 'form-control')) !!}
2018-02-02 15:16:55 +00:00
</div>-->
2018-02-01 14:45:59 +00:00
<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>
2018-02-02 15:16:55 +00:00
<div class="input">
<label>Icon *</label>
@if(isset($item->icon) && !empty($item->icon))
{{ asset('storage/'.$item->icon) }}
{!! Form::hidden('icon', $item->icon, ['class' => 'form-control']) !!}
@endif
<input name="file" type="file" class="form-control">
</div>
<label class="switch">
<?php
$checked = false;
if(isset($item->pinned) && $item->pinned === 1) $checked = true;
$set_checked = ($checked) ? ' checked="checked"' : '';
?>
<input type="checkbox" name="active" value="1"<?php echo $set_checked;?> />
<span class="slider round"></span>
</label>
2018-02-01 14:45:59 +00:00
</div>
</section>