|
|
@ -1,11 +1,33 @@
|
|
|
|
<%= call_hook :view_account_login_top %>
|
|
|
|
<%= call_hook :view_account_login_top %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
|
|
|
|
|
function clearInfo(id, content) {
|
|
|
|
|
|
|
|
var text = $('#' + id);
|
|
|
|
|
|
|
|
if (text.val() == content) {
|
|
|
|
|
|
|
|
$('#' + id).val('');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function showInfo(id, content) {
|
|
|
|
|
|
|
|
var text = $('#' + id);
|
|
|
|
|
|
|
|
if (text.val() == '') {
|
|
|
|
|
|
|
|
$('#' + id).val(content);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="login-form">
|
|
|
|
<div id="login-form">
|
|
|
|
<%= form_tag(signin_path) do %>
|
|
|
|
<%= form_tag(signin_path) do %>
|
|
|
|
<%= back_url_hidden_field_tag %>
|
|
|
|
<%= back_url_hidden_field_tag %>
|
|
|
|
<table>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td align="right"><label for="username"><%=l(:field_login)%>:</label></td>
|
|
|
|
<td align="right"><label for="username"><%=l(:lable_user_name)%>:</label></td>
|
|
|
|
<td align="left"><%= text_field_tag 'username', params[:username], :tabindex => '1' %></td>
|
|
|
|
<td align="left">
|
|
|
|
|
|
|
|
<%= text_field_tag 'username', params[:username], :tabindex => '1' , :value => "#{l(:label_login_prompt)}",
|
|
|
|
|
|
|
|
:onfocus => "clearInfo('username','#{l(:label_login_prompt)}')",
|
|
|
|
|
|
|
|
:onblur => "showInfo('username','#{l(:label_login_prompt)}')",
|
|
|
|
|
|
|
|
:style => "resize: none;font-size: 12px;color: #818283;"%>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td align="right"><label for="password"><%=l(:field_password)%>:</label></td>
|
|
|
|
<td align="right"><label for="password"><%=l(:field_password)%>:</label></td>
|
|
|
|