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