Sha256: 4918462c0fce8d26f1393d74abee9e87adc48cc29ee9a82e339cf62ac7850b5c
Contents?: true
Size: 1.43 KB
Versions: 32
Compression:
Stored size: 1.43 KB
Contents
<% page_title "CMS Login" %> <% content_for :html_head do %> <% javascript_tag do %> jQuery(function($){ $('#login_button').hover(function(){ $('#login_button').css('background-image', 'url(/images/cms/buttons/button_cap_h.png)'); $('#login_button > input').css('background-image', 'url(/images/cms/buttons/button_h.png)'); }, function(){ $('#login_button').css('background-image', 'url(/images/cms/buttons/button_cap.png)'); $('#login_button > input').css('background-image', 'url(/images/cms/buttons/button.png)'); })}); <% end %> <% end %> <% @login ||= "Username" %> <% @password ||= "Password" %> <% form_tag cms_login_path, :id => 'login_form' do %> <div class="field"> <%= text_field_tag 'login', @login, :onfocus => "if(this.value == 'Username') this.value = '';", :onblur => "if(this.value == '') this.value = 'Username';", :tabindex => 1 %> </div> <div class="field"> <%= password_field_tag 'password', @password, :onfocus => "if(this.value == 'Password') this.value = '';", :onblur => "if(this.value == '') this.value = 'Password';", :tabindex => 2 %> </div> <div class="buttons"> <div id="login_button"><%= submit_tag("LOGIN") %></div> <div id="remember_me_div"> <%= label_tag 'remember_me', 'Remember me', :class => "inline" %> <%= check_box_tag 'remember_me', '1', @remember_me, :tabindex => 3 %> <br clear="all" /> </div> </div> <% end %>
Version data entries
32 entries across 32 versions & 10 rubygems