2773fe200d
* Making the code Golint friendly * No exported variables when not needed * Same for functions * Simplifying Templates variables with a form basic template variable and a modelList basic template variable * Adapted templates to new template variables * use of .Models instead of model list * use of .Form instead of modelform * Small fix * Small fix 2 Forgot $.Form * Reverting templateDir as a var
31 lignes
1,5 Kio
HTML
31 lignes
1,5 Kio
HTML
{{define "title"}}{{ call $.T "sign_in_title" }}{{end}}
|
|
{{define "contclass"}}cont-view{{end}}
|
|
{{define "content"}}
|
|
{{ with .Form }}
|
|
<div class="box">
|
|
<form role="form" method="POST">
|
|
<h2>{{call $.T "sign_in_box_title"}}</h2>
|
|
{{ range (index $.FormErrors "errors")}}
|
|
<div class="alert alert-danger">{{ . }}</div>
|
|
{{end}}
|
|
<input type="text" name="username" id="username" class="form-input up-input" autofocus placeholder="{{ call $.T "email_address_or_username"}}"><br>
|
|
{{ range (index $.FormErrors "username")}}
|
|
<p class="text-error">{{ . }}</p>
|
|
{{end}}
|
|
<input type="password" name="password" id="password" class="form-input up-input" placeholder="{{ call $.T "password"}}"><br>
|
|
{{ range (index $.FormErrors "password")}}
|
|
<p class="text-error">{{ . }}</p>
|
|
{{end}}
|
|
<!-- <span class="button-checkbox">
|
|
<button type="button" class="btn hidden" data-color="info">{{ call $.T "remember_me"}}</button>
|
|
<input type="checkbox" name="remember_me" id="remember_me" checked="checked">
|
|
<a href="" class="btn btn-link pull-right">{{ call $.T "forgot_password"}}</a>
|
|
</span> -->
|
|
<input type="submit" class="form-input" value="{{ call $.T "signin"}}">
|
|
<a href="{{ genRoute "user_register" }}" class="btn btn-lg btn-primary btn-block">{{ call $.T "register"}}</a>
|
|
</form>
|
|
</div>
|
|
{{end}}
|
|
<br />
|
|
<br />
|
|
{{end}}
|