プロフィール設定にアイコンプレビューとGravatarへのリンクを追加

This commit is contained in:
eai04191 2019-04-13 18:12:47 +09:00
parent 3cba46bff0
commit e8cfc48417

View File

@ -8,6 +8,11 @@
<form action="{{ route('setting.profile.update') }}" method="post"> <form action="{{ route('setting.profile.update') }}" method="post">
{{ csrf_field() }} {{ csrf_field() }}
<div class="from-group"> <div class="from-group">
<label for="name">アイコン</label>
<img src="{{ Auth::user()->getProfileImageUrl(128) }}" class="rounded d-block">
<small class="form-text text-muted">変更は<a href="https://gravatar.com/" target="_blank">Gravatar</a>から行えます。</small>
</div>
<div class="from-group mt-3">
<label for="display_name">名前</label> <label for="display_name">名前</label>
<input id="display_name" name="display_name" type="text" class="form-control {{ $errors->has('display_name') ? ' is-invalid' : '' }}" <input id="display_name" name="display_name" type="text" class="form-control {{ $errors->has('display_name') ? ' is-invalid' : '' }}"
value="{{ old('display_name') ?? Auth::user()->display_name }}" maxlength="20" autocomplete="off"> value="{{ old('display_name') ?? Auth::user()->display_name }}" maxlength="20" autocomplete="off">