Self-hosted PHP photo gallery - your photos, your website, your property! Built on Laravel and Bootstrap 4, Blue Twilight is a private alternative to Flickr and Instagram. https://showmy.photos
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

70 lines
3.8 KiB

  1. @extends(Theme::viewName('layout'))
  2. @section('title', trans('gallery.user_settings.title'))
  3. @section('content')
  4. <div class="container">
  5. <div class="row">
  6. <div class="col-md-8 mr-md-auto ml-md-auto">
  7. <div class="card">
  8. <div class="card-header">
  9. <ul class="nav nav-tabs card-header-tabs">
  10. <li class="nav-item">
  11. <a class="nav-link active" href="{{ url('/password/change') }}">@yield('title')</a>
  12. </li>
  13. </ul>
  14. </div>
  15. <div class="card-body">
  16. <form action="{{ route('saveUserSettings') }}" method="post">
  17. {{ csrf_field() }}
  18. {{ method_field('PUT') }}
  19. <div class="form-group row{{ $errors->has('name') ? ' has-danger' : '' }}">
  20. <label class="col-md-4 col-form-label text-md-right" for="user-name">@lang('forms.name_label')</label>
  21. <div class="col-md-6">
  22. <input type="text" class="form-control{{ $errors->has('name') ? ' is-invalid' : '' }}" id="user-name" name="name" value="{{ old('name', $user->name) }}">
  23. @if ($errors->has('name'))
  24. <div class="invalid-feedback">
  25. <strong>{{ $errors->first('name') }}</strong>
  26. </div>
  27. @endif
  28. </div>
  29. </div>
  30. <div class="form-group row{{ $errors->has('email') ? ' has-danger' : '' }}">
  31. <label class="col-md-4 col-form-label text-md-right" for="user-email">@lang('forms.email_label')</label>
  32. <div class="col-md-6">
  33. <input type="text" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" id="user-email" name="email" value="{{ old('email', $user->email) }}">
  34. @if ($errors->has('email'))
  35. <div class="invalid-feedback">
  36. <strong>{{ $errors->first('email') }}</strong>
  37. </div>
  38. @endif
  39. </div>
  40. </div>
  41. <div class="row">
  42. <div class="col-md-6 offset-md-4">
  43. <a href="{{ route('auth.changePassword') }}" class="btn btn-link"><i class="fa fa-lock"></i>&nbsp;&nbsp;@lang('gallery.user_settings.change_password')</a>
  44. </div>
  45. </div>
  46. <div class="form-check mt-4">
  47. <input type="checkbox" class="form-check-input" id="is-admin" name="is_admin"@if (old('is_admin', $user->is_admin)) checked="checked"@endif>
  48. <label class="form-check-label" for="is-admin">@lang('forms.admin_user_label')</label>
  49. </div>
  50. <div class="text-right" style="margin-top: 20px;">
  51. <a href="{{ route('home') }}" class="btn btn-link">@lang('forms.cancel_action')</a>
  52. <button type="submit" class="btn btn-success"><i class="fa fa-fw fa-check"></i> @lang('forms.save_action')</button>
  53. </div>
  54. </form>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. @endsection