Skip to content

Commit

Permalink
Extract action form modal
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlON committed Jun 14, 2017
1 parent 943b44e commit 7d4a7cb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
11 changes: 11 additions & 0 deletions app/views/actions/_form_modal.html.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#createActionModal.modal.fade aria-hidden="true" aria-labelledby="createActionModalLabel" role="dialog" tabindex="-1"
.modal-dialog role="document"
.modal-content
.modal-header
h5#createActionModalLabel.modal-title Create new action
button.close aria-label="Close" data-dismiss="modal" type="button"
span aria-hidden="true" ×
.modal-body
= render "actions/form"
.modal-footer
button.btn.btn-secondary data-dismiss="modal" type="button" Close
12 changes: 1 addition & 11 deletions app/views/rooms/_form.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,4 @@
.actions.text-center
= f.button :submit, submit_button_text, class: 'btn btn-primary'

#createActionModal.modal.fade aria-hidden="true" aria-labelledby="createActionModalLabel" role="dialog" tabindex="-1"
.modal-dialog role="document"
.modal-content
.modal-header
h5#createActionModalLabel.modal-title Create new action
button.close aria-label="Close" data-dismiss="modal" type="button"
span aria-hidden="true" ×
.modal-body
= render "actions/form"
.modal-footer
button.btn.btn-secondary data-dismiss="modal" type="button" Close
= render "actions/form_modal"

0 comments on commit 7d4a7cb

Please sign in to comment.