2016-04-20 10:03:55 +00:00
|
|
|
|
<!-- signin modal -->
|
|
|
|
|
<div class="modal fade signin-modal" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
|
|
|
|
|
<div class="modal-dialog modal-sm">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
|
|
|
|
|
</button>
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<h4 class="modal-title" id="mySmallModalLabel"><%= __('Choose method') %></h4>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</div>
|
2016-12-01 17:58:14 +00:00
|
|
|
|
<div class="modal-body" style="text-align: center;">
|
2016-04-20 10:03:55 +00:00
|
|
|
|
<% if(facebook) { %>
|
|
|
|
|
<a href="<%- url %>/auth/facebook" class="btn btn-lg btn-block btn-social btn-facebook">
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<i class="fa fa-facebook"></i> <%= __('Sign in via %s', 'Facebook') %>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</a>
|
|
|
|
|
<% } %>
|
|
|
|
|
<% if(twitter) { %>
|
|
|
|
|
<a href="<%- url %>/auth/twitter" class="btn btn-lg btn-block btn-social btn-twitter">
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<i class="fa fa-twitter"></i> <%= __('Sign in via %s', 'Twitter') %>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</a>
|
|
|
|
|
<% } %>
|
|
|
|
|
<% if(github) { %>
|
|
|
|
|
<a href="<%- url %>/auth/github" class="btn btn-lg btn-block btn-social btn-github">
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<i class="fa fa-github"></i> <%= __('Sign in via %s', 'GitHub') %>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</a>
|
|
|
|
|
<% } %>
|
2016-05-21 14:48:00 +00:00
|
|
|
|
<% if(gitlab) { %>
|
|
|
|
|
<a href="<%- url %>/auth/gitlab" class="btn btn-lg btn-block btn-social btn-soundcloud">
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<i class="fa fa-gitlab"></i> <%= __('Sign in via %s', 'GitLab') %>
|
2016-05-21 14:48:00 +00:00
|
|
|
|
</a>
|
|
|
|
|
<% } %>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
<% if(dropbox) { %>
|
|
|
|
|
<a href="<%- url %>/auth/dropbox" class="btn btn-lg btn-block btn-social btn-dropbox">
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<i class="fa fa-dropbox"></i> <%= __('Sign in via %s', 'Dropbox') %>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</a>
|
|
|
|
|
<% } %>
|
2016-05-21 14:48:00 +00:00
|
|
|
|
<% if(google) { %>
|
|
|
|
|
<a href="<%- url %>/auth/google" class="btn btn-lg btn-block btn-social btn-google">
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<i class="fa fa-google"></i> <%= __('Sign in via %s', 'Google') %>
|
2016-05-09 22:31:49 +00:00
|
|
|
|
</a>
|
|
|
|
|
<% } %>
|
2016-12-14 11:42:42 +00:00
|
|
|
|
<% if((facebook || twitter || github || gitlab || dropbox || google) && ldap) { %>
|
|
|
|
|
<hr>
|
|
|
|
|
<% }%>
|
2016-12-13 21:31:35 +00:00
|
|
|
|
<% if(ldap) { %>
|
2017-01-09 11:49:23 +00:00
|
|
|
|
<h4>Via <% if (ldap.providerName) { %> <%- ldap.providerName %> (LDAP) <% } else { %> LDAP <% } %></h4>
|
2016-12-14 11:42:42 +00:00
|
|
|
|
<form data-toggle="validator" role="form" class="form-horizontal" method="post" enctype="application/x-www-form-urlencoded">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
<input type="username" class="form-control" name="username" placeholder="Username" required>
|
|
|
|
|
<span class="help-block control-label with-errors" style="display: inline;"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
<input type="password" class="form-control" name="password" placeholder="Password" required>
|
|
|
|
|
<span class="help-block control-label with_errors" style="display: inline;"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
<button type="submit" class="btn btn-primary" formaction="<%- url %>/auth/ldap">Sign in</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
2016-12-13 21:31:35 +00:00
|
|
|
|
<% } %>
|
|
|
|
|
<% if((facebook || twitter || github || gitlab || dropbox || google || ldap) && email) { %>
|
2016-12-01 17:58:14 +00:00
|
|
|
|
<hr>
|
|
|
|
|
<% }%>
|
|
|
|
|
<% if(email) { %>
|
|
|
|
|
<h4>Via Email</h4>
|
|
|
|
|
<form data-toggle="validator" role="form" class="form-horizontal" method="post" enctype="application/x-www-form-urlencoded">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
<input type="email" class="form-control" name="email" placeholder="Email" required>
|
|
|
|
|
<span class="help-block control-label with-errors" style="display: inline;"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
<input type="password" class="form-control" name="password" placeholder="Password" required>
|
|
|
|
|
<span class="help-block control-label with-errors" style="display: inline;"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
<button type="submit" class="btn btn-primary" formaction="<%- url %>/login">Sign in</button>
|
2017-01-12 03:25:58 +00:00
|
|
|
|
<% if(allowemailregister) { %><button type="submit" class="btn btn-default" formaction="<%- url %>/register">Register</button><% }%>
|
2016-12-01 17:58:14 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
<% }%>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-12-13 21:31:35 +00:00
|
|
|
|
</div>
|