mirror of
https://github.com/kingomarnajjar/curly-happiness.git
synced 2026-07-25 22:27:18 +10:00
multiple file upload in carousel
This commit is contained in:
parent
c67de55355
commit
4ff0fcda41
2 changed files with 9 additions and 13 deletions
|
|
@ -11,20 +11,16 @@
|
|||
|
||||
<body>
|
||||
<% @listings.each do |listing| %>
|
||||
<%= cl_image_tag listing.photo %>
|
||||
<%= cl_image_tag listing.photo2 %>
|
||||
<%= cl_image_tag listing.photo.inspect %>
|
||||
|
||||
|
||||
<!-- <div class="carousel">
|
||||
<a class="carousel-item" href="#one!"><"<%= cl_image_tag listing.photo_url %>"></a>
|
||||
<a class="carousel-item" href="#two!"><"<%= image_tag listing.photo_url %>"></a>
|
||||
<a class="carousel-item" href="#three!"><"<%= image_tag listing.photo_url %>"></a>
|
||||
<a class="carousel-item" href="#four!"><"<%= image_tag listing.photo_url %>"></a>
|
||||
<a class="carousel-item" href="#five!"><"<%= image_tag listing.photo_url%>"></a>
|
||||
</div> -->
|
||||
<div class="carousel carousel-slider">
|
||||
<a class="carousel-item" href="#one!"><img src="<%= listing.photo_url %>"></a>
|
||||
<a class="carousel-item" href="#two!"><img src="<%= listing.photo2_url %>"></a>
|
||||
<a class="carousel-item" href="#three!"><img src="<%= listing.photo3_url %>"></a>
|
||||
<a class="carousel-item" href="#four!"><img src="<%= listing.photo4_url %>"></a>
|
||||
<a class="carousel-item" href="#five!"><img src="<%= listing.photo5_url %>"></a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$('.carousel.carousel-slider').carousel({fullWidth: true});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
User.create!(email: "najomar68@gmail.com",password: "123456")
|
||||
User.create!(email: "najomar68@gmail.com",password: "123456", user_id: 1, role: "admin")
|
||||
User.create!(email: "kevin@gmail.com", password: "123456")
|
||||
User.create!(email: "takuya@gmail.com", password: "123456")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue