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

16 lines
770 B
Plaintext

<% 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 %>
<form action="/pseudo_users/loginpseudouser" method="post">
<input type="hidden" name="authenticity_token" value="<%= form_authenticity_token %>">
<%= render_view %>
</form>
<a href="<%= "/" + I18n.locale.to_s + OrbitHelper.params[:url] + "?method=register" %>" class="register-btn">Register</a>