Workflows index

This commit is contained in:
2026-03-22 22:50:37 +02:00
parent 72af5a0610
commit 1c1d11cbe6
16 changed files with 179 additions and 18 deletions
+11
View File
@@ -0,0 +1,11 @@
h1
span> Project
span= @project.name
= link_to '← Back', project_path(@project)
= render tabs
= turbo_frame_tag(id) do
= content
= turbo_stream.replace(tabs_id, tabs)
+3
View File
@@ -0,0 +1,3 @@
nav.tabs id=id
- links.each do |text, path|
li= link_to text, path, class: {'active': request.path == path}, data: {'turbo-frame': frame, 'turbo-action': 'advance'}
@@ -0,0 +1,9 @@
= project_admin_frame(@project) do
h2
span Workflows
- @workflows.each do |workflow|
article.row
= workflow_display(workflow, full: true)
ul.links.right
li= link_to 'Edit', edit_project_workflow_path(@project, workflow), target: '_blank'
+4 -4
View File
@@ -1,5 +1,5 @@
h1
span Editing project
span= @project.name
= project_admin_frame(@project) do
h2
span Editing project
= render 'form'
= render 'form'
+2 -2
View File
@@ -1,4 +1,4 @@
div.workflow class=color title=name
= image_tag(icon)
= mask_icon(icon)
- if full
span= name
span<= name