12 lines
		
	
	
		
			483 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			483 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <form @submit.prevent method="POST">
 | |
| 	<div class="form-group">
 | |
| 	<select class="form-control" x-model.number="recipe_id" name="recipe_id">
 | |
| 		{% for recipe in data["recipes"] %}
 | |
| 			<option value="{{recipe.id}}">{{recipe.name}}</option>
 | |
| 		{% endfor %}
 | |
| 	</select>
 | |
| 	<input @input.debounce.300="getResults()" x-model.number="ammount" type="number" step="1" name="ammount" placeholder="Koliko obroka">
 | |
| 	</div>
 | |
| 	<!--<button @click="getResults()" type="submit">Izracunaj</button> -->
 | |
| </form>
 |