2017-05-07 04:02:57 +02:00
{{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" >
2017-05-07 05:04:55 +02:00
< form role = "form" method = "POST" >
2017-05-07 04:02:57 +02:00
< fieldset >
< h2 > {{T "sign_in_box_title"}}< / h2 >
< hr class = "colorgraph" >
2017-05-08 00:21:31 +02:00
{{ range (index $.FormErrors "errors")}}
< div class = "alert alert-danger" > {{ . }}< / div >
{{end}}
2017-05-07 04:02:57 +02:00
< div class = "form-group" >
2017-05-08 00:21:31 +02:00
< 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}}
2017-05-07 04:02:57 +02:00
< / div >
< div class = "form-group" >
< input type = "password" name = "password" id = "password" class = "form-control input-lg" placeholder = "{{ T " password " } } " >
2017-05-08 00:21:31 +02:00
{{ range (index $.FormErrors "password")}}
< p class = "bg-danger" > {{ . }}< / p >
{{end}}
2017-05-07 04:02:57 +02:00
< / 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" >
2017-05-07 04:06:52 +02:00
< a href = "{{ genRoute " user_register " } } " class = "btn btn-lg btn-primary btn-block" > {{ T "register"}}< / a >
2017-05-07 04:02:57 +02:00
< / div >
< / div >
< / fieldset >
< / form >
< / div >
< / div >
2017-05-08 01:59:36 +02:00
< br / >
< br / >
2017-05-07 04:02:57 +02:00
< / div >
{{end}}
2017-05-08 01:59:36 +02:00
{{define "js_footer"}}< script type = "text/javascript" charset = "utf-8" src = "{{.URL.Parse " / js / registerPage . js " } } " > < / script > {{end}}