Files
old-web/app/views/realEstateType.ejs
2019-10-15 21:50:45 +02:00

31 lines
626 B
Plaintext

<form method="POST" id="form-real-estate-type">
<div class="row center-align">
<div class="collection">
<% for(const realEstateType of realEstateTypes) { %>
<a href="#" class="waves-effect collection-item"
style="color: #02adba"
id="<%= realEstateType.id %>"
onclick="saveAndSubmit(this.id)"
>
<%= realEstateType.title %>
</a>
<% } %>
</div>
<input type="hidden" name="realEstateType" id="realEstateType" />
</div>
</form>
<script>
function saveAndSubmit(id) {
$("#realEstateType").val(id);
$("#form-real-estate-type").submit();
}
</script>