diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb new file mode 100644 index 0000000..d5da684 --- /dev/null +++ b/app/views/tasks/index.html.erb @@ -0,0 +1,68 @@ +<%= stylesheet_link_tag 'tasks' %> + +
+ +<% + type_collection = [[nil, _('All')]] + @task_types +%> + +<% if !@failed.blank? %> +
<%=_("This error happened with the following tasks: ")%>
++ <%= labelled_select(_('Filter')+': ', :filter_type, :first, :last, @filter, type_collection, :onchange => "document.location.href = '?filter_type='+this.value")%> +
+ <%= _('No pending tasks for %s') % profile.name %> +<% else %> + <%= form_tag :action => 'close' do%> + <% button_bar do %> + <%# FiXME button(:edit, _('View my requests'), :action => 'list_requested') %> + <%# FIXME button('menu-mail', _('Send request'), :action => 'new') %> + <%= submit_button :save, _("Apply!") %> + <%= button(:edit, _('View processed tasks'), :action => 'processed') %> + <%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %> + <% end %> + ++ <%= labelled_select(_('Filter')+': ', :filter_type, :first, :last, @filter, type_collection, :onchange => "document.location.href = '?filter_type='+this.value") %> +
++ <%= labelled_select(_("Set all to: "), 'set-decisions', 'first', 'last', nil, [['',""],['accept',_("Accept")],['reject',_("Reject")],['skip',_("Skip")]], :id => "up-set-all-tasks-to") %> +
+ <% @tasks.each do |task| %> + <%= render :partial => 'task', :locals => { :task => task } %> + <% end %> ++ <%= labelled_select(_("Set all to: "), 'set-decisions', 'first', 'last', nil, [['',""],['accept',_("Accept")],['reject',_("Reject")],['skip',_("Skip")]], :id => "down-set-all-tasks-to") %> +
+