mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 15:20:32 -04:00
Move @autocomplete attributes to <form> parent
This commit is contained in:
parent
a91b899a69
commit
135e4ac70c
4 changed files with 6 additions and 15 deletions
|
@ -30,7 +30,6 @@ $now = new DateTimeImmutable('now', new DateTimeZone('America/Juneau')); // Late
|
|||
name="artist-name"
|
||||
list="artist-names"
|
||||
required="required"
|
||||
autocomplete="off"
|
||||
value="<?= Formatter::EscapeHtml($artwork->Artist->Name) ?>"
|
||||
/>
|
||||
</label>
|
||||
|
@ -43,7 +42,6 @@ $now = new DateTimeImmutable('now', new DateTimeZone('America/Juneau')); // Late
|
|||
name="artist-year-of-death"
|
||||
inputmode="numeric"
|
||||
pattern="[0-9]{1,4}"
|
||||
autocomplete="off"
|
||||
value="<?= Formatter::EscapeHtml($artwork->Artist->DeathYear) ?>"
|
||||
/>
|
||||
</label>
|
||||
|
@ -52,7 +50,7 @@ $now = new DateTimeImmutable('now', new DateTimeZone('America/Juneau')); // Late
|
|||
<legend>Artwork details</legend>
|
||||
<label class="picture">
|
||||
Name
|
||||
<input type="text" name="artwork-name" required="required" autocomplete="off"
|
||||
<input type="text" name="artwork-name" required="required"
|
||||
value="<?= Formatter::EscapeHtml($artwork->Name) ?>"/>
|
||||
</label>
|
||||
<fieldset>
|
||||
|
@ -63,7 +61,6 @@ $now = new DateTimeImmutable('now', new DateTimeZone('America/Juneau')); // Late
|
|||
name="artwork-year"
|
||||
inputmode="numeric"
|
||||
pattern="[0-9]{1,4}"
|
||||
autocomplete="off"
|
||||
value="<?= Formatter::EscapeHtml($artwork->CompletedYear) ?>"
|
||||
/>
|
||||
</label>
|
||||
|
@ -82,7 +79,6 @@ $now = new DateTimeImmutable('now', new DateTimeZone('America/Juneau')); // Late
|
|||
type="text"
|
||||
name="artwork-tags"
|
||||
required="required"
|
||||
autocomplete="off"
|
||||
value="<?= Formatter::EscapeHtml($artwork->ImplodeTags()) ?>"
|
||||
/>
|
||||
</label>
|
||||
|
@ -107,7 +103,6 @@ $now = new DateTimeImmutable('now', new DateTimeZone('America/Juneau')); // Late
|
|||
<input
|
||||
type="url"
|
||||
name="artwork-museum-url"
|
||||
autocomplete="off"
|
||||
value="<?= Formatter::EscapeHtml($artwork->MuseumUrl) ?>"
|
||||
/>
|
||||
</label>
|
||||
|
@ -130,7 +125,6 @@ $now = new DateTimeImmutable('now', new DateTimeZone('America/Juneau')); // Late
|
|||
name="artwork-publication-year"
|
||||
inputmode="numeric"
|
||||
pattern="[0-9]{4}"
|
||||
autocomplete="off"
|
||||
value="<?= Formatter::EscapeHtml($artwork->PublicationYear) ?>"
|
||||
/>
|
||||
</label>
|
||||
|
@ -140,7 +134,6 @@ $now = new DateTimeImmutable('now', new DateTimeZone('America/Juneau')); // Late
|
|||
<input
|
||||
type="url"
|
||||
name="artwork-publication-year-page-url"
|
||||
autocomplete="off"
|
||||
value="<?= Formatter::EscapeHtml($artwork->PublicationYearPageUrl) ?>"
|
||||
/>
|
||||
</label>
|
||||
|
@ -150,7 +143,6 @@ $now = new DateTimeImmutable('now', new DateTimeZone('America/Juneau')); // Late
|
|||
<input
|
||||
type="url"
|
||||
name="artwork-copyright-page-url"
|
||||
autocomplete="off"
|
||||
value="<?= Formatter::EscapeHtml($artwork->CopyrightPageUrl) ?>"
|
||||
/>
|
||||
</label>
|
||||
|
@ -160,7 +152,6 @@ $now = new DateTimeImmutable('now', new DateTimeZone('America/Juneau')); // Late
|
|||
<input
|
||||
type="url"
|
||||
name="artwork-artwork-page-url"
|
||||
autocomplete="off"
|
||||
value="<?= Formatter::EscapeHtml($artwork->ArtworkPageUrl) ?>"
|
||||
/>
|
||||
</label>
|
||||
|
@ -201,7 +192,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" placeholder="https://standardebooks.org/ebooks/" pattern="^https:\/\/standardebooks\.org\/ebooks/[^\/]+(\/[^\/]+)+$" value="<?= Formatter::EscapeHtml($artwork->EbookUrl) ?>"/>
|
||||
<input type="url" name="artwork-ebook-url" placeholder="https://standardebooks.org/ebooks/" pattern="^https:\/\/standardebooks\.org\/ebooks/[^\/]+(\/[^\/]+)+$" value="<?= Formatter::EscapeHtml($artwork->EbookUrl) ?>"/>
|
||||
</label>
|
||||
<? } ?>
|
||||
</fieldset>
|
||||
|
|
|
@ -57,7 +57,7 @@ catch(Exceptions\InvalidPermissionsException){
|
|||
<img src="<?= $artwork->ThumbUrl ?>" alt="" property="schema:image"/>
|
||||
</picture>
|
||||
|
||||
<form class="create-update-artwork" method="post" action="<?= $artwork->Url ?>" enctype="multipart/form-data">
|
||||
<form class="create-update-artwork" method="post" action="<?= $artwork->Url ?>" enctype="multipart/form-data" autocomplete="off">
|
||||
<input type="hidden" name="_method" value="PUT" />
|
||||
<?= Template::ArtworkForm(['artwork' => $artwork, 'isEditForm' => true]) ?>
|
||||
</form>
|
||||
|
|
|
@ -156,7 +156,7 @@ catch(Exceptions\InvalidPermissionsException){
|
|||
<? if($artwork->CanStatusBeChangedBy($GLOBALS['User'])){ ?>
|
||||
<p>Review the metadata and PD proof for this artwork submission. Approve to make it available for future producers. Once an artwork is approved, it can no longer be edited.</p>
|
||||
<? } ?>
|
||||
<form method="post" action="<?= $artwork->Url ?>">
|
||||
<form method="post" action="<?= $artwork->Url ?>" autocomplete="off">
|
||||
<input type="hidden" name="_method" value="PATCH" />
|
||||
<? if($artwork->CanStatusBeChangedBy($GLOBALS['User'])){ ?>
|
||||
<label>
|
||||
|
@ -176,7 +176,7 @@ catch(Exceptions\InvalidPermissionsException){
|
|||
<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" name="artwork-ebook-url" value="<?= Formatter::EscapeHtml($artwork->EbookUrl) ?>"/>
|
||||
</label>
|
||||
<? }else{ ?>
|
||||
<input type="hidden" name="artwork-ebook-url" value="<?= Formatter::EscapeHtml($artwork->EbookUrl) ?>" />
|
||||
|
|
|
@ -66,7 +66,7 @@ catch(Exceptions\InvalidPermissionsException){
|
|||
<p class="message success">Artwork submitted!</p>
|
||||
<? } ?>
|
||||
|
||||
<form class="create-update-artwork" method="post" action="/artworks" enctype="multipart/form-data">
|
||||
<form class="create-update-artwork" method="post" action="/artworks" enctype="multipart/form-data" autocomplete="off">
|
||||
<?= Template::ArtworkForm(['artwork' => $artwork]) ?>
|
||||
</form>
|
||||
</section>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue