25 lines
1.2 KiB
Plaintext
25 lines
1.2 KiB
Plaintext
<div id="loginstyle">
|
|
<form name="login_form" id="login_form" method="post" action="/olympiamanagements/login">
|
|
<p align="center">
|
|
<label for="login_id"><%=t('olympiamanagement.account_number')%>:</label><input name="login_id" type="text" id="login_id" size="12" value="">
|
|
<br>
|
|
<label for="login_pw"><%=t('olympiamanagement.password')%>:</label><input name="login_pw" type="password" id="login_pw" size="12">
|
|
</p>
|
|
|
|
<p align="center">
|
|
<input class="loginbutton" type="submit" name="login_Submit" value="<%=t('olympiamanagement.submit')%>">
|
|
<input type="hidden" name="PreviousPage" value="<%= (params.nil? rescue true) ? (OrbitHelper.request.url rescue "") : (request.url rescue "") %>">
|
|
<input type="hidden" name="authenticity_token" value="<%= (OrbitHelper.request || request).session[:_csrf_token] %>">
|
|
<input type="hidden" name="utf8" value="✓">
|
|
</p>
|
|
</form>
|
|
</div>
|
|
<%if !@error.nil?%>
|
|
<script>
|
|
<%if @error == "no_account"%>
|
|
alert('<%=(I18n.locale.to_s=="zh_tw") ? "無此帳號!" : "No such account!"%>')
|
|
<%elsif @error == "password_error"%>
|
|
alert('<%=(I18n.locale.to_s=="zh_tw") ? "密碼錯誤!" : "Password error!"%>')
|
|
<%end%>
|
|
</script>
|
|
<%end%> |