25 lines
1.0 KiB
Python
25 lines
1.0 KiB
Python
import sys
|
|
import os
|
|
|
|
file_path = 'core/templates/core/view_signs.html'
|
|
with open(file_path, 'r') as f:
|
|
content = f.read()
|
|
|
|
old_code = """ <div class="modal-body p-0">
|
|
|
|
<div id="map" style="width: 100%; height: 100%; min-height: 500px; position: relative;">"""
|
|
|
|
new_code = """ <div class="modal-body p-0">
|
|
{% if map_limit_reached %}
|
|
<div class="alert alert-warning border-0 rounded-0 mb-0 d-flex align-items-center py-2 px-4 shadow-sm" style="z-index: 10; position: relative;">
|
|
<i class="bi bi-exclamation-triangle-fill me-2"></i>
|
|
<span class="small">Showing first 3,000 households. Please use filters to narrow down the results for a complete view.</span>
|
|
</div>
|
|
{% endif %}
|
|
<div id="map" style="width: 100%; height: 100%; min-height: 500px; position: relative;">"""
|
|
|
|
content = content.replace(old_code, new_code)
|
|
|
|
with open(file_path, 'w') as f:
|
|
f.write(content)
|