Skip to content

Commit

Permalink
Move buttons for StagingWorkflow show page to the top
Browse files Browse the repository at this point in the history
Moved the buttons to the top to be consistent with the Edit action
  • Loading branch information
Moises Deniz Aleman committed Nov 19, 2018
1 parent b984408 commit c94845a
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/api/app/views/webui2/webui/staging/workflows/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,21 @@
= render(partial: 'webui2/webui/project/tabs', locals: { project: @project })
.card-body
%h3= @pagetitle

%hr

= render(partial: 'staging_projects_table',
locals: { staging_workflow: @staging_workflow, staging_projects: @staging_projects, display_actions_column: false })

%ul.list-inline
%ul.list-inline.mb-0
%li.list-inline-item
= link_to(edit_staging_workflow_path(@staging_workflow)) do
= link_to(edit_staging_workflow_path(@staging_workflow), class: 'nav-link') do
%i.fas.fa-edit.text-info
Edit
- if policy(@staging_workflow).destroy?
%a{ data: { toggle: 'modal', target: '#delete-staging-workflow' }, href: '#' }
%i.fas.fa-times-circle.text-danger
Delete
= render(partial: 'webui2/webui/staging/workflows/delete', locals: { project: @project })
%li.list-inline-item
= link_to('#', class: 'nav-link', data: { toggle: 'modal', target: '#delete-staging-workflow' }) do
%i.fas.fa-times-circle.text-danger
Delete
= render(partial: 'delete', locals: { project: @project })

= render(partial: 'staging_projects_table',
locals: { staging_workflow: @staging_workflow, staging_projects: @staging_projects, display_actions_column: false })

.col-xl-2
= render partial: 'legend'
= render partial: 'infos', locals: { staging_workflow: @staging_workflow, empty_projects: @empty_projects,
Expand All @@ -31,4 +30,4 @@
project: @project, managers: @managers }

- content_for :ready_function do
$('#staging-projects-datatable').DataTable({ responsive: true });
$('#staging-projects-datatable').DataTable({responsive: true, paging: false, ordering: false, searching: false, info: false});

0 comments on commit c94845a

Please sign in to comment.