mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
Allow phone number to be changed in Profile
This commit is contained in:
parent
a521523d45
commit
420e8bc85a
|
@ -49,6 +49,9 @@ class ProfileController extends Controller
|
||||||
$user->last_name = $request->input('last_name');
|
$user->last_name = $request->input('last_name');
|
||||||
$user->website = $request->input('website');
|
$user->website = $request->input('website');
|
||||||
$user->gravatar = $request->input('gravatar');
|
$user->gravatar = $request->input('gravatar');
|
||||||
|
$user->phone = $request->input('phone');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!config('app.lock_passwords')) {
|
if (!config('app.lock_passwords')) {
|
||||||
$user->locale = $request->input('locale', 'en');
|
$user->locale = $request->input('locale', 'en');
|
||||||
|
|
|
@ -58,6 +58,15 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Phone -->
|
||||||
|
<div class="form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
|
||||||
|
<label class="col-md-3 control-label" for="phone">{{ trans('admin/users/table.phone') }}</label>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<input class="form-control" type="text" name="phone" id="phone" value="{{ Input::old('phone', $user->phone) }}" />
|
||||||
|
{!! $errors->first('phone', '<span class="alert-msg">:message</span>') !!}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Website URL -->
|
<!-- Website URL -->
|
||||||
|
|
Loading…
Reference in a new issue