supported apps stuff

This commit is contained in:
KodeStar
2018-02-06 20:41:29 +00:00
parent fd5ca1914c
commit 3a3446151e
4 changed files with 26 additions and 4 deletions

View File

@@ -52,9 +52,15 @@
</div>
</div>
@if(isset($item) && $item->config)
<div id="sapconfig" style="display: block;">
@if(isset($item))
@include('supportedapps.'.$item->config->view)
@endif
</div>
@else
<div id="sapconfig"></div>
@endif
</div>
<footer>

View File

@@ -1,5 +1,6 @@
<h2>Config (optional)</h2>
<div class="items">
<input type="hidden" name="config[type]" value="\App\SupportedApps\Nzbget" />
<div class="input">
<label>Username</label>
{!! Form::text('config[username]', null, array('placeholder' => 'Username', 'class' => 'form-control')) !!}