mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 18:42:00 -04:00
Remove @required attributes from hidden forms
This commit is contained in:
parent
dbda2ad583
commit
59a2d30d23
4 changed files with 4 additions and 6 deletions
|
@ -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>
|
||||
|
|
|
@ -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 ?? '') ?>"
|
||||
/>
|
||||
|
|
|
@ -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) ?>" />
|
||||
|
|
|
@ -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 don’t 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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue