gosora/templates/account-own-edit-avatar.html
Azareal 34b02336ed Fixed a crash bug caused by the previous commit.
Renamed a few templates.
Added the required attribute to a few form inputs.
2017-08-20 11:11:49 +01:00

25 lines
882 B
HTML

{{template "header.html" . }}
{{template "account-menu.html" . }}
<main class="colstack_right">
<div class="colstack_item colstack_head rowhead">
<div class="rowitem"><a>Edit Avatar</a></div>
</div>
{{if .CurrentUser.Avatar}}
<div class="colstack_item">
<div class="rowitem"><img src="{{.CurrentUser.Avatar}}" height="128px" max-width="128px" /></div>
</div>
{{end}}
<div class="colstack_item">
<form action="/user/edit/avatar/submit/" method="post" enctype="multipart/form-data">
<div class="formrow real_first_child">
<div class="formitem formlabel"><a>Upload Avatar</a></div>
<div class="formitem"><input name="account-avatar" type="file" required /></div>
</div>
<div class="formrow">
<div class="formitem"><button name="account-button" class="formbutton">Update</button></div>
</div>
</form>
</div>
</main>
{{template "footer.html" . }}