Tweak appearance of artwork form and add URL validation for SE URL

This commit is contained in:
Alex Cabal 2024-07-18 12:12:35 -05:00
parent 017474a0a7
commit a91b899a69
4 changed files with 11 additions and 15 deletions

View file

@ -201,7 +201,7 @@ $now = new DateTimeImmutable('now', new DateTimeZone('America/Juneau')); // Late
<label>
<span>In use by</span>
<span>The full S.E. ebook URL. If not in use, leave this blank.</span>
<input type="url" autocomplete="off" name="artwork-ebook-url" value="<?= Formatter::EscapeHtml($artwork->EbookUrl) ?>"/>
<input type="url" autocomplete="off" name="artwork-ebook-url" placeholder="https://standardebooks.org/ebooks/" pattern="^https:\/\/standardebooks\.org\/ebooks/[^\/]+(\/[^\/]+)+$" value="<?= Formatter::EscapeHtml($artwork->EbookUrl) ?>"/>
</label>
<? } ?>
</fieldset>