-
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.
- Loading branch information
1 parent
ff5848a
commit 1968a0c
Showing
22 changed files
with
255 additions
and
300 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
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,22 +1,22 @@ | ||
<div class="container"> | ||
<div class="form-control" style="background-color:white;border: none"> | ||
<h2>Book a date with <br><%= @pet.name %> ?</h2> | ||
<%= form_with model: [@pet, @booking], authenticity_token: true do |f| %> | ||
<%= f.text_field :start_date, placeholder: 'Start Date', label:false, | ||
data: { | ||
controller: "flatpickr", | ||
flatpickr_date_format: "d-m-Y", | ||
flatpickr_min_date: Time.zone.now #disables past dates | ||
} %> | ||
<%= f.text_field :end_date, placeholder: 'End Date', label:false, | ||
data: { | ||
controller: "flatpickr", | ||
flatpickr_date_format: "d-m-Y", | ||
flatpickr_min_date: Time.zone.now #disables past dates | ||
} %> | ||
<h2>Book a date with <br><%= @pet.name %> ?</h2> | ||
<%= form_with model: [@pet, @booking], authenticity_token: true do |f| %> | ||
<%= f.text_field :start_date, placeholder: 'Start Date', label:false, | ||
data: { | ||
controller: "flatpickr", | ||
flatpickr_date_format: "d-m-Y", | ||
flatpickr_min_date: Time.zone.now #disables past dates | ||
} %> | ||
<%= f.text_field :end_date, placeholder: 'End Date', label:false, | ||
data: { | ||
controller: "flatpickr", | ||
flatpickr_date_format: "d-m-Y", | ||
flatpickr_min_date: Time.zone.now #disables past dates | ||
} %> | ||
<div class="container d-flex justify-content-end"> | ||
<%= f.submit class: "btn-green" %> | ||
</div> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> |
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,49 +1,44 @@ | ||
<div class="container mb-4 mt-5 p-0" style="background-color: white; color: black; width: 1000px; height: 500px;z-index: 100;"> | ||
<div class="d-flex justify-content-between p-0 m-0" style="background-color: white; | ||
"> | ||
<% if @pet.photo.key%> | ||
<%= cl_image_tag @pet.photo.key, :height=>500, :width=>500, :fill=>"fill" %> | ||
<% else %> | ||
<div class="card-product-show"> | ||
<div class="card-image-show"> | ||
<div class="card-product img"> | ||
<% if @pet.species == "dog" %> | ||
<%= image_tag ("https://images.unsplash.com/photo-1530281700549-e82e7bf110d6?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=388&q=80")%> | ||
<% elsif @pet.species == "monkey" %> | ||
<%= image_tag("https://images.unsplash.com/photo-1516636052745-e142aecffd0c?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1935&q=80")%> | ||
<% elsif @pet.species == "cat" %> | ||
<%= image_tag("https://images.unsplash.com/photo-1543852786-1cf6624b9987?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=387&q=80")%> | ||
<% elsif @pet.species == "piglet" %> | ||
<%= image_tag("https://images.unsplash.com/photo-1617167152074-821b4f8af3d5?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=387&q=80")%> | ||
<% elsif @pet.species == "rabbit" %> | ||
<%= image_tag("https://images.unsplash.com/photo-1591382386627-349b692688ff?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=387&q=80")%> | ||
<% end %> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
<% end %> | ||
|
||
<div class="mt-5" style="width: 600px;"> | ||
<div class="form-actions" > | ||
<%= render 'bookings/form', pet: @pet, booking: @booking %> | ||
<div class="d-flex justify-content-between p-0 m-0" style="background-color: white;"> | ||
<% if @pet.photo.key%> | ||
<%= cl_image_tag @pet.photo.key, :height=>500, :width=>500, :fill=>"fill" %> | ||
<% else %> | ||
<div class="card-product-show"> | ||
<div class="card-image-show"> | ||
<div class="card-product img"> | ||
<% if @pet.species == "dog" %> | ||
<%= image_tag ("https://images.unsplash.com/photo-1530281700549-e82e7bf110d6?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=388&q=80")%> | ||
<% elsif @pet.species == "monkey" %> | ||
<%= image_tag("https://images.unsplash.com/photo-1516636052745-e142aecffd0c?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1935&q=80")%> | ||
<% elsif @pet.species == "cat" %> | ||
<%= image_tag("https://images.unsplash.com/photo-1543852786-1cf6624b9987?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=387&q=80")%> | ||
<% elsif @pet.species == "piglet" %> | ||
<%= image_tag("https://images.unsplash.com/photo-1617167152074-821b4f8af3d5?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=387&q=80")%> | ||
<% elsif @pet.species == "rabbit" %> | ||
<%= image_tag("https://images.unsplash.com/photo-1591382386627-349b692688ff?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=387&q=80")%> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
<% end %> | ||
|
||
<div class="" style=" | ||
z-index: -2; | ||
top: -104px; | ||
position: relative; | ||
left: 853px; | ||
display: flex; | ||
justify-content: flex-start; | ||
align-items: self-end;"> | ||
<div class="img-booking" style="border: none;"> | ||
<%= image_tag "huella.png", height: 300, class: "animal", style: "border: none;" %> | ||
<div class="mt-5" style="width: 600px;"> | ||
<div class="form-actions" > | ||
<%= render 'bookings/form', pet: @pet, booking: @booking %> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="" style=" | ||
z-index: -2; | ||
top: -104px; | ||
position: relative; | ||
left: 853px; | ||
display: flex; | ||
justify-content: flex-start; | ||
align-items: self-end;"> | ||
<div class="img-booking" style="border: none;"> | ||
<%= image_tag "huella.png", height: 300, class: "animal", style: "border: none;" %> | ||
</div> | ||
</div> | ||
</div> |
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
Oops, something went wrong.