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

71 lines
3 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
<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>
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">
2018-02-03 15:58:25 +00:00
<label>Application name *</label>
2018-02-05 19:43:24 +00:00
{!! Form::text('title', null, array('placeholder' => 'Title', 'id' => 'appname', 'class' => 'form-control')) !!}
2018-02-06 15:27:02 +00:00
<hr />
2018-02-01 14:45:59 +00:00
<label>URL</label>
{!! Form::text('url', null, array('placeholder' => 'Url','class' => 'form-control')) !!}
</div>
2018-02-03 15:58:25 +00:00
<div class="input">
2018-02-06 15:27:02 +00:00
<label>Colour *</label>
{!! Form::text('colour', null, array('placeholder' => 'Hex Colour','class' => 'form-control color-picker')) !!}
<hr />
2018-02-03 15:58:25 +00:00
<label>Pinned</label>
<label class="switch">
<?php
$checked = false;
if(isset($item->pinned) && (bool)$item->pinned === true) $checked = true;
2018-02-03 15:58:25 +00:00
$set_checked = ($checked) ? ' checked="checked"' : '';
?>
2018-02-03 19:48:05 +00:00
{!! Form::hidden('pinned', '0') !!}
2018-02-03 16:40:00 +00:00
<input type="checkbox" name="pinned" value="1"<?php echo $set_checked;?> />
2018-02-03 15:58:25 +00:00
<span class="slider round"></span>
</label>
</div>
2018-02-06 15:27:02 +00:00
<div class="input">
<label>Icon</label>
<div class="icon-container">
<div id="appimage">
@if(isset($item->icon) && !empty($item->icon))
<img src="{{ asset('storage/'.$item->icon) }}" />
{!! Form::hidden('icon', $item->icon, ['class' => 'form-control']) !!}
@endif
</div>
<div class="upload-btn-wrapper">
<button class="btn">Upload a file</button>
<input type="file" name="myfile" />
</div>
</div>
</div>
2018-02-05 23:08:37 +00:00
<div id="sapconfig"></div>
2018-02-02 15:16:55 +00:00
2018-02-01 14:45:59 +00:00
</div>
<footer>
<div class="section-title">&nbsp;</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>
2018-02-01 14:45:59 +00:00
</section>
2018-02-05 19:43:24 +00:00