diff --git a/app/views/hyrax/admin/admin_sets/_form_workflow.erb b/app/views/hyrax/admin/admin_sets/_form_workflow.erb new file mode 100644 index 000000000..a7381ef61 --- /dev/null +++ b/app/views/hyrax/admin/admin_sets/_form_workflow.erb @@ -0,0 +1,30 @@ +<%# OVERRIDE Hyrax v3.6.0 to hide custom mediated workflow for Hyku Commons %> + +
+
+ <%= simple_form_for collection_permission_template_form_for(form: @form), + url: [hyrax, :admin, @form, :permission_template], + html: { id: 'form_workflows', class: 'nav-safety' } do |f| %> + <% if f.object.available_workflows.any? %> +
+

<%= t('.page_description') %>

+ <%# OVERRIDE begin %> + <% available_workflows = f.object.available_workflows.select { |wf| wf.name != 'hyku_commons_mediated_deposit' } %> + <%= f.collection_radio_buttons :workflow_id, available_workflows, :id, :label, item_wrapper_tag: :div, item_wrapper_class: "radio" do |b| %> + <%# OVERRIDE end %> + <%= b.radio_button + b.object.label %> +

<%= b.object.description %>

+ <% end %> +
+ + <% else %> +
+

<%= t('.no_workflows') %>

+
+ <% end %> + <% end %> +
+