Bug 32085: Consistent classes for primary buttons: Labels

This patch makes changes the button markup in label-creation templates
-- including the barcode image generator -- so that all submit buttons
and any buttons that should should be styled as primary buttons have the
Bootstrap class "btn btn-primary."

To test, apply the patch and view label-related pages to confirm
that everything looks correct. In most cases there are no visible
changes.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Owen Leonard 2022-11-02 12:43:17 +00:00 committed by Tomas Cohen Arazi
parent 8a63d78c4b
commit d30c6dcb7f
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
9 changed files with 9 additions and 9 deletions

View File

@ -112,7 +112,7 @@
</li>
</ol>
<fieldset class="action">
<input type="submit" value="Show barcode" />
<input type="submit" class="btn btn-primary" value="Show barcode" />
</fieldset>
</div>
<div class="col-sm-6">

View File

@ -25,7 +25,7 @@
<input type="hidden" id="index" name="index" value="[% index | html %]" />
</p>
<p>
<input type="submit" value="Start search" class="submit" />
<input type="submit" class="btn btn-primary" value="Start search" />
</p>
</div>
</form>

View File

@ -205,7 +205,7 @@
</ol>
</fieldset>
<fieldset class="action">
<input type="submit" value="Save" />
<input type="submit" class="btn btn-primary" value="Save" />
<a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Cancel</a>
<input type="hidden" name="op" value="save" />
<input type="hidden" name="layout_id" value="[% layout_id | html %]" />

View File

@ -128,7 +128,7 @@
</ol>
</fieldset>
<fieldset class="action">
<input type="submit" value="Save" />
<input type="submit" class="btn btn-primary" value="Save" />
<a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile" class="cancel">Cancel</a>
<input type="hidden" name="op" value="save" />
<input type="hidden" name="profile_id" value="[% profile_id | html %]" />

View File

@ -51,7 +51,7 @@
</ol>
</fieldset>
<fieldset class="action">
<button type="button" class="btn btn-default" id="print">Print range</button>
<button type="button" class="btn btn-primary" id="print">Print range</button>
</fieldset>
</form>
</main>

View File

@ -172,7 +172,7 @@
</div>
</div>
<fieldset class="action">
<input type="submit" class="submit" value="Save" /><a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">Cancel</a>
<input type="submit" class="btn btn-primary" value="Save" /><a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">Cancel</a>
<input type="hidden" name="op" value="save" />
[% IF ( template_id ) %]
<input type="hidden" name="template_id" value="[% template_id | html %]" />

View File

@ -105,7 +105,7 @@
</ol>
</fieldset>
<fieldset class="action">
<input type="submit" value="Export" />
<input type="submit" class="btn btn-primary" value="Export" />
<a href="#" class="cancel gb-close">Cancel</a>
</fieldset>
</form>

View File

@ -101,7 +101,7 @@ to add to Batch [% batch_id | html %]
</ol>
</fieldset>
<fieldset class="action"><input type="submit" value="Search" class="submit" /> <a class="cancel close" href="#">Cancel</a></fieldset>
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Search" /> <a class="cancel close" href="#">Cancel</a></fieldset>
</form>
</div>

View File

@ -41,7 +41,7 @@
<input type="text" name="barcode" id="barcode" class="focus" required="required" />
</li>
</ol>
<fieldset class="action"><input type="submit" value="View spine label" /></fieldset>
<fieldset class="action"><input type="submit" class="btn btn-primary" value="View spine label" /></fieldset>
</fieldset>
</form>