* changes message colour from blue to red (indicating 'blocking' message) * only renders message on read_only form e.g. on detail view
		
			
				
	
	
		
			28 lines
		
	
	
		
			720 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			720 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% load i18n fontawesome_5 %}
 | 
						|
 | 
						|
{% comment %}
 | 
						|
    Encapsules the rendering and initializing of a geometry view component, e.g. used in the detail views.
 | 
						|
{% endcomment %}
 | 
						|
 | 
						|
{% if geom_form.empty and geom_form.read_only %}
 | 
						|
    <div class="w-100">
 | 
						|
        <div class="alert alert-danger">
 | 
						|
            {% fa5_icon 'search-location' %}
 | 
						|
            {% trans 'No geometry added, yet.' %}
 | 
						|
        </div>
 | 
						|
    </div>
 | 
						|
{% endif %}
 | 
						|
 | 
						|
{% if geom_form.geom.errors %}
 | 
						|
    <div class="alert-danger p-2">
 | 
						|
    {% for error in geom_form.geom.errors %}
 | 
						|
            <strong class="invalid">{{ error }}</strong>
 | 
						|
            <br>
 | 
						|
    {% endfor %}
 | 
						|
    </div>
 | 
						|
{% endif %}
 | 
						|
 | 
						|
<div style="height: 85vh">
 | 
						|
    {% include 'map/client/index.html' %}
 | 
						|
</div>
 |