Custom user fields during registration and profile edit #711
This commit is contained in:
@@ -108,6 +108,27 @@
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{{-- Custom fields --}}
|
||||
@foreach($userFields as $field)
|
||||
<tr>
|
||||
<td>
|
||||
{{ $field->name }}
|
||||
@if($field->required === true)
|
||||
<span class="text-danger">*</span>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<div class="input-group input-group-sm form-group">
|
||||
{{ Form::text('field_'.$field->slug, $field->value, [
|
||||
'class' => 'form-control',
|
||||
]) }}
|
||||
</div>
|
||||
<p class="text-danger">{{ $errors->first('field_'.$field->slug) }}</p>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
<td>@lang('profile.opt-in')</td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user