mirror of
				https://github.com/StefBuwalda/cal_counter.git
				synced 2025-10-30 19:29:59 +00:00 
			
		
		
		
	Migrated add_meal_v2 routes and templates to add_meal, renaming endpoints and updating references throughout the app. Removed legacy daily_log2 route and template, consolidating to daily_log. Moved macro_arr_to_json to utils.py for reuse. Updated navigation and redirect logic to use new routes. Improved item finding and barcode scanning UI.
		
			
				
	
	
		
			22 lines
		
	
	
		
			443 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			443 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {% extends "base.html" %}
 | |
| 
 | |
| {% block content %}
 | |
| <p>{{ item.name }}</p>
 | |
| 
 | |
| <form method="POST">
 | |
|     {{ form.hidden_tag() }}
 | |
| 
 | |
|     <div class="mb-3">
 | |
|         <div class="form-control-plaintext">
 | |
|             {{item_id}}
 | |
|         </div>
 | |
|     </div>
 | |
| 
 | |
|     <div class="mb-3">
 | |
|         {{ form.amount.label(class="form-label") }}
 | |
|         {{ form.amount(class="form-control") }}
 | |
|     </div>
 | |
| 
 | |
|     {{ form.submit(class="btn btn-primary") }}
 | |
| </form>
 | |
| {% endblock%} |