2019-05-15 15:27:10 +02:00
|
|
|
<form method="POST" id="form-real-estate-type">
|
|
|
|
|
<div class="row center-align">
|
2019-10-15 18:34:34 +02:00
|
|
|
<div class="collection">
|
2019-05-22 15:58:42 +02:00
|
|
|
<% for(const realEstateType of realEstateTypes) { %>
|
2019-10-15 18:34:34 +02:00
|
|
|
|
2019-10-15 18:56:52 +02:00
|
|
|
<a href="#" class="waves-effect collection-item"
|
2019-10-15 21:42:27 +02:00
|
|
|
style="color: #02adba"
|
|
|
|
|
id="<%= realEstateType.id %>"
|
|
|
|
|
onclick="saveAndSubmit(this.id)"
|
2019-10-15 18:34:34 +02:00
|
|
|
>
|
|
|
|
|
<%= realEstateType.title %>
|
|
|
|
|
</a>
|
|
|
|
|
|
2019-05-15 15:27:10 +02:00
|
|
|
<% } %>
|
2019-10-15 18:34:34 +02:00
|
|
|
</div>
|
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|