Files
old-web/app/views/vrsta_nekretnine.ejs

30 lines
691 B
Plaintext
Raw Normal View History

2019-04-14 06:01:37 +02:00
<div class="row center-align">
<h2>Koju nekretninu tražite?</h2>
</div>
2019-04-15 06:56:03 +02:00
<form method="POST" id="form-vrsta">
2019-04-14 06:01:37 +02:00
<div class="row center-align">
<ul class="collection with-header">
<% for(let vrsta of vrste) { %>
2019-04-15 06:56:03 +02:00
<li class="collection-item" > <div id="<%= vrsta.id %>" ><%= vrsta.ime %><a href="#!" class="secondary-content"><i class="material-icons">send</i></a></div></li>
2019-04-14 06:01:37 +02:00
<% } %>
</ul>
2019-04-15 06:56:03 +02:00
<input type="hidden" name="vrsta" id="vrsta" />
2019-04-14 06:01:37 +02:00
</div>
2019-04-15 06:56:03 +02:00
</form>
2019-04-14 06:01:37 +02:00
2019-04-15 06:56:03 +02:00
<script>
$(document).ready( () => {
$(".collection-item").click( (e) => {
const clickedId = $(e.target).attr("id");
$("#vrsta").val(clickedId);
$("#form-vrsta").submit();
});
});
</script>
2019-04-14 06:01:37 +02:00