Remove @required attributes from hidden forms

This commit is contained in:
Alex Cabal 2024-12-14 19:23:26 -06:00
parent dbda2ad583
commit 59a2d30d23
4 changed files with 4 additions and 6 deletions

View file

@ -190,7 +190,7 @@ $isEditForm = $isEditForm ?? false;
<label>
<span>In use by</span>
<span>The full S.E. ebook URL. If not in use, leave this blank.</span>
<input type="url" 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>

View file

@ -8,7 +8,6 @@ $reviewers = User::GetAllByCanReviewProjects();
<input
type="text"
name="project-producer-name"
required="required"
value="<?= Formatter::EscapeHtml($project->ProducerName ?? '') ?>"
/>
</label>
@ -61,8 +60,7 @@ $reviewers = User::GetAllByCanReviewProjects();
<input
type="url"
name="project-vcs-url"
required="required"
placeholder="https://github.com/"
placeholder="https://github.com/..."
pattern="^https:\/\/github\.com\/[^\/]+/[^\/]+/?$"
value="<?= Formatter::EscapeHtml($project->VcsUrl ?? '') ?>"
/>

View file

@ -200,7 +200,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" 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>
<? }else{ ?>
<input type="hidden" name="artwork-ebook-url" value="<?= Formatter::EscapeHtml($artwork->EbookUrl) ?>" />

View file

@ -76,7 +76,7 @@ catch(Exceptions\EbookNotFoundException){
<? } ?>
</aside>
<section class="placeholder-details" id="details">
<section class="placeholder-details" id="placeholder-details">
<? if($ebook->EbookPlaceholder->IsPublicDomain){ ?>
<? if($ebook->EbookPlaceholder->IsInProgress){ ?>
<p>We dont have this ebook in our catalog yet, but someone is working on it now! We hope to have it available for you to read very soon.</p>