Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions app/Views/libri/partials/book_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,17 @@
<p class="text-xs text-gray-500 mt-1"><?= __("Lingua originale del libro") ?></p>
</div>
</div>

<!-- Authors with Choices.js -->
<div>
<label for="autori_select" class="form-label"><?= __("Autori") ?></label>
<select id="autori_select" name="autori_select[]" multiple placeholder="<?= __('Cerca autori esistenti o aggiungine di nuovi...') ?>" data-initial-authors="<?php echo $initialAuthorsJson; ?>">
<!-- Options will be populated dynamically -->
</select>
<div id="autori_hidden"></div>
<p class="text-xs text-gray-500 mt-1"><?= __("Puoi selezionare più autori o aggiungerne di nuovi digitando il nome") ?></p>
</div>

<?php
// Contributor roles as entity pickers (issue #237). Same Choices.js +
// /api/search/autori autocomplete as authors, so an illustrator/
Expand Down Expand Up @@ -300,16 +311,6 @@
<p class="text-xs text-gray-500 mt-1"><?= __("Puoi selezionare più editori o aggiungerne di nuovi digitando il nome") ?></p>
</div>

<!-- Authors with Choices.js -->
<div>
<label for="autori_select" class="form-label"><?= __("Autori") ?></label>
<select id="autori_select" name="autori_select[]" multiple placeholder="<?= __('Cerca autori esistenti o aggiungine di nuovi...') ?>" data-initial-authors="<?php echo $initialAuthorsJson; ?>">
<!-- Options will be populated dynamically -->
</select>
<div id="autori_hidden"></div>
<p class="text-xs text-gray-500 mt-1"><?= __("Puoi selezionare più autori o aggiungerne di nuovi digitando il nome") ?></p>
</div>

<!-- Book Status -->
<div>
<label for="stato" class="form-label"><?= __("Disponibilità") ?></label>
Expand Down