2023-06-13 08:34:17 +00:00
|
|
|
<!-- Add contributor modal -->
|
|
|
|
<!-- prettier-ignore-->
|
2023-06-16 07:44:15 +00:00
|
|
|
<div id="add-version-modal" tabindex="-1" aria-hidden="true" class="fixed top-0 left-0 right-0 z-[150] hidden w-full p-4 overflow-x-hidden overflow-y-auto md:inset-0 h-[calc(100%-1rem)] max-h-full">
|
2023-06-13 08:34:17 +00:00
|
|
|
<div class="relative w-full max-w-2xl max-h-full">
|
|
|
|
<!-- Modal content -->
|
2023-06-16 07:44:15 +00:00
|
|
|
<form action="{{ url_for('book.create_version', book_id=book.id) }}" method="post" class="relative bg-white rounded-lg shadow dark:bg-gray-700">
|
2023-06-13 08:34:17 +00:00
|
|
|
{{ form_hidden_tag() }}
|
|
|
|
<!-- Modal header -->
|
|
|
|
<div class="p-6 space-y-6">
|
|
|
|
<div>
|
|
|
|
<label for="semver-input" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Name</label>
|
|
|
|
<input type="text" name="semver" id="semver-input" class="version-semver-input bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="1.0.0" required>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Modal footer -->
|
|
|
|
<div class="flex items-center p-6 space-x-2 border-t border-gray-200 rounded-b dark:border-gray-600">
|
2023-06-16 07:44:15 +00:00
|
|
|
<button name="submit" type="submit" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">Save</button>
|
2023-06-13 08:34:17 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|