Show More
Commit Description:
MERGED 308:HEAD from http://theory.cpe.ku.ac.th/grader/web/branches/ytopc08-2/, removed some registration info...
Commit Description:
MERGED 308:HEAD from http://theory.cpe.ku.ac.th/grader/web/branches/ytopc08-2/, removed some registration info
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@359 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
app/views/main/login.html.haml
| 42 lines
| 1013 B
| text/x-haml
| HamlLexer
|
|
r123 | %h1= Configuration['ui.front.title'] | ||
|
r151 | - if @announcements.length!=0 | ||
.announcementbox | ||||
%span{:class => 'title'} | ||||
Announcements | ||||
= render :partial => 'announcement', :collection => @announcements | ||||
|
r123 | %b= Configuration['ui.front.welcome_message'] | ||
%br/ | ||||
|
r160 | - if !@hidelogin | ||
|
r162 | =t 'login.message' | ||
|
r160 | %br/ | ||
%br/ | ||||
- if flash[:notice] | ||||
%hr/ | ||||
%b= flash[:notice] | ||||
%hr/ | ||||
|
r123 | |||
|
r160 | %div{ :style => "border: solid 1px gray; padding: 2px; background: #f0f0f0;"} | ||
- form_tag :controller => 'login', :action => 'login' do | ||||
%table | ||||
%tr | ||||
|
r162 | %td{:align => "right"} | ||
="#{t 'login_label'}:" | ||||
|
r160 | %td= text_field_tag 'login' | ||
%tr | ||||
|
r162 | %td{:align => "right"} | ||
="#{t 'password_label'}:" | ||||
|
r160 | %td= password_field_tag | ||
|
r162 | = submit_tag t('login.login_submit') | ||
|
r123 | %br/ | ||
|
r157 | - if Configuration['system.online_registration'] | ||
|
r162 | =t 'login.participation' | ||
|
r155 | %b | ||
|
r162 | = "#{t 'login.please'} " | ||
= link_to "#{t 'login.register'}", :controller => :users, :action => :new | ||||
|
r155 | %br/ | ||