kuvia2/templates/settings_profile.tmpl

53 lines
2.7 KiB
Cheetah
Raw Normal View History

2022-01-14 23:09:03 +00:00
{{template "top" .}}
<div class="container" style="margin-top: 100px;">
<div class="row">
<div class="col-md-3">
<div class="list-group">
<a href="#" class="list-group-item list-group-item-action active" aria-current="true">
Profile
</a>
<!--<a href="#" class="list-group-item list-group-item-action">Sicherheit</a>
<a class="list-group-item list-group-item-action disabled">A disabled link item</a>!-->
</div>
</div>
<div class="col-md-9">
<div class="row">
<div class="col-md-2">
<img src="/image?path={{ .user.Image }}" style="border-radius: 50%;max-width: 80%;" ></img>
</div>
<div class="col-md-10">
<a href="/settings/profile/image">[Change Image]</a>
</div>
</div>
<div class="row" style="margin-top: 20px;">
<div class="col-md-12">
<form method="post">
<div class="form-floating mb-3">
<input type="text" name="name" class="form-control" id="floatingInput" placeholder="Name" value="{{ if .user.Name}}{{ .user.Name }}{{ end }}">
<label for="floatingInput">Name</label>
</div>
<div class="form-floating mb-3">
<input type="text" class="form-control" disabled="disabled" value="{{ .user.Username }}" id="floatingInput" placeholder="name@example.com">
<label for="floatingInput">Username</label>
</div>
<div class="form-floating mb-3">
<textarea name="aboutme" class="form-control" style="height: 200px;">{{ if .user.AboutMe}}{{ .user.AboutMe }}{{ end }}</textarea>
<label for="floatingInput">About me</label>
</div>
<div class="form-floating mb-3">
<input name="location" type="text" class="form-control" id="floatingInput" value="{{ if .user.Location}}{{ .user.Location }}{{ end }}" placeholder="Location">
<label for="floatingInput">Location</label>
</div>
<div class="form-floating mb-3">
<input name="webpage" type="text" class="form-control" id="floatingInput" value="{{ if .user.Webpage}}{{ .user.Webpage }}{{ end }}" placeholder="https://www.kuvia.cloud">
<label for="floatingInput">Webseite</label>
</div>
<input type="submit" class="btn btn-success" value="Save" style="width: 100%;"></input>
</form>
</div>
</div>
</div>
</div>
</div>
{{template "bottom" .}}