mirror of
https://github.com/standardebooks/web.git
synced 2025-07-20 05:14:48 -04:00
Tweak wording on delete artist page and add some more breadcrumbs
This commit is contained in:
parent
1136cfb2af
commit
34fd71e55a
11 changed files with 83 additions and 19 deletions
|
@ -36,17 +36,17 @@ catch(Exceptions\InvalidPermissionsException){
|
|||
<main>
|
||||
<section class="narrow">
|
||||
<nav class="breadcrumbs">
|
||||
<a href="<?= $artist->Url ?>"><?= $artist->Name ?></a> →
|
||||
<a href="/artworks">Artworks</a> → <a href="<?= $artist->Url ?>"><?= $artist->Name ?></a> →
|
||||
</nav>
|
||||
<h1>Delete</h1>
|
||||
|
||||
<?= Template::Error(exception: $exception) ?>
|
||||
|
||||
<form method="<?= Enums\HttpMethod::Post->value ?>" action="/artists/<?= $artist->UrlName ?>">
|
||||
<p>Are you sure you want to permanently delete <?= Formatter::EscapeHtml($artist->Name) ?>?</p>
|
||||
<form method="<?= Enums\HttpMethod::Post->value ?>" action="<?= $artist->Url ?>">
|
||||
<input type="hidden" name="_method" value="<?= Enums\HttpMethod::Delete->value ?>" />
|
||||
<p>Are you sure you want to permanently delete <?= Formatter::EscapeHtml($artist->Name) ?>?</p>
|
||||
<label class="icon user">
|
||||
<span>Canonical Artist</span>
|
||||
<span>Canonical artist</span>
|
||||
<span>Reassign artwork by <?= Formatter::EscapeHtml($artist->Name) ?> to this artist.</span>
|
||||
<datalist id="artist-names-except-this-artist">
|
||||
<? foreach(Artist::GetAll() as $a){ ?>
|
||||
|
@ -67,14 +67,15 @@ catch(Exceptions\InvalidPermissionsException){
|
|||
</label>
|
||||
|
||||
<label>
|
||||
<input type="hidden" name="add-alternate-name" value="false" />
|
||||
<input
|
||||
type="checkbox"
|
||||
name="add-alternate-name" />
|
||||
<span>Add <?= Formatter::EscapeHtml($artist->Name) ?> as an alternate name (A.K.A.) to the canonical artist</span>
|
||||
<span>Add “<?= Formatter::EscapeHtml($artist->Name) ?>” as an alternate name of the canonical artist</span>
|
||||
</label>
|
||||
|
||||
<div class="footer">
|
||||
<button class="delete">Delete and Reassign</button>
|
||||
<button class="delete">Delete artist</button>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
|
|
@ -41,10 +41,17 @@ catch(Exceptions\ArtistNotFoundException){
|
|||
?><?= Template::Header(title: 'Artwork by ' . $artist->Name, css: ['/css/artwork.css']) ?>
|
||||
<main class="artworks">
|
||||
<section class="narrow">
|
||||
<nav class="breadcrumbs">
|
||||
<a href="/artworks">Artworks</a> →
|
||||
</nav>
|
||||
<h1>Artwork by <?= Formatter::EscapeHtml($artist->Name) ?></h1>
|
||||
|
||||
<? if(sizeof($artist->AlternateNames) > 0){ ?>
|
||||
<p>
|
||||
<i>Also known as <?= Formatter::EscapeHtml($artist->AlternateNamesString) ?>.</i>
|
||||
</p>
|
||||
<? } ?>
|
||||
<? if($isArtistDeleted && $deletedArtist !== null){ ?>
|
||||
<p class="message success">Artist deleted: <?= $deletedArtist->Name ?><? if($isAlternateNameAdded){ ?>. An alternate name (A.K.A.) was added.<? } ?></p>
|
||||
<p class="message success"><?= $deletedArtist->Name ?> has been deleted<? if($isAlternateNameAdded){ ?> and their name has been added as an alternate name of <?= Formatter::EscapeHtml($artist->Name) ?><? } ?>.</p>
|
||||
<? } ?>
|
||||
|
||||
<?= Template::ImageCopyrightNotice() ?>
|
||||
|
|
|
@ -67,6 +67,10 @@ catch(Exceptions\InvalidPermissionsException){
|
|||
?><?= Template::Header(title: $artwork->Name, css: ['/css/artwork.css']) ?>
|
||||
<main class="artworks">
|
||||
<section class="narrow">
|
||||
<nav class="breadcrumbs">
|
||||
<a href="/artworks">Artworks</a> →
|
||||
<a href="<?= $artwork->Artist->Url ?>"><?= Formatter::EscapeHtml($artwork->Artist->Name) ?></a> →
|
||||
</nav>
|
||||
<h1><?= Formatter::EscapeHtml($artwork->Name) ?></h1>
|
||||
|
||||
<?= Template::Error(exception: $exception) ?>
|
||||
|
|
|
@ -49,10 +49,16 @@ if($exception){
|
|||
<p>What kind of email would you like to receive?</p>
|
||||
<ul>
|
||||
<li>
|
||||
<label><input type="checkbox" value="true" name="is-subscribed-to-newsletter"<? if($subscription->IsSubscribedToNewsletter){ ?> checked="checked"<? } ?> />The occasional Standard Ebooks newsletter</label>
|
||||
<label>
|
||||
<input type="hidden" name="is-subscribed-to-newsletter" value="false" />
|
||||
<input type="checkbox" value="true" name="is-subscribed-to-newsletter"<? if($subscription->IsSubscribedToNewsletter){ ?> checked="checked"<? } ?> />The occasional Standard Ebooks newsletter
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label><input type="checkbox" value="true" name="is-subscribed-to-summary"<? if($subscription->IsSubscribedToSummary){ ?> checked="checked"<? } ?> />A monthly summary of new ebook releases</label>
|
||||
<label>
|
||||
<input type="hidden" name="is-subscribed-to-summary" value="false" />
|
||||
<input type="checkbox" value="true" name="is-subscribed-to-summary"<? if($subscription->IsSubscribedToSummary){ ?> checked="checked"<? } ?> />A monthly summary of new ebook releases
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue