pseudo_member/app/views/pseudo_members/index.html.erb

33 lines
1.4 KiB
Plaintext
Raw Normal View History

2017-09-21 12:50:17 +00:00
<% data = action_data("index_values") %>
<% if data["session_available"] %>
<script type="text/javascript">
window.location.href = "<%= data["dashboard_url"] %>";
</script>
<% end %>
<% if OrbitHelper.params[:error] == "invld" %>
<div class="alert alert-danger" role="alert">Sorry username or password did not match.</div>
<% elsif OrbitHelper.params[:error] == "dsbld" %>
<div class="alert alert-danger" role="alert">Sorry your username is disabled.</div>
<% end %>
2018-01-16 12:13:50 +00:00
<form id="pseudo_member_login_form" action="/pseudo_users/loginpseudouser" method="post" class="form-horizontal">
2017-09-21 12:50:17 +00:00
<input type="hidden" name="authenticity_token" value="<%= form_authenticity_token %>">
<div class="form-group">
<label for="username" class="col-sm-2 control-label muted"><%= t("pseudo_member.user_name") %></label>
<div class="col-sm-8">
<input type="text" name="username" id="username" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label muted"><%= t("pseudo_member.password") %></label>
<div class="col-sm-8">
<input type="password" name="password" id="password" />
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-8">
<input type="submit" value="Login" class="btn btn-primary">
<a href="<%= "/" + I18n.locale.to_s + OrbitHelper.params[:url] + "?method=register" %>" class="register-btn btn btn-info">Register</a>
</div>
</div>
2017-09-21 12:50:17 +00:00
</form>