|
7 | 7 | {!! Form::hidden('pinned', '0') !!} |
8 | 8 | <label class="switch"> |
9 | 9 | <?php |
10 | | - $checked = false; |
11 | | - if(isset($item->pinned) && (bool)$item->pinned === true) $checked = true; |
| 10 | + $checked = true; |
| 11 | + if(isset($item->pinned) && (bool)$item->pinned !== true) $checked = false; |
12 | 12 | $set_checked = ($checked) ? ' checked="checked"' : ''; |
13 | 13 | ?> |
14 | 14 | <input type="checkbox" name="pinned" value="1"<?php echo $set_checked;?> /> |
|
57 | 57 | {!! csrf_field() !!} |
58 | 58 | <div class="input"> |
59 | 59 | <label>{{ __('app.apps.application_name') }} *</label> |
60 | | - {!! Form::text('title', null, array('placeholder' => __('app.apps.title'), 'id' => 'appname', 'class' => 'form-control')) !!} |
| 60 | + {!! Form::text('title', null, array('placeholder' => __('app.apps.title'), 'id' => 'appname', 'class' => 'form-control', 'required')) !!} |
61 | 61 | </div> |
62 | 62 |
|
63 | 63 | <div class="input"> |
64 | | - <label>{{ __('app.apps.colour') }} *</label> |
| 64 | + <label>{{ __('app.apps.colour') }}</label> |
65 | 65 | {!! Form::text('colour', $item->colour ?? '#161b1f', array('placeholder' => __('app.apps.hex'), 'id' => 'appcolour', 'class' => 'form-control color-picker set-bg-elem')) !!} |
66 | 66 | </div> |
67 | 67 |
|
68 | 68 | <div class="input"> |
69 | | - <label>{{ strtoupper(__('app.url')) }}</label> |
70 | | - {!! Form::text('url', $item->url ?? null, array('placeholder' => __('app.url'), 'id' => 'appurl', 'class' => 'form-control')) !!} |
| 69 | + <label>{{ strtoupper(__('app.url')) }} *</label> |
| 70 | + {!! Form::text('url', $item->url ?? null, array('placeholder' => __('app.url'), 'id' => 'appurl', 'class' => 'form-control', 'required')) !!} |
71 | 71 | <small class="help">Don't forget http(s)://</small> |
72 | 72 | </div> |
73 | 73 |
|
|
0 commit comments