32 lines
746 B
Plaintext
32 lines
746 B
Plaintext
<!--suppress HtmlUnknownAnchorTarget -->
|
|
<% include partials/navBar %>
|
|
|
|
<form method="POST" id="form-real-estate-type">
|
|
<div class="row center-align">
|
|
<ul class="collection with-header">
|
|
<% for(const realEstateType of realEstateTypes) { %>
|
|
<li class="collection-item">
|
|
<div id="<%= realEstateType.id %>" onclick="saveAndSubmit(this.id)"><%= realEstateType.title %>
|
|
<a href="#" class="secondary-content">
|
|
<i class="material-icons">send</i>
|
|
</a>
|
|
</div>
|
|
</li>
|
|
<% } %>
|
|
</ul>
|
|
<input type="hidden" name="realEstateType" id="realEstateType" />
|
|
</div>
|
|
</form>
|
|
|
|
<script>
|
|
function saveAndSubmit(id) {
|
|
$("#realEstateType").val(id);
|
|
$("#form-real-estate-type").submit();
|
|
}
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|