{# templates/settings/wizard/import_form.html #} {{ _("Import Wizard Configuration") }} {{ _("Import wizard steps or bundles from a JSON file to quickly set up or restore your wizard configuration.") }} {{ form.hidden_tag() }} {{ _("Select JSON File") }} {{ form.file.label(class="block mb-2 text-sm font-medium text-gray-900 dark:text-white") }} {{ _("Click to upload") }} {{ _("or drag and drop") }} {{ _("Steps or Bundle JSON files only (MAX. 10MB)") }} {{ form.file(class="hidden", accept=".json") }} {% if form.file.errors %} {% for error in form.file.errors %} {{ error }} {% endfor %} {% endif %} {{ _("Import Options") }} {{ form.replace_existing(class="w-4 h-4 text-primary bg-gray-100 border-gray-300 rounded focus:ring-primary dark:focus:ring-primary dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600") }} {{ form.replace_existing.label(class="font-medium text-gray-900 dark:text-white") }} {{ _("When checked, all existing wizard steps and bundles will be removed and replaced with the imported configuration. When unchecked, imported items will be added alongside existing ones.") }} {% if form.replace_existing.errors %} {% for error in form.replace_existing.errors %}{{ error }}{% endfor %} {% endif %} {{ _("Important: Backup Recommended") }} {{ _("This action will modify your wizard configuration. Consider the following:") }} {{ _("Export your current steps and bundles first as a backup") }} {{ _("Imported steps will use the file's step ordering and server types") }} {{ _("Imported bundles will preserve their step associations and ordering") }} {{ _("If replacing existing configuration, all current steps and bundles will be permanently removed") }} {{ _("Invalid or malformed JSON files will be rejected") }} {{ _("Expected JSON Format") }} {{ _("The JSON file can contain steps or bundles:") }} {{ _("For steps export:") }} [ { "server_type": "plex", "title": "Step Title", "markdown": "Step content in markdown", "order": 1 }, ... ] {{ _("For bundle export:") }} { "name": "Bundle Name", "description": "Bundle description", "steps": [ { "title": "Step Title", "markdown": "Step content in markdown", "order": 1 }, ... ] } {{ _("Back to Steps") }} {{ _("Import Configuration") }}
{{ _("Import wizard steps or bundles from a JSON file to quickly set up or restore your wizard configuration.") }}
{{ _("Click to upload") }} {{ _("or drag and drop") }}
{{ _("Steps or Bundle JSON files only (MAX. 10MB)") }}
{{ error }}
{{ _("When checked, all existing wizard steps and bundles will be removed and replaced with the imported configuration. When unchecked, imported items will be added alongside existing ones.") }}
{{ _("This action will modify your wizard configuration. Consider the following:") }}
{{ _("The JSON file can contain steps or bundles:") }}
{{ _("For steps export:") }}
[ { "server_type": "plex", "title": "Step Title", "markdown": "Step content in markdown", "order": 1 }, ... ]
{{ _("For bundle export:") }}
{ "name": "Bundle Name", "description": "Bundle description", "steps": [ { "title": "Step Title", "markdown": "Step content in markdown", "order": 1 }, ... ] }