2019-05-16 19:40:26 +02:00
|
|
|
<!--suppress HtmlUnknownAnchorTarget -->
|
2019-09-13 11:08:45 +02:00
|
|
|
<% include partials/navBar %>
|
2019-05-15 15:27:10 +02:00
|
|
|
|
|
|
|
|
<form method="POST" id="form-real-estate-type">
|
|
|
|
|
<div class="row center-align">
|
|
|
|
|
<ul class="collection with-header">
|
2019-05-22 15:58:42 +02:00
|
|
|
<% for(const realEstateType of realEstateTypes) { %>
|
|
|
|
|
<li class="collection-item">
|
|
|
|
|
<div id="<%= realEstateType.id %>" onclick="saveAndSubmit(this.id)"><%= realEstateType.title %>
|
|
|
|
|
<a href="#" class="secondary-content">
|
2019-05-15 15:27:10 +02:00
|
|
|
<i class="material-icons">send</i>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<% } %>
|
|
|
|
|
</ul>
|
2019-09-13 11:08:45 +02:00
|
|
|
<input type="hidden" name="realEstateType" id="realEstateType" />
|
2019-05-15 15:27:10 +02:00
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<script>
|
2019-05-22 15:58:42 +02:00
|
|
|
function saveAndSubmit(id) {
|
2019-09-13 11:08:45 +02:00
|
|
|
$("#realEstateType").val(id);
|
2019-05-22 15:58:42 +02:00
|
|
|
$("#form-real-estate-type").submit();
|
|
|
|
|
}
|
2019-05-15 15:27:10 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|