Merge pull request #175 from eai04191/feature/icon-preview-in-setting

プロフィール設定にアイコンプレビューと登録メールアドレスの欄を追加する
This commit is contained in:
shibafu 2019-04-13 22:18:43 +09:00 committed by GitHub
commit 26b52e1c87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,11 @@
<form action="{{ route('setting.profile.update') }}" method="post">
{{ csrf_field() }}
<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>
<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">
@ -26,6 +31,11 @@
</div>
<small class="form-text text-muted">現在は変更できません。</small>
</div>
<div class="from-group mt-3">
<label for="name">メールアドレス</label>
<input id="name" name="name" type="text" class="form-control" value="{{ Auth::user()->email }}" disabled>
<small class="form-text text-muted">現在は変更できません。</small>
</div>
<div class="form-group mt-3">
<label for="bio">自己紹介</label>
<textarea id="bio" name="bio" rows="3" class="form-control {{ $errors->has('bio') ? ' is-invalid' : '' }}">{{ old('bio') ?? Auth::user()->bio }}</textarea>