Skip to content

Commit

Permalink
Adjust buttons in project/_create_package_form partial for modals/non…
Browse files Browse the repository at this point in the history
…-modals
  • Loading branch information
dmarcoux committed Sep 2, 2019
1 parent a9d4429 commit bd571c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@
.form-group.custom-control.custom-checkbox
= check_box_tag :disable_publishing, 1, false, class: 'custom-control-input', type: 'checkbox'
%label.custom-control-label{ for: 'disable_publishing' } Disable build results publishing
.modal-footer
= render partial: 'webui2/shared/dialog_action_buttons', locals: { submit_tag_text: 'Create' }
- if defined?(modal)
.modal-footer
= render partial: 'webui2/shared/dialog_action_buttons', locals: { submit_tag_text: 'Create' }
- else
= submit_tag('Create', class: 'btn btn-primary px-4')
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
%h5.modal-title#new-package-modal-label
Create Package for #{project.name}
.modal-body
= render partial: 'create_package_form', locals: { project: project }
= render partial: 'create_package_form', locals: { project: project, modal: true }

0 comments on commit bd571c2

Please sign in to comment.