-
Notifications
You must be signed in to change notification settings - Fork 83
/
list.html.erb
66 lines (62 loc) · 3.49 KB
/
list.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<%= javascript_include_tag 'libs/jquery-1.7.2.min.js', :plugin => 'AgileDwarf' %>
<%= javascript_include_tag 'libs/jquery-ui-1.8.18.custom.min.js', :plugin => 'AgileDwarf' %>
<%= javascript_include_tag 'libs/jquery.jeditable.mini.js', :plugin => 'AgileDwarf' %>
<%= javascript_include_tag 'libs/jquery.jeditable.datepicker.js', :plugin => 'AgileDwarf' %>
<%= javascript_include_tag 'libs/jquery.textPlaceholder.js', :plugin => 'AgileDwarf' %>
<%= javascript_include_tag 'libs/jquery.jeditable.ptext.js', :plugin => 'AgileDwarf' %>
<%= javascript_include_tag 'libs/jquery.qtip.min.js', :plugin => 'AgileDwarf' %>
<%= javascript_include_tag 'common', :plugin => 'AgileDwarf' %>
<%= javascript_include_tag 'sprints_mine', :plugin => 'AgileDwarf' %>
<%= stylesheet_link_tag 'sprints.css', :plugin => 'AgileDwarf', :media => 'print,screen' %>
<%= stylesheet_link_tag 'jquery-ui-1.8.18.custom.css', :plugin => 'AgileDwarf', :media => 'print,screen' %>
<%= stylesheet_link_tag 'jquery.qtip.min.css', :plugin => 'AgileDwarf', :media => 'print,screen' %>
<script type="text/javascript">
Sprints.setOptions(
{
project_id: <%=h @project_id %>,
protect_against_forgery: <%= protect_against_forgery? ? "true" : "false" %>,
request_forgery_protection_token: '<%= request_forgery_protection_token %>',
form_authenticity_token: '<%= form_authenticity_token %>',
project_users: <%= ActiveSupport::JSON.encode(@assignables_list).html_safe %>,
urls:
{
'taskdnd': '<%= url_for(:controller => 'adtaskinl', :action => 'update') %>',
'taskinline': '<%= url_for(:controller => 'adtaskinl', :action => 'inplace') %>',
'tasktip': '<%= url_for(:controller => 'adtaskinl', :action => 'tooltip') %>',
'taskspent': '<%= url_for(:controller => 'adtaskinl', :action => 'spent') %>',
'self': '<%= url_for(:controller => 'adtasks', :action => 'list') %>'
},
lang:
{
task_subject_placeholder: '<%= l(:label_sprints_placeholder_subject) %>',
task_estimate_placeholder: '<%= l(:label_sprints_placeholder_estimated) %>'
}
});
</script>
<h2><%= l(:label_menu_mytasks) %></h2>
<div id="selections">
<fieldset id="filters" class="collapsible">
<legend><%= l(:label_filter_plural) %></legend>
<div id="sprints_selection" class="fl">
<select>
<option <%= @selected == 'all' ? 'selected=selected' : '' %> value='all'><%= l(:label_sprints_select_all) %></option>
<option <%= @selected == 'none' ? 'selected=selected' : '' %> value='none'><%= l(:label_sprints_select_none) %></option>
<%- @sprints.each do |s| %>
<option value="<%= s.id %>" <%= @selected == s.id.to_s ? 'selected=selected' : '' %>><%= s.name %></option>
<%- end %>
</select>
</div>
<div id="user_selection" class="fl">
<select>
<option <%= @user == 'all' ? 'selected=selected' : '' %> value='all'><%= l(:label_tasks_select_user_all) %></option>
<option <%= @user == 'current' ? 'selected=selected' : '' %> value='current'><%= l(:label_tasks_select_user_current) %></option>
<%- @assignables.each do |s| %>
<option value="<%= s.id %>" <%= @user == s.id.to_s ? 'selected=selected' : '' %>><%= s.firstname + ' ' + s.lastname %></option>
<%- end %>
</select>
</div>
</fieldset>
</div>
<div id="tasks">
<%= render :partial => "column", :collection => @columns %>
</div>