-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
BlackPearl96
committed
Sep 3, 2019
1 parent
1cb612c
commit 64c7850
Showing
7 changed files
with
88 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
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,10 +1,12 @@ | ||
tr | ||
td | ||
= room.name | ||
= link_to room.name, manager_room_path(room) | ||
td | ||
= room.location.name | ||
td | ||
= room.type_room | ||
td.action | ||
= link_to t(".edit"), edit_manager_room_path(room), | ||
class: "action btn btn-outline-info" | ||
= link_to t(".delete"), manager_room_path(room), method: :delete, | ||
data: {confirm: t(".sure") }, class: "action btn btn-outline-danger" |
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
.bs-example | ||
ul.nav.nav-tabs | ||
li.nav-item | ||
= link_to "#home", class: "nav-link active", data:{toggle: "tab"} do | ||
= t ".description" | ||
li | ||
= link_to "#menu1", class: "nav-link", data:{toggle: "tab"} do | ||
= t ".room" | ||
li | ||
= link_to "#menu2", class: "nav-link", data:{toggle: "tab"} do | ||
= t ".utility" | ||
li | ||
= link_to "#menu3", class: "nav-link", data:{toggle: "tab"} do | ||
= t ".image" | ||
.tab-content | ||
#home.tab-pane.fade.show.active | ||
h3 = @room.name | ||
= @room.description | ||
#menu1.tab-pane.fade | ||
h3 = t ".room" | ||
div.row | ||
.col-md-3 | ||
= t ".guest" | ||
.col-md-9 | ||
= @room.guest | ||
div.row | ||
.col-md-3 | ||
= t ".bed_room" | ||
.col-md-9 | ||
= @room.bed_room | ||
div.row | ||
.col-md-3 | ||
= t ".bath_room" | ||
.col-md-9 | ||
= @room.bath_room | ||
div.row | ||
.col-md-3 | ||
= t ".acreage" | ||
.col-md-9 | ||
= @room.acreage | ||
div.row | ||
.col-md-3 | ||
= t ".address" | ||
.col-md-9 | ||
= @room.address | ||
div.row | ||
.col-md-3 | ||
= t ".type_room" | ||
.col-md-9 | ||
= @room.type_room | ||
#menu2.tab-pane.fade | ||
h3 = t ".utility" | ||
#menu3.tab-pane.fade | ||
h3 = t ".image" | ||
- @room.room_images.each do |img| | ||
= image_tag img.image.url, class: "image-detail" |
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