chore: apply ruff formatting and fix whitespace issues
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
{% block content %}
|
||||
<div class="min-h-screen bg-gradient-to-br from-blue-50 to-indigo-100 py-12 px-4 sm:px-6 lg:px-8">
|
||||
<div class="max-w-3xl mx-auto">
|
||||
|
||||
|
||||
<!-- Wizard Header -->
|
||||
<div class="text-center mb-8">
|
||||
<h1 class="text-4xl font-bold text-gray-900 mb-2">
|
||||
@@ -44,7 +44,7 @@
|
||||
<div class="w-full bg-gray-200 rounded-full h-3">
|
||||
<div class="bg-indigo-600 h-3 rounded-full transition-all duration-500" style="width: {{ progress_percent }}%"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Step Indicators -->
|
||||
<div class="flex justify-between mt-4">
|
||||
{% for step_num in range(1, max_step + 1) %}
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
<!-- Wizard Card -->
|
||||
<div class="bg-white rounded-lg shadow-xl overflow-hidden">
|
||||
|
||||
|
||||
<!-- Card Header -->
|
||||
<div class="bg-indigo-600 px-6 py-4">
|
||||
<h2 class="text-2xl font-bold text-white">
|
||||
@@ -79,7 +79,7 @@
|
||||
<!-- Card Body -->
|
||||
<form method="post" action="/setup" class="px-6 py-8">
|
||||
<input type="hidden" name="step" value="{{ current_step }}">
|
||||
|
||||
|
||||
{% if request.query_params.get('error') == 'save_failed' %}
|
||||
<div class="mb-6 bg-red-100 border-l-4 border-red-500 text-red-700 p-4" role="alert">
|
||||
<p class="font-bold">⚠️ Error</p>
|
||||
@@ -96,7 +96,7 @@
|
||||
<span class="text-red-600">*</span>
|
||||
{% endif %}
|
||||
</label>
|
||||
|
||||
|
||||
<p class="text-xs text-gray-500 mb-3">
|
||||
{{ setting.description }}
|
||||
</p>
|
||||
@@ -106,8 +106,8 @@
|
||||
<div class="space-y-2">
|
||||
<div class="flex items-center space-x-4">
|
||||
<label class="inline-flex items-center">
|
||||
<input type="radio" name="session_secret_mode" value="auto" checked
|
||||
class="form-radio text-indigo-600"
|
||||
<input type="radio" name="session_secret_mode" value="auto" checked
|
||||
class="form-radio text-indigo-600"
|
||||
onchange="document.getElementById('session_secret').value = 'auto-generate'; document.getElementById('session_secret').disabled = true;">
|
||||
<span class="ml-2 text-sm">Auto-generate (recommended)</span>
|
||||
</label>
|
||||
@@ -118,7 +118,7 @@
|
||||
<span class="ml-2 text-sm">Enter manually</span>
|
||||
</label>
|
||||
</div>
|
||||
<input
|
||||
<input
|
||||
type="{% if setting.sensitive %}password{% else %}text{% endif %}"
|
||||
id="{{ setting.key }}"
|
||||
name="{{ setting.key }}"
|
||||
@@ -130,7 +130,7 @@
|
||||
</div>
|
||||
{% else %}
|
||||
<!-- Regular input -->
|
||||
<input
|
||||
<input
|
||||
type="{% if setting.sensitive %}password{% else %}text{% endif %}"
|
||||
id="{{ setting.key }}"
|
||||
name="{{ setting.key }}"
|
||||
@@ -140,7 +140,7 @@
|
||||
{% if setting.default is none or setting.key in ['admin_password', 'openai_api_key', 'azure_ai_key', 'azure_endpoint'] %}required{% endif %}
|
||||
/>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if setting.key == 'admin_password' %}
|
||||
<p class="mt-2 text-xs text-amber-600">
|
||||
<i class="fas fa-exclamation-triangle"></i>
|
||||
@@ -166,17 +166,17 @@
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="flex space-x-4">
|
||||
{% if current_step > 1 %}
|
||||
<a href="/setup?step={{ current_step - 1 }}"
|
||||
<a href="/setup?step={{ current_step - 1 }}"
|
||||
class="px-6 py-3 border border-gray-300 text-gray-700 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
|
||||
<i class="fas fa-arrow-left mr-2"></i>
|
||||
Previous
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
<button type="submit"
|
||||
|
||||
<button type="submit"
|
||||
class="px-6 py-3 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 shadow-lg">
|
||||
{% if current_step < max_step %}
|
||||
Next Step
|
||||
|
||||
Reference in New Issue
Block a user