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

31 lines
626 B
Plaintext
Raw Normal View History

2019-05-15 15:27:10 +02:00
<form method="POST" id="form-real-estate-type">
<div class="row center-align">
<div class="collection">
2019-05-22 15:58:42 +02:00
<% 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>
2019-05-15 15:27:10 +02:00
<% } %>
</div>
<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) {
$("#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>