Workflow default status and computing positions
This commit is contained in:
@@ -9,5 +9,5 @@ h1
|
||||
h2 Statuses
|
||||
|
||||
ul
|
||||
- @workflow.task_statuses.each do |status|
|
||||
- @workflow.task_statuses.default_order.each do |status|
|
||||
li= task_status_badge(status)
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
= f.fields_for :task_statuses do |tsf|
|
||||
section
|
||||
div= task_status_badge tsf.object
|
||||
div= f.radio_button :default_status_id, tsf.object.id
|
||||
div= tsf.collection_checkboxes :next_status_ids, @workflow.task_statuses - [tsf.object], :id, :name
|
||||
|
||||
.submit
|
||||
|
||||
Reference in New Issue
Block a user