forked from hmlON/room538
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to destroy room_activities
- Loading branch information
Showing
3 changed files
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
.form.row | ||
.edit_activities.form.row | ||
- @room_activities.each do |activity| | ||
.checkbox.col-sm-6 | ||
.checkbox.col-sm-6 class="room_activity_#{activity.id}_field" | ||
label for="#{dom_id(activity)}" | ||
= check_box_tag 'activity_ids[]', activity.id, activity.enabled?, id: dom_id(activity), class: "js-update-room-activity", data: { id: activity.id } | ||
= activity.name | ||
/ - unless activity.creator.nil? | ||
/ = link_to '×'.html_safe, room_activity_path(id: activity.id), method: :delete | ||
= link_to '×', room_activity_path(id: activity.id), method: :delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters