##// END OF EJS Templates
calendar javascripts and stylesheets removed from base layout. they're now only added to html header when needed....
Jean-Philippe Lang -
r148:979892a109bd
parent child
Show More
@@ -1,39 +1,46
1 1 <h2><%=l(:label_register)%></h2>
2 2
3 3 <%= start_form_tag({:action => 'register'}, :class => "tabular") %>
4 4 <%= error_messages_for 'user' %>
5 5
6 6 <div class="box">
7 7 <!--[form:user]-->
8 8 <p><label for="user_login"><%=l(:field_login)%> <span class="required">*</span></label>
9 9 <%= text_field 'user', 'login', :size => 25 %></p>
10 10
11 11 <p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label>
12 12 <%= password_field_tag 'password', nil, :size => 25 %></p>
13 13
14 14 <p><label for="password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label>
15 15 <%= password_field_tag 'password_confirmation', nil, :size => 25 %></p>
16 16
17 17 <p><label for="user_firstname"><%=l(:field_firstname)%> <span class="required">*</span></label>
18 18 <%= text_field 'user', 'firstname' %></p>
19 19
20 20 <p><label for="user_lastname"><%=l(:field_lastname)%> <span class="required">*</span></label>
21 21 <%= text_field 'user', 'lastname' %></p>
22 22
23 23 <p><label for="user_mail"><%=l(:field_mail)%> <span class="required">*</span></label>
24 24 <%= text_field 'user', 'mail' %></p>
25 25
26 26 <p><label for="user_language"><%=l(:field_language)%></label>
27 27 <%= select("user", "language", lang_options_for_select) %></p>
28 28
29 29 <% for @custom_value in @custom_values %>
30 30 <p><%= custom_field_tag_with_label @custom_value %></p>
31 31 <% end %>
32 32
33 33 <p><label for="user_mail_notification"><%=l(:field_mail_notification)%></label>
34 34 <%= check_box 'user', 'mail_notification' %></p>
35 35 <!--[eoform:user]-->
36 36 </div>
37 37
38 38 <%= submit_tag l(:button_submit) %>
39 39 <%= end_form_tag %>
40
41 <% content_for :header_tags do %>
42 <%= javascript_include_tag 'calendar/calendar' %>
43 <%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
44 <%= javascript_include_tag 'calendar/calendar-setup' %>
45 <%= stylesheet_link_tag 'calendar' %>
46 <% end %>
@@ -1,49 +1,56
1 1 <h2><%= @issue.tracker.name %> #<%= @issue.id %> - <%=h @issue.subject %></h2>
2 2
3 3 <% labelled_tabular_form_for :issue, @issue, :url => {:action => 'edit'} do |f| %>
4 4 <%= error_messages_for 'issue' %>
5 5 <div class="box">
6 6 <!--[form:issue]-->
7 7 <div class="splitcontentleft">
8 8 <p><label><%=l(:field_status)%></label> <%= @issue.status.name %></p>
9 9 <p><%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), :required => true %></p>
10 10 <p><%= f.select :assigned_to_id, (@issue.project.members.collect {|m| [m.name, m.user_id]}), :include_blank => true %></p>
11 11 <p><%= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}) %></p>
12 12 </div>
13 13
14 14 <div class="splitcontentright">
15 15 <p><%= f.text_field :start_date, :size => 10 %><%= calendar_for('issue_start_date') %></p>
16 16 <p><%= f.text_field :due_date, :size => 10 %><%= calendar_for('issue_due_date') %></p>
17 17 <p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p>
18 18 </div>
19 19
20 20 <div class="clear">
21 21 <p><%= f.text_field :subject, :size => 80, :required => true %></p>
22 22 <p><%= f.text_area :description, :cols => 60, :rows => [[10, @issue.description.length / 50].max, 100].min, :required => true %></p>
23 23
24 24 <% for @custom_value in @custom_values %>
25 25 <p><%= custom_field_tag_with_label @custom_value %></p>
26 26 <% end %>
27 27
28 28 <p><%= f.select :fixed_version_id, (@project.versions.collect {|v| [v.name, v.id]}), { :include_blank => true } %>
29 29 </select></p>
30 30 </div>
31 31 <!--[eoform:issue]-->
32 32 </div>
33 33 <%= f.hidden_field :lock_version %>
34 34 <%= submit_tag l(:button_save) %>
35 35 <% end %>
36 36
37 37 <% unless $RDM_TEXTILE_DISABLED %>
38 38 <%= javascript_include_tag 'jstoolbar' %>
39 39 <script type="text/javascript">
40 40 //<![CDATA[
41 41 if (document.getElementById) {
42 42 if (document.getElementById('issue_description')) {
43 43 var commentTb = new jsToolBar(document.getElementById('issue_description'));
44 44 commentTb.draw();
45 45 }
46 46 }
47 47 //]]>
48 48 </script>
49 <% end %>
50
51 <% content_for :header_tags do %>
52 <%= javascript_include_tag 'calendar/calendar' %>
53 <%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
54 <%= javascript_include_tag 'calendar/calendar-setup' %>
55 <%= stylesheet_link_tag 'calendar' %>
49 56 <% end %> No newline at end of file
@@ -1,145 +1,140
1 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2 2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
3 3 <head>
4 4 <title><%= $RDM_HEADER_TITLE + (@html_title ? ": #{@html_title}" : "") %></title>
5 5 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6 6 <meta name="description" content="redMine" />
7 7 <meta name="keywords" content="issue,bug,tracker" />
8 8 <%= stylesheet_link_tag "application" %>
9 9 <%= stylesheet_link_tag "print", :media => "print" %>
10 10 <%= javascript_include_tag :defaults %>
11 11 <%= javascript_include_tag 'menu' %>
12 <%= javascript_include_tag 'calendar/calendar' %>
13 <%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
14 <%= javascript_include_tag 'calendar/calendar-setup' %>
15 <%= stylesheet_link_tag 'calendar' %>
16 12 <%= stylesheet_link_tag 'jstoolbar' %>
17 <!-- page specific tags -->
18 <%= yield :header_tags %>
13 <!-- page specific tags --><%= yield :header_tags %>
19 14 </head>
20 15
21 16 <body>
22 17 <div id="container" >
23 18
24 19 <div id="header">
25 20 <div style="float: left;">
26 21 <h1><%= $RDM_HEADER_TITLE %></h1>
27 22 <h2><%= $RDM_HEADER_SUBTITLE %></h2>
28 23 </div>
29 24 <div style="float: right; padding-right: 1em; padding-top: 0.2em;">
30 25 <% if loggedin? %><small><%=l(:label_logged_as)%> <b><%= @logged_in_user.login %></b></small><% end %>
31 26 </div>
32 27 </div>
33 28
34 29 <div id="navigation">
35 30 <ul>
36 31 <li class="selected"><%= link_to l(:label_home), { :controller => '' }, :class => "picHome" %></li>
37 32 <li><%= link_to l(:label_my_page), { :controller => 'my', :action => 'page'}, :class => "picUserPage" %></li>
38 33 <li><%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => "picProject" %></li>
39 34
40 35 <% unless @project.nil? || @project.id.nil? %>
41 36 <li class="submenu"><%= link_to @project.name, { :controller => 'projects', :action => 'show', :id => @project }, :class => "picProject", :onmouseover => "buttonMouseover(event, 'menuProject');" %></li>
42 37 <% end %>
43 38
44 39 <% if loggedin? %>
45 40 <li><%= link_to l(:label_my_account), { :controller => 'my', :action => 'account' }, :class => "picUser" %></li>
46 41 <% end %>
47 42
48 43 <% if admin_loggedin? %>
49 44 <li class="submenu"><%= link_to l(:label_administration), { :controller => 'admin' }, :class => "picAdmin", :onmouseover => "buttonMouseover(event, 'menuAdmin');" %></li>
50 45 <% end %>
51 46
52 47 <li class="right"><%= link_to l(:label_help), { :controller => 'help', :ctrl => params[:controller], :page => params[:action] }, :onclick => "window.open(this.href); return false;", :class => "picHelp" %></li>
53 48
54 49 <% if loggedin? %>
55 50 <li class="right"><%= link_to l(:label_logout), { :controller => 'account', :action => 'logout' }, :class => "picUser" %></li>
56 51 <% else %>
57 52 <li class="right"><%= link_to l(:label_login), { :controller => 'account', :action => 'login' }, :class => "picUser" %></li>
58 53 <% end %>
59 54 </ul>
60 55 </div>
61 56
62 57 <% if admin_loggedin? %>
63 58 <div id="menuAdmin" class="menu" onmouseover="menuMouseover(event)">
64 59 <a class="menuItem" href="/admin/projects" onmouseover="menuItemMouseover(event,'menuProjects');"><span class="menuItemText"><%=l(:label_project_plural)%></span><span class="menuItemArrow">&#9654;</span></a>
65 60 <a class="menuItem" href="/users" onmouseover="menuItemMouseover(event,'menuUsers');"><span class="menuItemText"><%=l(:label_user_plural)%></span><span class="menuItemArrow">&#9654;</span></a>
66 61 <a class="menuItem" href="/roles"><%=l(:label_role_and_permissions)%></a>
67 62 <a class="menuItem" href="/trackers" onmouseover="menuItemMouseover(event,'menuTrackers');"><span class="menuItemText"><%=l(:label_tracker_plural)%></span><span class="menuItemArrow">&#9654;</span></a>
68 63 <a class="menuItem" href="/custom_fields"><%=l(:label_custom_field_plural)%></a>
69 64 <a class="menuItem" href="/enumerations"><%=l(:label_enumerations)%></a>
70 65 <a class="menuItem" href="/admin/mail_options"><%=l(:field_mail_notification)%></a>
71 66 <a class="menuItem" href="/auth_sources"><%=l(:label_authentication)%></a>
72 67 <a class="menuItem" href="/admin/info"><%=l(:label_information_plural)%></a>
73 68 </div>
74 69 <div id="menuTrackers" class="menu">
75 70 <a class="menuItem" href="/issue_statuses"><%=l(:label_issue_status_plural)%></a>
76 71 <a class="menuItem" href="/roles/workflow"><%=l(:label_workflow)%></a>
77 72 </div>
78 73 <div id="menuProjects" class="menu"><a class="menuItem" href="/projects/add"><%=l(:label_new)%></a></div>
79 74 <div id="menuUsers" class="menu"><a class="menuItem" href="/users/add"><%=l(:label_new)%></a></div>
80 75 <% end %>
81 76
82 77 <% unless @project.nil? || @project.id.nil? %>
83 78 <div id="menuProject" class="menu" onmouseover="menuMouseover(event)">
84 79 <%= link_to l(:label_calendar), {:controller => 'projects', :action => 'calendar', :id => @project }, :class => "menuItem" %>
85 80 <%= link_to l(:label_gantt), {:controller => 'projects', :action => 'gantt', :id => @project }, :class => "menuItem" %>
86 81 <%= link_to l(:label_issue_plural), {:controller => 'projects', :action => 'list_issues', :id => @project }, :class => "menuItem" %>
87 82 <%= link_to l(:label_report_plural), {:controller => 'reports', :action => 'issue_report', :id => @project }, :class => "menuItem" %>
88 83 <%= link_to l(:label_activity), {:controller => 'projects', :action => 'activity', :id => @project }, :class => "menuItem" %>
89 84 <%= link_to l(:label_news_plural), {:controller => 'projects', :action => 'list_news', :id => @project }, :class => "menuItem" %>
90 85 <%= link_to l(:label_change_log), {:controller => 'projects', :action => 'changelog', :id => @project }, :class => "menuItem" %>
91 86 <%= link_to l(:label_document_plural), {:controller => 'projects', :action => 'list_documents', :id => @project }, :class => "menuItem" %>
92 87 <%= link_to l(:label_member_plural), {:controller => 'projects', :action => 'list_members', :id => @project }, :class => "menuItem" %>
93 88 <%= link_to l(:label_attachment_plural), {:controller => 'projects', :action => 'list_files', :id => @project }, :class => "menuItem" %>
94 89 <%= link_to l(:label_repository), {:controller => 'repositories', :action => 'show', :id => @project}, :class => "menuItem" if @project.repository and !@project.repository.new_record? %>
95 90 <%= link_to_if_authorized l(:label_settings), {:controller => 'projects', :action => 'settings', :id => @project }, :class => "menuItem" %>
96 91 </div>
97 92 <% end %>
98 93
99 94
100 95 <div id="subcontent">
101 96
102 97 <% unless @project.nil? || @project.id.nil? %>
103 98 <h2><%= @project.name %></h2>
104 99 <ul class="menublock">
105 100 <li><%= link_to l(:label_overview), :controller => 'projects', :action => 'show', :id => @project %></li>
106 101 <li><%= link_to l(:label_calendar), :controller => 'projects', :action => 'calendar', :id => @project %></li>
107 102 <li><%= link_to l(:label_gantt), :controller => 'projects', :action => 'gantt', :id => @project %></li>
108 103 <li><%= link_to l(:label_issue_plural), :controller => 'projects', :action => 'list_issues', :id => @project %></li>
109 104 <li><%= link_to l(:label_report_plural), :controller => 'reports', :action => 'issue_report', :id => @project %></li>
110 105 <li><%= link_to l(:label_activity), :controller => 'projects', :action => 'activity', :id => @project %></li>
111 106 <li><%= link_to l(:label_news_plural), :controller => 'projects', :action => 'list_news', :id => @project %></li>
112 107 <li><%= link_to l(:label_change_log), :controller => 'projects', :action => 'changelog', :id => @project %></li>
113 108 <li><%= link_to l(:label_document_plural), :controller => 'projects', :action => 'list_documents', :id => @project %></li>
114 109 <li><%= link_to l(:label_member_plural), :controller => 'projects', :action => 'list_members', :id => @project %></li>
115 110 <li><%= link_to l(:label_attachment_plural), :controller => 'projects', :action => 'list_files', :id => @project %></li>
116 111 <li><%= link_to l(:label_repository), :controller => 'repositories', :action => 'show', :id => @project if @project.repository and !@project.repository.new_record? %></li>
117 112 <li><%= link_to_if_authorized l(:label_settings), :controller => 'projects', :action => 'settings', :id => @project %></li>
118 113 </ul>
119 114 <% end %>
120 115
121 116 <% if loggedin? and @logged_in_user.memberships.length > 0 %>
122 117 <h2><%=l(:label_my_projects) %></h2>
123 118 <ul class="menublock">
124 119 <% for membership in @logged_in_user.memberships %>
125 120 <li><%= link_to membership.project.name, :controller => 'projects', :action => 'show', :id => membership.project %></li>
126 121 <% end %>
127 122 </ul>
128 123 <% end %>
129 124 </div>
130 125
131 126 <div id="content">
132 127 <% if flash[:notice] %><p style="color: green"><%= flash[:notice] %></p><% end %>
133 128 <%= @content_for_layout %>
134 129 </div>
135 130
136 131 <div id="footer">
137 132 <p>
138 133 <%= auto_link $RDM_FOOTER_SIG %> |
139 134 <a href="http://redmine.rubyforge.org/"><%= RDM_APP_NAME %></a> <%= RDM_APP_VERSION %>
140 135 </p>
141 136 </div>
142 137
143 138 </div>
144 139 </body>
145 140 </html> No newline at end of file
@@ -1,37 +1,44
1 1 <%= error_messages_for 'project' %>
2 2
3 3 <div class="box">
4 4 <!--[form:project]-->
5 5 <p><%= f.text_field :name, :required => true %></p>
6 6
7 7 <% if admin_loggedin? and !@root_projects.empty? %>
8 8 <p><%= f.select :parent_id, (@root_projects.collect {|p| [p.name, p.id]}), { :include_blank => true } %></p>
9 9 <% end %>
10 10
11 11 <p><%= f.text_area :description, :required => true, :cols => 60, :rows => 3 %></p>
12 12 <p><%= f.text_field :homepage, :size => 40 %></p>
13 13 <p><%= f.check_box :is_public %></p>
14 14
15 15 <% for @custom_value in @custom_values %>
16 16 <p><%= custom_field_tag_with_label @custom_value %></p>
17 17 <% end %>
18 18
19 19 <% unless @custom_fields.empty? %>
20 20 <p><label><%=l(:label_custom_field_plural)%></label>
21 21 <% for custom_field in @custom_fields %>
22 22 <%= check_box_tag "custom_field_ids[]", custom_field.id, ((@project.custom_fields.include? custom_field) or custom_field.is_for_all?), (custom_field.is_for_all? ? {:disabled => "disabled"} : {}) %>
23 23 <%= custom_field.name %>
24 24 <% end %></p>
25 25 <% end %>
26 26 <!--[eoform:project]-->
27 27 </div>
28 28
29 29 <div class="box"><h3><%= check_box_tag "repository_enabled", 1, !@project.repository.nil?, :onclick => "Element.toggle('repository');" %> <%= l(:label_repository) %></h3>
30 30 <%= hidden_field_tag "repository_enabled", 0 %>
31 31 <div id="repository">
32 32 <% fields_for :repository, @project.repository, { :builder => TabularFormBuilder, :lang => current_language} do |repository| %>
33 33 <p><%= repository.text_field :url, :size => 60, :required => true %><br />(http://, https://, svn://, file:///)</p>
34 34 <% end %>
35 35 </div>
36 36 <%= javascript_tag "Element.hide('repository');" if @project.repository.nil? %>
37 37 </div>
38
39 <% content_for :header_tags do %>
40 <%= javascript_include_tag 'calendar/calendar' %>
41 <%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
42 <%= javascript_include_tag 'calendar/calendar-setup' %>
43 <%= stylesheet_link_tag 'calendar' %>
44 <% end %> No newline at end of file
@@ -1,50 +1,57
1 1 <h2><%=l(:label_issue_new)%>: <%= @tracker.name %></h2>
2 2
3 3 <% labelled_tabular_form_for :issue, @issue, :url => {:action => 'add_issue'}, :html => {:multipart => true} do |f| %>
4 4 <%= error_messages_for 'issue' %>
5 5 <div class="box">
6 6 <!--[form:issue]-->
7 7 <%= hidden_field_tag 'tracker_id', @tracker.id %>
8 8
9 9 <div class="splitcontentleft">
10 10 <p><%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), :required => true %></p>
11 11 <p><%= f.select :assigned_to_id, (@issue.project.members.collect {|m| [m.name, m.user_id]}), :include_blank => true %></p>
12 12 <p><%= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true %></p>
13 13 </div>
14 14 <div class="splitcontentright">
15 15 <p><%= f.text_field :start_date, :size => 10 %><%= calendar_for('issue_start_date') %></p>
16 16 <p><%= f.text_field :due_date, :size => 10 %><%= calendar_for('issue_due_date') %></p>
17 17 <p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p>
18 18 </div>
19 19
20 20 <div class="clear">
21 21 <p><%= f.text_field :subject, :size => 80, :required => true %></p>
22 22 <p><%= f.text_area :description, :cols => 60, :rows => 10, :required => true %></p>
23 23
24 24 <% for @custom_value in @custom_values %>
25 25 <p><%= custom_field_tag_with_label @custom_value %></p>
26 26 <% end %>
27 27
28 28 <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%>&nbsp;
29 29 <%= link_to_function image_tag('add'), "addFileField()" %></label>
30 30 <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= human_size(Attachment.max_size) %>)</em></p>
31 31
32 32 </div>
33 33 <!--[eoform:issue]-->
34 34 </div>
35 35 <%= submit_tag l(:button_create) %>
36 36 <% end %>
37 37
38 38 <% unless $RDM_TEXTILE_DISABLED %>
39 39 <%= javascript_include_tag 'jstoolbar' %>
40 40 <script type="text/javascript">
41 41 //<![CDATA[
42 42 if (document.getElementById) {
43 43 if (document.getElementById('issue_description')) {
44 44 var commentTb = new jsToolBar(document.getElementById('issue_description'));
45 45 commentTb.draw();
46 46 }
47 47 }
48 48 //]]>
49 49 </script>
50 <% end %>
51
52 <% content_for :header_tags do %>
53 <%= javascript_include_tag 'calendar/calendar' %>
54 <%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
55 <%= javascript_include_tag 'calendar/calendar-setup' %>
56 <%= stylesheet_link_tag 'calendar' %>
50 57 <% end %> No newline at end of file
@@ -1,30 +1,37
1 1 <%= error_messages_for 'user' %>
2 2
3 3 <!--[form:user]-->
4 4 <div class="box">
5 5 <h3><%=l(:label_information_plural)%></h3>
6 6 <p><%= f.text_field :login, :required => true, :size => 25 %></p>
7 7 <p><%= f.text_field :firstname, :required => true %></p>
8 8 <p><%= f.text_field :lastname, :required => true %></p>
9 9 <p><%= f.text_field :mail, :required => true %></p>
10 10 <p><%= f.select :language, lang_options_for_select %></p>
11 11
12 12 <% for @custom_value in @custom_values %>
13 13 <p><%= custom_field_tag_with_label @custom_value %></p>
14 14 <% end if @custom_values%>
15 15
16 16 <p><%= f.check_box :admin %></p>
17 17 <p><%= f.check_box :mail_notification %></p>
18 18 </div>
19 19
20 20 <div class="box">
21 21 <h3><%=l(:label_authentication)%></h3>
22 22 <% unless @auth_sources.empty? %>
23 23 <p><%= f.select :auth_source_id, [[l(:label_internal), ""]] + @auth_sources.collect { |a| [a.name, a.id] } %></p>
24 24 <% end %>
25 25 <p><label for="password"><%=l(:field_password)%><span class="required"> *</span></label>
26 26 <%= password_field_tag 'password', nil, :size => 25 %></p>
27 27 <p><label for="password_confirmation"><%=l(:field_password_confirmation)%><span class="required"> *</span></label>
28 28 <%= password_field_tag 'password_confirmation', nil, :size => 25 %></p>
29 29 </div>
30 30 <!--[eoform:user]-->
31
32 <% content_for :header_tags do %>
33 <%= javascript_include_tag 'calendar/calendar' %>
34 <%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
35 <%= javascript_include_tag 'calendar/calendar-setup' %>
36 <%= stylesheet_link_tag 'calendar' %>
37 <% end %> No newline at end of file
@@ -1,9 +1,16
1 1 <%= error_messages_for 'version' %>
2 2
3 3 <div class="box">
4 4 <!--[form:version]-->
5 5 <p><%= f.text_field :name, :size => 20, :required => true %></p>
6 6 <p><%= f.text_field :description, :size => 60 %></p>
7 7 <p><%= f.text_field :effective_date, :size => 10, :required => true %><%= calendar_for('version_effective_date') %></p>
8 8 <!--[eoform:version]-->
9 </div> No newline at end of file
9 </div>
10
11 <% content_for :header_tags do %>
12 <%= javascript_include_tag 'calendar/calendar' %>
13 <%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
14 <%= javascript_include_tag 'calendar/calendar-setup' %>
15 <%= stylesheet_link_tag 'calendar' %>
16 <% end %> No newline at end of file
@@ -1,231 +1,231
1 1 /* The main calendar widget. DIV containing a table. */
2 2
3 3 div.calendar { position: relative; }
4 4
5 5 .calendar, .calendar table {
6 6 border: 1px solid #556;
7 7 font-size: 11px;
8 8 color: #000;
9 9 cursor: default;
10 10 background: #fafbfc;
11 11 font-family: tahoma,verdana,sans-serif;
12 12 }
13 13
14 14 /* Header part -- contains navigation buttons and day names. */
15 15
16 16 .calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
17 17 text-align: center; /* They are the navigation buttons */
18 18 padding: 2px; /* Make the buttons seem like they're pressing */
19 19 }
20 20
21 21 .calendar .nav {
22 background: #467aa7 url(menuarrow.gif) no-repeat 100% 100%;
22 background: #467aa7;
23 23 }
24 24
25 25 .calendar thead .title { /* This holds the current "month, year" */
26 26 font-weight: bold; /* Pressing it will take you to the current date */
27 27 text-align: center;
28 28 background: #fff;
29 29 color: #000;
30 30 padding: 2px;
31 31 }
32 32
33 33 .calendar thead .headrow { /* Row <TR> containing navigation buttons */
34 34 background: #467aa7;
35 35 color: #fff;
36 36 }
37 37
38 38 .calendar thead .daynames { /* Row <TR> containing the day names */
39 39 background: #bdf;
40 40 }
41 41
42 42 .calendar thead .name { /* Cells <TD> containing the day names */
43 43 border-bottom: 1px solid #556;
44 44 padding: 2px;
45 45 text-align: center;
46 46 color: #000;
47 47 }
48 48
49 49 .calendar thead .weekend { /* How a weekend day name shows in header */
50 50 color: #a66;
51 51 }
52 52
53 53 .calendar thead .hilite { /* How do the buttons in header appear when hover */
54 54 background-color: #80b0da;
55 55 color: #000;
56 56 padding: 1px;
57 57 }
58 58
59 59 .calendar thead .active { /* Active (pressed) buttons in header */
60 60 background-color: #77c;
61 61 padding: 2px 0px 0px 2px;
62 62 }
63 63
64 64 /* The body part -- contains all the days in month. */
65 65
66 66 .calendar tbody .day { /* Cells <TD> containing month days dates */
67 67 width: 2em;
68 68 color: #456;
69 69 text-align: right;
70 70 padding: 2px 4px 2px 2px;
71 71 }
72 72 .calendar tbody .day.othermonth {
73 73 font-size: 80%;
74 74 color: #bbb;
75 75 }
76 76 .calendar tbody .day.othermonth.oweekend {
77 77 color: #fbb;
78 78 }
79 79
80 80 .calendar table .wn {
81 81 padding: 2px 3px 2px 2px;
82 82 border-right: 1px solid #000;
83 83 background: #bdf;
84 84 }
85 85
86 86 .calendar tbody .rowhilite td {
87 87 background: #def;
88 88 }
89 89
90 90 .calendar tbody .rowhilite td.wn {
91 91 background: #80b0da;
92 92 }
93 93
94 94 .calendar tbody td.hilite { /* Hovered cells <TD> */
95 95 background: #80b0da;
96 96 padding: 1px 3px 1px 1px;
97 97 border: 1px solid #bbb;
98 98 }
99 99
100 100 .calendar tbody td.active { /* Active (pressed) cells <TD> */
101 101 background: #cde;
102 102 padding: 2px 2px 0px 2px;
103 103 }
104 104
105 105 .calendar tbody td.selected { /* Cell showing today date */
106 106 font-weight: bold;
107 107 border: 1px solid #000;
108 108 padding: 1px 3px 1px 1px;
109 109 background: #fff;
110 110 color: #000;
111 111 }
112 112
113 113 .calendar tbody td.weekend { /* Cells showing weekend days */
114 114 color: #a66;
115 115 }
116 116
117 117 .calendar tbody td.today { /* Cell showing selected date */
118 118 font-weight: bold;
119 119 color: #f00;
120 120 }
121 121
122 122 .calendar tbody .disabled { color: #999; }
123 123
124 124 .calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
125 125 visibility: hidden;
126 126 }
127 127
128 128 .calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
129 129 display: none;
130 130 }
131 131
132 132 /* The footer part -- status bar and "Close" button */
133 133
134 134 .calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
135 135 text-align: center;
136 136 background: #556;
137 137 color: #fff;
138 138 }
139 139
140 140 .calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
141 141 background: #fff;
142 142 color: #445;
143 143 border-top: 1px solid #556;
144 144 padding: 1px;
145 145 }
146 146
147 147 .calendar tfoot .hilite { /* Hover style for buttons in footer */
148 148 background: #aaf;
149 149 border: 1px solid #04f;
150 150 color: #000;
151 151 padding: 1px;
152 152 }
153 153
154 154 .calendar tfoot .active { /* Active (pressed) style for buttons in footer */
155 155 background: #77c;
156 156 padding: 2px 0px 0px 2px;
157 157 }
158 158
159 159 /* Combo boxes (menus that display months/years for direct selection) */
160 160
161 161 .calendar .combo {
162 162 position: absolute;
163 163 display: none;
164 164 top: 0px;
165 165 left: 0px;
166 166 width: 4em;
167 167 cursor: default;
168 168 border: 1px solid #655;
169 169 background: #def;
170 170 color: #000;
171 171 font-size: 90%;
172 172 z-index: 100;
173 173 }
174 174
175 175 .calendar .combo .label,
176 176 .calendar .combo .label-IEfix {
177 177 text-align: center;
178 178 padding: 1px;
179 179 }
180 180
181 181 .calendar .combo .label-IEfix {
182 182 width: 4em;
183 183 }
184 184
185 185 .calendar .combo .hilite {
186 186 background: #acf;
187 187 }
188 188
189 189 .calendar .combo .active {
190 190 border-top: 1px solid #46a;
191 191 border-bottom: 1px solid #46a;
192 192 background: #eef;
193 193 font-weight: bold;
194 194 }
195 195
196 196 .calendar td.time {
197 197 border-top: 1px solid #000;
198 198 padding: 1px 0px;
199 199 text-align: center;
200 200 background-color: #f4f0e8;
201 201 }
202 202
203 203 .calendar td.time .hour,
204 204 .calendar td.time .minute,
205 205 .calendar td.time .ampm {
206 206 padding: 0px 3px 0px 4px;
207 207 border: 1px solid #889;
208 208 font-weight: bold;
209 209 background-color: #fff;
210 210 }
211 211
212 212 .calendar td.time .ampm {
213 213 text-align: center;
214 214 }
215 215
216 216 .calendar td.time .colon {
217 217 padding: 0px 2px 0px 3px;
218 218 font-weight: bold;
219 219 }
220 220
221 221 .calendar td.time span.hilite {
222 222 border-color: #000;
223 223 background-color: #667;
224 224 color: #fff;
225 225 }
226 226
227 227 .calendar td.time span.active {
228 228 border-color: #f00;
229 229 background-color: #000;
230 230 color: #0f0;
231 231 }
General Comments 0
You need to be logged in to leave comments. Login now