46 lignes
Pas d'EOL
2 Kio
HTML
46 lignes
Pas d'EOL
2 Kio
HTML
{{define "title"}}{{ T "sign_in_title" }}{{end}}
|
||
{{define "contclass"}}cont-view{{end}}
|
||
{{define "content"}}
|
||
<div class="blockBody">
|
||
<div class="row" style="margin-top:20px">
|
||
<div class="col-xs-12 col-sm-8 col-md-6 col-sm-offset-2 col-md-offset-3">
|
||
<form role="form" method="POST">
|
||
<fieldset>
|
||
<h2>{{T "sign_in_box_title"}}</h2>
|
||
<hr class="colorgraph">
|
||
{{ range (index $.FormErrors "errors")}}
|
||
<div class="alert alert-danger">{{ . }}</div>
|
||
{{end}}
|
||
<div class="form-group">
|
||
<input type="text" name="username" id="username" class="form-control input-lg" placeholder="{{ T "email_address_or_username"}}">
|
||
{{ range (index $.FormErrors "username")}}
|
||
<p class="bg-danger">{{ . }}</p>
|
||
{{end}}
|
||
</div>
|
||
<div class="form-group">
|
||
<input type="password" name="password" id="password" class="form-control input-lg" placeholder="{{ T "password"}}">
|
||
{{ range (index $.FormErrors "password")}}
|
||
<p class="bg-danger">{{ . }}</p>
|
||
{{end}}
|
||
</div>
|
||
<span class="button-checkbox">
|
||
<button type="button" class="btn hidden" data-color="info">{{ T "remember_me"}}</button>
|
||
<input type="checkbox" name="remember_me" id="remember_me" checked="checked">
|
||
<a href="" class="btn btn-link pull-right">{{ T "forgot_password"}}</a>
|
||
</span>
|
||
<hr class="colorgraph">
|
||
<div class="row">
|
||
<div class="col-xs-6 col-sm-6 col-md-6">
|
||
<input type="submit" class="btn btn-lg btn-success btn-block" value="{{ T "signin"}}">
|
||
</div>
|
||
<div class="col-xs-6 col-sm-6 col-md-6">
|
||
<a href="{{ genRoute "user_register" }}" class="btn btn-lg btn-primary btn-block">{{ T "register"}}</a>
|
||
</div>
|
||
</div>
|
||
</fieldset>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{{end}}
|
||
{{define "js_footer"}}<script type="text/javascript" charset="utf-8" src="{{.URL.Parse "/js/registerPage.js"}}"></script>{{end}} |