more test work

This commit is contained in:
akemidx 2024-09-03 15:02:27 -04:00
parent 5e74b109d9
commit 515f59fed9
3 changed files with 3 additions and 9 deletions

View file

@ -21,9 +21,9 @@ class AssetCheckinRequest extends Request
*/
public function rules()
{
return [
'note' => 'required|in:asset,',
];
return $rules;
}
public function response(array $errors)

View file

@ -27,6 +27,7 @@ class AssetCheckoutRequest extends Request
'assigned_location' => 'required_without_all:assigned_user,assigned_asset',
'status_id' => 'exists:status_labels,id,deployable,1',
'checkout_to_type' => 'required|in:asset,location,user',
'note' => 'required|in:asset,',
'checkout_at' => [
'nullable',
'date',

View file

@ -124,13 +124,6 @@
name="note">{{ old('note', $asset->note) }}</textarea>
{!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
</div>
@else
<div class="col-md-8">
<textarea class="col-md-6 form-control" id="note"
name="note">{{ old('note', $asset->note) }}</textarea>
{!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
</div>
@endif
</div>
</div> <!--/.box-body-->
</div> <!--/.box-body-->