Permalink
Browse files

Created a new tadnet theme and updated views.rb to work with it

  • Loading branch information...
1 parent 7731336 commit cb8f488ada54bad736c6d64ce72dd76cac88034b @zeke zeke committed Nov 24, 2009
View
@@ -39,8 +39,7 @@ def login
tr do
td(:colspan => 2) do
div(:id => "headline-container") do
- strong organization
- text _(" Central Login")
+ img(:id => "logo", :src => "/themes/#{current_theme}/logo.png")
end
end
end
@@ -52,9 +51,6 @@ def login
end
end
tr do
- td(:id => "logo-container") do
- img(:id => "logo", :src => "/themes/#{current_theme}/logo.png")
- end
td(:id => "login-form-container") do
@include_infoline = true
login_form
@@ -87,11 +83,12 @@ def login_form
end
end
tr do
- td{}
- td(:id => "submit-container") do
+ td(:id => "submit-container", :colspan => "2") do
input(:type => "hidden", :id => "lt", :name => "lt", :value => @lt)
input(:type => "hidden", :id => "service", :name => "service", :value => @service)
- input(:type => "submit", :class => "button", :accesskey => "l", :value => _("LOGIN"), :tabindex => "4", :id => "login-submit")
+ button(:type => "submit", :accesskey => "l", :value => _("LOGIN"), :tabindex => "4", :id => "login-submit") do
+ img(:src => "/themes/#{current_theme}/button.png", :alt => "Log In")
+ end
end
end
tr do
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,55 @@
+body {
+ background: white;
+}
+
+#headline-container {
+ margin-bottom: 5px;
+ text-align: center;
+}
+
+#login-box {
+ margin: 0 auto;
+ width: 450px;
+ top: 110px;
+ position: relative;
+}
+
+#login-form {
+ margin: 0;
+ padding: 0;
+}
+
+#logo-container {
+ vertical-align: middle;
+}
+
+#logo {
+}
+
+#submit-container {
+ padding-top: 10px;
+ text-align: center !important;
+}
+
+button {
+ cursor: pointer;
+ border: none;
+ background-color: transparent;
+}
+
+label {
+ color: #666666;
+ font-size: 12px;
+ font-weight: normal;
+ float: right;
+ width: 8em;
+ text-align: right;
+}
+
+#username, #password {
+ float: left;
+ font-size: 14px;
+ width: 15em;
+ margin-left: 5px;
+ padding: 2px;
+}

0 comments on commit cb8f488

Please sign in to comment.