From f39f64e08d2cde6efb8d2c50c612a707fa8abf27 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Sat, 1 Mar 2008 22:06:01 +0000 Subject: [PATCH] ActionItem172: adding a generic task partial --- app/views/tasks/_task.rhtml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+), 0 deletions(-) create mode 100644 app/views/tasks/_task.rhtml diff --git a/app/views/tasks/_task.rhtml b/app/views/tasks/_task.rhtml new file mode 100644 index 0000000..40dcd88 --- /dev/null +++ b/app/views/tasks/_task.rhtml @@ -0,0 +1,19 @@ +<%# a generic task solver %> +

<%= _('Processing task: %s') % task.description %>

+ +<% form_for('task', task, :url => { :action => 'close', :id => task.id}) do |f| %> + +
+ <%= radio_button_tag(:decision, 'finish', true) %> + <%= _('OK') %> +
+
+ <%= radio_button_tag(:decision, 'cancel', false) %> + <%= _('Cancel') %> +
+ + <% button_bar do %> + <%= submit_button(:ok, _('OK')) %> + <% end %> + +<% end %> -- libgit2 0.21.2