Add button title attribute

This commit is contained in:
Jay Trees 2022-03-23 13:28:09 +01:00
parent d97c80434e
commit 3979eef66d
11 changed files with 142 additions and 39 deletions

View file

@ -157,7 +157,9 @@ class Wish
<div class="extra content buttons">
<?php if (!$userIsCurrent) { ?>
<a class="ui small primary labeled icon button fulfill">
<a class="ui small primary labeled icon button fulfill"
title="<?= __('Fulfill wish') ?>"
>
<i class="shopping cart icon"></i>
<?= __('Fulfill wish') ?>
</a>
@ -166,6 +168,7 @@ class Wish
<?php if ($this->url) { ?>
<a class="ui small labeled icon button<?= $userIsCurrent ? ' primary' : '' ?>"
href="<?= $this->url ?>" target="_blank"
title="<?= __('Visit') ?>"
>
<i class="external icon"></i>
<?= __('Visit') ?>
@ -173,7 +176,9 @@ class Wish
<?php } ?>
<?php if ($userIsCurrent) { ?>
<div class="ui small labeled icon top left pointing dropdown button options">
<div class="ui small labeled icon top left pointing dropdown button options"
title="<?= __('Options') ?>"
>
<i class="cog icon"></i>
<span class="text"><?= __('Options') ?></span>
<div class="menu">

View file

@ -25,17 +25,37 @@ $page->navigation();
<div class="ui four column doubling stackable centered grid">
<?php if ($user->isLoggedIn()) { ?>
<div class="column">
<a class="ui fluid primary button" href="/?page=wishlists"><?= __('Create a wishlist') ?></a>
<a class="ui fluid primary button"
href="/?page=wishlists"
title="<?= __('Create a wishlist') ?>"
>
<?= __('Create a wishlist') ?>
</a>
</div>
<div class="column">
<a class="ui fluid button" href="/?page=wishlists"><?= __('View your wishlists') ?></a>
<a class="ui fluid button"
href="/?page=wishlists"
title="<?= __('View your wishlists') ?>"
>
<?= __('View your wishlists') ?>
</a>
</div>
<?php } else { ?>
<div class="column">
<a class="ui fluid primary button" href="/?page=register"><?= __('Register now') ?></a>
<a class="ui fluid primary button"
href="/?page=register"
title="<?= __('Register now') ?>"
>
<?= __('Register now') ?>
</a>
</div>
<div class="column">
<a class="ui fluid button" href="/?page=login"><?= __('Login') ?></a>
<a class="ui fluid button"
href="/?page=login"
title="<?= __('Login') ?>"
>
<?= __('Login') ?>
</a>
</div>
<?php } ?>
</div>

View file

@ -56,7 +56,11 @@ switch ($step) {
<input type="text" name="DATABASE_PASSWORD" />
</div>
<input class="ui primary button" type="submit" value="<?= __('Continue') ?>" />
<input class="ui primary button"
type="submit"
value="<?= __('Continue') ?>"
title="<?= __('Continue') ?>"
/>
</form>
</div>
</div>
@ -102,7 +106,11 @@ switch ($step) {
<input type="hidden" name="install" value="true" />
<input type="hidden" name="step" value="<?= $step + 1; ?>" />
<input class="ui primary button" type="submit" value="<?= __('Continue') ?>" />
<input class="ui primary button"
type="submit"
value="<?= __('Continue') ?>"
title="<?= __('Continue') ?>"
/>
</form>
</div>
</div>
@ -200,7 +208,14 @@ switch ($step) {
<div class="ui container">
<div class="ui segment">
<h1 class="ui header"><?= __('Success') ?></h1>
<p><a class="ui primary button" href="/?page=register"><?= __('Register') ?></a></p>
<p>
<a class="ui primary button"
href="/?page=register"
title="<?= __('Register') ?>"
>
<?= __('Register') ?>
</a>
</p>
</div>
</div>
</main>

View file

@ -49,7 +49,11 @@ $page->navigation();
<input type="email" name="email" placeholder="john.doe@domain.tld" />
</div>
<input class="ui primary button" type="submit" value="<?= __('Login') ?>" />
<input class="ui primary button"
type="submit"
value="<?= __('Login') ?>"
title="<?= __('Login') ?>"
/>
</form>
</div>
</div>

View file

@ -125,8 +125,18 @@ $page->navigation();
</div>
</div>
<input class="ui primary button" type="submit" name="login" value="<?= __('Login') ?>" />
<a class="ui tertiary button" href="/?page=register"><?= __('Register') ?></a>
<input class="ui primary button"
type="submit"
name="login"
value="<?= __('Login') ?>"
title="<?= __('Login') ?>"
/>
<a class="ui tertiary button"
href="/?page=register"
title="<?= __('Register') ?>"
>
<?= __('Register') ?>
</a>
</form>
</div>
@ -150,6 +160,7 @@ $page->navigation();
type="submit"
name="reset"
value="<?= __('Send email') ?>"
title="<?= __('Send email') ?>"
/>
</div>

View file

@ -99,7 +99,11 @@ $page->navigation();
<div class="ui error message"></div>
<input class="ui primary button" type="submit" value="<?= __('Save') ?>" />
<input class="ui primary button"
type="submit"
value="<?= __('Save') ?>"
title="<?= __('Save') ?>"
/>
</form>
</div>
</div>

View file

@ -219,8 +219,17 @@ $page->navigation();
<div class="column">
<div class="ui error message"></div>
<input class="ui primary button" type="submit" value="<?= $buttonSubmit ?>" />
<a class="ui tertiary button" href="/?page=login"><?= __('Login') ?></a>
<input class="ui primary button"
type="submit"
value="<?= $buttonSubmit ?>"
title="<?= $buttonSubmit ?>"
/>
<a class="ui tertiary button"
href="/?page=login"
title="<?= __('Login') ?>"
>
<?= __('Login') ?>
</a>
</div>
</div>

View file

@ -47,7 +47,12 @@ if (isset($_POST['mjml_api'], $_POST['api_key'], $_POST['api_secret'])) {
/>
</div>
<input class="ui primary button" type="submit" name="mjml_api" value="<?= __('Save') ?>" />
<input class="ui primary button"
type="submit"
name="mjml_api"
value="<?= __('Save') ?>"
title="<?= __('Save') ?>"
/>
</form>
</div>
</div>

View file

@ -112,7 +112,10 @@ if ('POST' === $_SERVER['REQUEST_METHOD']) {
</div>
</div>
<form class="ui form" method="post">
<button class="ui orange button" type="submit">
<button class="ui orange button"
type="submit"
title="<?= sprintf(__('Update to %s'), 'v' . $version) ?>"
>
<i class="upload icon"></i>
<?= sprintf(__('Update to %s'), 'v' . $version) ?>
</button>

View file

@ -80,13 +80,18 @@ $referer = '/?page=wishlists&wishlist=' . $wish->wishlist;
<div class="row">
<div class="sixteen wide column">
<a class="ui small labeled icon button" href="<?= $wish->url ?>" target="_blank">
<a class="ui small labeled icon button"
href="<?= $wish->url ?>"
target="_blank"
title="<?= __('Visit') ?>"
>
<i class="external icon"></i>
<?= __('Visit') ?>
</a>
<button class="ui small labeled icon button auto-fill disabled"
type="button"
title="<?= __('Auto-fill') ?>"
>
<i class="redo icon"></i>
<?= __('Auto-fill') ?>
@ -164,9 +169,22 @@ $referer = '/?page=wishlists&wishlist=' . $wish->wishlist;
<div class="stackable row">
<div class="sixteen wide column">
<input class="ui small primary button" type="submit" value="<?= __('Save') ?>" />
<input class="ui small button" type="reset" value="<?= __('Reset') ?>" />
<a class="ui small secondary button" href="<?= $referer ?>"><?= __('Back') ?></a>
<input class="ui small primary button"
type="submit"
value="<?= __('Save') ?>"
title="<?= __('Save') ?>"
/>
<input class="ui small button"
type="reset"
value="<?= __('Reset') ?>"
title="<?= __('Reset') ?>"
/>
<a class="ui small secondary button"
href="<?= $referer ?>"
title="<?= __('Back') ?>"
>
<?= __('Back') ?>
</a>
</div>
</div>
@ -194,10 +212,10 @@ $referer = '/?page=wishlists&wishlist=' . $wish->wishlist;
</div>
</div>
<div class="actions">
<div class="ui primary approve button">
<div class="ui primary approve button" title="<?= __('Save') ?>">
<?= __('Save') ?>
</div>
<div class="ui deny button">
<div class="ui deny button" title="<?= __('Discard') ?>">
<?= __('Discard') ?>
</div>
</div>
@ -213,10 +231,10 @@ $referer = '/?page=wishlists&wishlist=' . $wish->wishlist;
<p><?= __('Would you like to continue?') ?></p>
</div>
<div class="actions">
<div class="ui primary approve button">
<div class="ui primary approve button" title="<?= __('Yes, overwrite') ?>">
<?= __('Yes, overwrite') ?>
</div>
<div class="ui deny button">
<div class="ui deny button" title="<?= __('No') ?>">
<?= __('No') ?>
</div>
</div>
@ -246,10 +264,10 @@ $referer = '/?page=wishlists&wishlist=' . $wish->wishlist;
</div>
</div>
<div class="actions">
<div class="ui primary approve button">
<div class="ui primary approve button" title="<?= __('Yes, update') ?>">
<?= __('Yes, update') ?>
</div>
<div class="ui deny button">
<div class="ui deny button" title="<?= __('No, leave it') ?>">
<?= __('No, leave it') ?>
</div>
</div>

View file

@ -34,27 +34,34 @@ $page->navigation();
</div>
<div class="flex buttons">
<a class="ui small labeled icon primary button wishlist-wish-add disabled">
<a class="ui small labeled icon primary button wishlist-wish-add disabled"
title="<?= __('Add a wish') ?>"
>
<i class="add icon"></i>
<?= __('Add a wish') ?>
</a>
<a class="ui small labeled icon button wishlist-share disabled" target="_blank">
<a class="ui small labeled icon button wishlist-share disabled"
target="_blank"
title="<?= __('Share') ?>"
>
<i class="share icon"></i>
<?= __('Share') ?>
</a>
<div class="ui small labeled icon top left pointing dropdown button options">
<div class="ui small labeled icon top left pointing dropdown button options"
title="<?= __('Options') ?>"
>
<i class="cog icon"></i>
<span class="text"><?= __('Options') ?></span>
<div class="menu">
<div class="item wishlist-rename disabled">
<div class="item wishlist-rename disabled" title="<?= __('Rename') ?>">
<i class="pen icon"></i>
<?= __('Rename') ?>
</div>
<div class="item wishlist-delete disabled">
<div class="item wishlist-delete disabled" title="<?= __('Delete') ?>">
<i class="trash icon"></i>
<?= __('Delete') ?>
</div>
@ -70,7 +77,9 @@ $page->navigation();
<p><?= __('General options.') ?></p>
<div class="flex buttons">
<a class="ui small labeled icon button wishlist-create">
<a class="ui small labeled icon button wishlist-create"
title="<?= __('Create a wishlist') ?>"
>
<i class="add icon"></i>
<?= __('Create a wishlist') ?>
</a>
@ -119,10 +128,10 @@ $page->navigation();
</div>
</div>
<div class="actions">
<div class="ui approve primary button create">
<div class="ui approve primary button create" title="<?= __('Create') ?>">
<?= __('Create') ?>
</div>
<div class="ui deny button cancel">
<div class="ui deny button cancel" title="<?= __('Cancel') ?>">
<?= __('Cancel') ?>
</div>
</div>
@ -146,10 +155,10 @@ $page->navigation();
</form>
</div>
<div class="actions">
<div class="ui approve primary button">
<div class="ui approve primary button" title="<?= __('Rename') ?>">
<?= __('Rename') ?>
</div>
<div class="ui deny button">
<div class="ui deny button" title="<?= __('Cancel') ?>">
<?= __('Cancel') ?>
</div>
</div>
@ -188,10 +197,10 @@ $page->navigation();
</div>
</div>
<div class="actions">
<div class="ui primary approve button">
<div class="ui primary approve button" title="<?= __('Add') ?>">
<?= __('Add') ?>
</div>
<div class="ui deny button">
<div class="ui deny button" title="<?= __('Cancel') ?>">
<?= __('Cancel') ?>
</div>
</div>