Final changes and update
This commit is contained in:
@@ -13,10 +13,15 @@
|
||||
<a href="/system/status" class="btn btn-outline-secondary me-2">
|
||||
<i class="fas fa-server me-2"></i>System Status
|
||||
</a>
|
||||
<button class="btn btn-outline-info me-2" onclick="optimizeModels()">
|
||||
{% if current_user.is_admin %}
|
||||
<button class="btn btn-outline-info me-2" onclick="optimizeModels()" data-bs-toggle="tooltip" title="Check API limits and select the best AI models for Logic, Writing, and Art.">
|
||||
<i class="fas fa-sync me-2"></i>Find New Models
|
||||
</button>
|
||||
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#newProjectModal">
|
||||
{% endif %}
|
||||
<button class="btn btn-outline-primary me-2" data-bs-toggle="modal" data-bs-target="#importProjectModal" data-bs-toggle="tooltip" title="Upload a bible.json file to restore a project.">
|
||||
<i class="fas fa-file-upload me-2"></i>Import Bible
|
||||
</button>
|
||||
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#newProjectModal" data-bs-toggle="tooltip" title="Start the Wizard to create a new book series from scratch.">
|
||||
<i class="fas fa-plus me-2"></i>New Project
|
||||
</button>
|
||||
</div>
|
||||
@@ -35,7 +40,16 @@
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="col-12 text-center py-5">
|
||||
<h4 class="text-muted">No projects yet. Start writing!</h4>
|
||||
<h4 class="text-muted mb-3">No projects yet. Start writing!</h4>
|
||||
<div class="alert alert-info d-inline-block text-start" style="max-width: 600px;">
|
||||
<h5><i class="fas fa-info-circle me-2"></i>How to use BookApp:</h5>
|
||||
<ol class="mb-0">
|
||||
<li>Click <strong>New Project</strong> to launch the AI Wizard.</li>
|
||||
<li>Describe your idea, and the AI will plan your characters and plot.</li>
|
||||
<li>Review the "Bible" (the plan), then click <strong>Generate</strong>.</li>
|
||||
<li>Read the book, edit it, and export to EPUB/Kindle.</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
@@ -62,6 +76,29 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Import Project Modal -->
|
||||
<div class="modal fade" id="importProjectModal" tabindex="-1">
|
||||
<div class="modal-dialog">
|
||||
<form class="modal-content" action="/project/import" method="POST" enctype="multipart/form-data">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">Import Existing Bible</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p class="text-muted">Upload a <code>bible.json</code> file to create a new project from it.</p>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Bible JSON File</label>
|
||||
<input type="file" name="bible_file" class="form-control" accept=".json" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
|
||||
<button type="submit" class="btn btn-primary">Import Project</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
|
||||
Reference in New Issue
Block a user