Show More
Commit Description:
added 'user_setting_enabled' option...
Commit Description:
added 'user_setting_enabled' option
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@295 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
app/views/main/login.html.haml
| 69 lines
| 2.0 KiB
| 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/ | ||||
Please login to see the problem list. | ||||
%br/ | ||||
%br/ | ||||
- if flash[:notice] | ||||
%hr/ | ||||
%b= flash[:notice] | ||||
%hr/ | ||||
%div{ :style => "border: solid 1px gray; padding: 2px; background: #f0f0f0;"} | ||||
- form_tag :controller => 'login', :action => 'login' do | ||||
%table | ||||
%tr | ||||
%td{:align => "right"} Login: | ||||
%td= text_field_tag 'login' | ||||
%tr | ||||
%td{:align => "right"} Password: | ||||
%td= password_field_tag | ||||
= submit_tag 'Login' | ||||
%br/ | ||||
|
r155 | -# if Configuration['system.online_registration'] | ||
Want to participate? | ||||
%b | ||||
Please | ||||
= link_to 'register.', :controller => :users, :action => :new | ||||
%br/ | ||||
- if (Configuration['system.mode']=='contest') and (Configuration['contest.multisites']) | ||||
|
r124 | %script{:type => 'text/javascript'} | ||
var siteList = new Array(); | ||||
- @countries.each do |country| | ||||
= "siteList[#{country.id}] = new Array();" | ||||
- country.sites.each do |site| | ||||
= "siteList[#{country.id}][#{site.id}] = \"#{site.name}\";" | ||||
|
r123 | |||
|
r124 | var allSiteList = new Array(); | ||
- @site_select.each do |sel| | ||||
= "allSiteList[#{sel[1]}]=\"#{sel[0]}\";" | ||||
|
r123 | |||
|
r124 | %script{:type => 'text/javascript', :src => '/javascripts/site_update.js'} | ||
%div{ :style => "border: solid 1px gray; padding: 2px; background: #f0f0f0;"} | ||||
%b For Site Administrator. | ||||
%br/ | ||||
Please select your country and site and login. | ||||
|
r123 | - form_for :login, nil, :url => {:controller => 'login', :action => 'site_login'} do |f| | ||
Country: | ||||
= select :site_country, :id, @country_select_with_all, {}, {:onchange => "updateSiteList();", :onclick => "updateSiteList();" } | ||||
Site: | ||||
= select :login, :site_id, @site_select | ||||
%br/ | ||||
Password: | ||||
= f.password_field :password | ||||
= submit_tag "Site Administrator Login" | ||||
|
r124 | %script{:type => 'text/javascript'} | ||
updateSiteList(); | ||||