alxlaxv
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
14 additions and
0 deletions
-
resources/views/supportedapps/sonarr.blade.php
|
|
@ -1,6 +1,7 @@ |
|
|
|
<h2>{{ __('app.apps.config') }} ({{ __('app.optional') }})</h2> |
|
|
|
<div class="items"> |
|
|
|
<input type="hidden" data-config="type" class="config-item" name="config[type]" value="\App\SupportedApps\Sonarr" /> |
|
|
|
<input type="hidden" data-config="dataonly" class="config-item" name="config[dataonly]" value="1" /> |
|
|
|
<div class="input"> |
|
|
|
<label>{{ strtoupper(__('app.url')) }}</label> |
|
|
|
{!! Form::text('config[override_url]', null, array('placeholder' => __('app.apps.override'), 'id' => 'override_url', 'class' => 'form-control')) !!} |
|
|
@ -9,6 +10,19 @@ |
|
|
|
<label>{{ __('app.apps.apiKey') }}</label> |
|
|
|
{!! Form::text('config[apiKey]', null, array('placeholder' => __('app.apps.apiKey'), 'data-config' => 'apiKey', 'class' => 'form-control config-item')) !!} |
|
|
|
</div> |
|
|
|
<div class="input"> |
|
|
|
<label>{{ __('app.apps.enable') }}</label> |
|
|
|
{!! Form::hidden('config[enabled]', '0') !!} |
|
|
|
<label class="switch"> |
|
|
|
<?php |
|
|
|
$checked = false; |
|
|
|
if(isset($item->config->enabled) && (bool)$item->config->enabled === true) $checked = true; |
|
|
|
$set_checked = ($checked) ? ' checked="checked"' : ''; |
|
|
|
?> |
|
|
|
<input type="checkbox" name="config[enabled]" value="1"<?php echo $set_checked;?> /> |
|
|
|
<span class="slider round"></span> |
|
|
|
</label> |
|
|
|
</div> |
|
|
|
<div class="input"> |
|
|
|
<button style="margin-top: 32px;" class="btn test" id="test_config">Test</button> |
|
|
|
</div> |
|
|
|