Skip to content

Commit

Permalink
fix scope autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Nov 1, 2023
1 parent d5369aa commit f13c3bb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
13 changes: 6 additions & 7 deletions resources/views/controls/plan.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
<strong>{{ trans('cruds.control.fields.scope') }}</strong>
</div>
<div class="cell-4">
<input type="text" name="scope" data-role="input" autocomplete="off" size="32"
value="{{ $control->scope }}" data-autocomplete="{{ implode(",",$scopes) }}"/>
<input type="text" name="scope" data-role="input" autocomplete="on" size="32"
value="" data-autocomplete="{{ implode(",",$scopes) }}"/>
</div>
</div>

Expand All @@ -54,12 +54,12 @@
<strong>{{ trans('cruds.control.fields.plan_date') }}</strong>
</div>
<div class="cell-2">
<input type="text" data-role="calendarpicker" name="plan_date" value="{{
<input type="text" data-role="calendarpicker" name="plan_date" value="{{
\Carbon\Carbon
::createFromFormat('Y-m-d',$control->plan_date)
->format('Y-m-d')
}}"
data-input-format="%Y-%m-%d">
}}"
data-input-format="%Y-%m-%d">
</div>
</div>

Expand Down Expand Up @@ -87,7 +87,7 @@
<option value="{{ $user->id }}" {{ (in_array($user->id, old('owners', [])) || $control->owners->contains($user->id)) ? 'selected' : '' }}>{{ $user->name }}</option>
@endforeach
</select>

</div>
</div>

Expand Down Expand Up @@ -128,4 +128,3 @@
</div>
</div>
@endsection

10 changes: 4 additions & 6 deletions resources/views/measures/plan.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
<strong>{{ trans('cruds.control.fields.scope') }}</strong>
</div>
<div class="cell-4">
<input type="text" name="scope" data-role="input" autocomplete="off" size="32"
value="" data-autocomplete=" {{ implode(",",$scopes) }} "/>
<input type="text" name="scope" data-role="input" autocomplete="on" size="32"
value="{{ $measure->scope }}" data-autocomplete="{{ implode(",",$scopes) }}"/>
</div>
</div>

Expand All @@ -65,8 +65,8 @@
<strong>{{ trans('cruds.control.fields.plan_date') }}</strong>
</div>
<div class="cell-3">
<input type="text" data-role="calendarpicker" name="plan_date"
value="{{ $measure->planDate() }}" data-input-format="%Y-%m-%d">
<input type="text" data-role="calendarpicker" name="plan_date"
value="{{ $measure->planDate() }}" data-input-format="%Y-%m-%d">
</div>
</div>

Expand Down Expand Up @@ -95,7 +95,6 @@
<option value="{{ $user->id }}" {{ in_array($user->id, old('owners', [])) ? 'selected' : '' }}>{{ $user->name }}</option>
@endforeach
</select>

</div>
</div>

Expand Down Expand Up @@ -128,4 +127,3 @@
</div>

@endsection

0 comments on commit f13c3bb

Please sign in to comment.