swirl/views/profile/index.jet
2018-01-26 13:10:54 +08:00

74 lines
2.6 KiB
Go

{{ extends "../_layouts/default" }}
{{ block body() }}
<section class="hero is-primary">
<div class="hero-body">
<div class="container has-text-centered">
<h1 class="title is-2 is-uppercase">{{ i18n("profile.title") }}</h1>
<h2 class="subtitle is-5">{{ i18n("profile.description") }}</h2>
</div>
</div>
<div class="hero-foot">
<div class="container">
<nav class="tabs is-boxed">
<ul>
<li class="is-active">
<a href="/profile/">{{ i18n("menu.profile") }}</a>
</li>
<li>
<a href="/profile/password">{{ i18n("menu.password") }}</a>
</li>
</ul>
</nav>
</div>
</div>
</section>
<section class="section">
<div class="container">
<div class="columns">
<div class="column is-6 is-offset-3">
<form method="post" data-form="ajax-json" data-message="The settings have been successfully modified">
<div class="box is-radiusless">
<div class="field">
<label class="label">{{ i18n("field.name") }}</label>
<div class="field has-addons is-marginless">
<div class="control">
<a class="button is-static">
<span class="icon is-small is-left">
<i class="fas fa-user"></i>
</span>
</a>
</div>
<p class="control is-expanded">
<input name="name" value="{{.User.Name}}" class="input" type="text" placeholder="" data-v-rule="native" required>
</p>
</div>
</div>
<div class="field">
<label class="label">{{ i18n("field.email") }}</label>
<div class="field has-addons is-marginless">
<div class="control">
<a class="button is-static">
<span class="icon is-small is-left">
<i class="fas fa-envelope"></i>
</span>
</a>
</div>
<p class="control is-expanded">
<input name="email" value="{{.User.Email}}" class="input" type="text" placeholder="" data-v-rule="native;email" required>
</p>
</div>
</div>
<hr>
<div class="field">
<p class="control">
<button class="button is-primary" type="submit">{{ i18n("button.update") }}</button>
</p>
</div>
</div>
</form>
</div>
</div>
</div>
</section>
{{ end }}