Spaces:
Sleeping
Sleeping
Fix UI template and route links
Browse filesFiles changed (6)
63 unmodified lines6465666768697063 unmodified lines"""Decorator to require LE authentication"""def decorated_function(*args, **kwargs):if not session.get('logged_in'):return redirect(url_for('index'))# In production, check for LE clearance herereturn f(*args, **kwargs)decorated_function.__name__ = f.__name__63 unmodified lines6465666768697063 unmodified lines"""Decorator to require LE authentication"""def decorated_function(*args, **kwargs):if not session.get('logged_in'):return redirect(url_for('main.index'))# In production, check for LE clearance herereturn f(*args, **kwargs)decorated_function.__name__ = f.__name__
42 unmodified lines43444546474849505152535442 unmodified lines<div class="flex flex-col lg:flex-row space-y-4 lg:space-y-0 lg:space-x-6 items-center"><div class="flex flex-wrap gap-4 items-center">{% if session.get('logged_in') and session.get('user_type') != 'user_lead' %}<a href="/setup"class="text-white hover:text-blue-200 font-medium transition-colors duration-200">Setup</a>{% endif %}{% if session.get('logged_in') %}<a href="/logout"class="text-white hover:text-blue-200 font-medium transition-colors duration-200">Logout</a>{% endif %}</div>42 unmodified lines43444546474849505152535442 unmodified lines<div class="flex flex-col lg:flex-row space-y-4 lg:space-y-0 lg:space-x-6 items-center"><div class="flex flex-wrap gap-4 items-center">{% if session.get('logged_in') and session.get('user_type') != 'user_lead' %}<a href="{{ url_for('main.setup_page') }}"class="text-white hover:text-blue-200 font-medium transition-colors duration-200">Setup</a>{% endif %}{% if session.get('logged_in') %}<a href="{{ url_for('auth.logout') }}"class="text-white hover:text-blue-200 font-medium transition-colors duration-200">Logout</a>{% endif %}</div>
67 unmodified lines6869707172737475767767 unmodified lines{% if session.get('logged_in') %}{% endif %}{% if session.get('logged_in') and session.get('user_type') != 'user_lead' %}<a href="{{ url_for('setup_page') }}" class="text-white hover:underline mr-4">Setup</a>{% endif %}{% if session.get('logged_in') %}<a href="{{ url_for('logout') }}" class="text-white hover:underline">Logout</a>{% endif %}</div></div>67 unmodified lines6869707172737475767767 unmodified lines{% if session.get('logged_in') %}{% endif %}{% if session.get('logged_in') and session.get('user_type') != 'user_lead' %}<a href="{{ url_for('main.setup_page') }}" class="text-white hover:underline mr-4">Setup</a>{% endif %}{% if session.get('logged_in') %}<a href="{{ url_for('auth.logout') }}" class="text-white hover:underline">Logout</a>{% endif %}</div></div>
21 unmodified lines2223242526272821 unmodified lines<label>Email:<br><input type="email" name="email" value="{{ email|e }}" required></label><button type="submit">Request Access</button></form><p style="font-size:0.9rem;">Already have an account? <a href="{{ url_for('login') }}">Login here</a>.</p></div></body></html>21 unmodified lines2223242526272821 unmodified lines<label>Email:<br><input type="email" name="email" value="{{ email|e }}" required></label><button type="submit">Request Access</button></form><p style="font-size:0.9rem;">Already have an account? <a href="{{ url_for('auth.login') }}">Login here</a>.</p></div></body></html>
15 unmodified lines1617181920212215 unmodified lines<h2>Thank You!</h2><p>Your request has been received.</p><p>We will review your access and notify you upon approval.</p><p><a href="{{ url_for('demo') }}"><button>Enter MorphGuard Demo</button></a></p></div></body></html>15 unmodified lines1617181920212215 unmodified lines<h2>Thank You!</h2><p>Your request has been received.</p><p>We will review your access and notify you upon approval.</p><p><a href="{{ url_for('main.demo') }}"><button>Enter MorphGuard Demo</button></a></p></div></body></html>
23 unmodified lines242526272829303123 unmodified lines<p class="text-sm opacity-90">Advanced Configuration Dashboard</p></div><div class="flex space-x-4"><a href="/demo" class="text-white hover:text-blue-200 text-sm">Demo</a><a href="/logout" class="text-white hover:text-blue-200 text-sm">Logout</a></div></div></div>23 unmodified lines242526272829303123 unmodified lines<p class="text-sm opacity-90">Advanced Configuration Dashboard</p></div><div class="flex space-x-4"><a href="{{ url_for('main.demo') }}" class="text-white hover:text-blue-200 text-sm">Demo</a><a href="{{ url_for('auth.logout') }}" class="text-white hover:text-blue-200 text-sm">Logout</a></div></div></div>
law_enforcement_portal/le_routes.py+1-1
templates/enhanced-ui.html+2-2
templates/index-v2.html+2-2
templates/lead.html+1-1
templates/lead_submitted.html+1-1
templates/setup-improved.html+2-2