Skip to content

Commit

Permalink
User help!
Browse files Browse the repository at this point in the history
  • Loading branch information
epugh committed Oct 28, 2024
1 parent a7880de commit 5ab761d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/views/books/import/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
<h1 class="h2">Import Book</h1>
</div>

<div class="bg-body-tertiary p-2 m-2 rounded">

Importing a Quepid Book is useful when you are migrating between Quepid installs or if you want to create your Book outside of Quepid.

Your best option for understanding the format is to just export a book. When you import it, it will create a new Book and then load the data as a background job. Before the Book is created, Quepid will validate your Book data structure.

</div>
<% if @book.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@book.errors.count, "error") %> prohibited this book from being saved:</h2>
Expand All @@ -20,7 +27,10 @@
<%= form_with model: @book, url: books_import_index_path do |form| %>
<div class="mb-3">
<%= form.file_field :import_file %>
Select JSON file to import:
<p/>
<%= form.file_field :import_file %>
<div class="form-text">You can upload either a .json or a zipped JSON file in the format of <code>.json.zip</code>.</div>
</div>

<div class="mb-3">
Expand Down

0 comments on commit 5ab761d

Please sign in to comment.