Skip to content

Commit

Permalink
should be all good now
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerrlongg committed Sep 25, 2024
1 parent 9df78a9 commit 852a56f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<span>
@dump($errors)
<div class="form-group{{ $errors->has('custom_fieldset') ? ' has-error' : '' }}">
<label for="custom_fieldset" class="col-md-3 control-label">
{{ trans('admin/models/general.fieldset') }}
Expand All @@ -24,12 +23,9 @@
@if ($this->fields)

@foreach ($this->fields as $field)
@if($errors->has($field->db_column_name()))
"poop"
@endif
<div class="form-group" wire:key="field-{{ $field->id }}">

<label class="col-md-3 control-label{{ $errors->has($field->name) ? ' has-error' : '' }}">{{ $field->name }}</label>
<label class="col-md-3 control-label{{ $errors->has($field->db_column_name()) ? ' has-error' : '' }}">{{ $field->name }}</label>

<div class="col-md-7">

Expand Down Expand Up @@ -128,10 +124,17 @@ class="form-control"
Unknown field element: {{ $field->element }}
</span>
@endif
<?php
$errormessage = $errors->first($field->db_column_name());
if ($errormessage) {
$errormessage = preg_replace('/ snipeit /', '', $errormessage);
print('<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> '.$errormessage.'</span>');
}
?>
</div>
</div>

@endforeach
@endforeach

@endif

Expand Down
14 changes: 7 additions & 7 deletions resources/views/models/custom_fields_form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@
<p class="help-block">{{ $field->help_text }}</p>
@endif

<?php
$errormessage=$errors->first($field->db_column_name());
if ($errormessage) {
$errormessage=preg_replace('/ snipeit /', '', $errormessage);
print('<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> '.$errormessage.'</span>');
}
?>
<?php
$errormessage = $errors->first($field->db_column_name());
if ($errormessage) {
$errormessage = preg_replace('/ snipeit /', '', $errormessage);
print('<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> '.$errormessage.'</span>');
}
?>
</div>

@if ($field->field_encrypted)
Expand Down

0 comments on commit 852a56f

Please sign in to comment.