Bug 32097: Consistent classes for primary buttons: Lists

This patch makes changes the button markup in lists templates 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 lists 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: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Owen Leonard 2022-11-03 14:57:32 +00:00 committed by Tomas Cohen Arazi
parent 3fa7034bbe
commit f7d8717a33
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
5 changed files with 7 additions and 7 deletions

View file

@ -14,5 +14,5 @@
</tr>
[% END %]
</table>
<input type="submit" value="selection" />
<input type="submit" class="btn btn-primary" value="selection" />
</form>

View file

@ -109,7 +109,7 @@
<!-- SAVE -->
<fieldset class="action">
<input type="hidden" name="sortfield" value="title" />
<input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a>
<input type="submit" class="btn btn-primary" value="Save" /> <a class="close cancel" href="#">Cancel</a>
</fieldset>
</form>
<!-- /SAVE -->

View file

@ -40,8 +40,8 @@
</li></ol>
</fieldset>
<fieldset class="action"><input type="hidden" name="shelfid" value="[% shelfid | html %]" />
<input type="submit" name="save" value="Save" /> <a class="cancel close" href="#">Cancel</a>
</fieldset>
<input type="submit" name="save" class="btn btn-primary" value="Save" /> <a class="cancel close" href="#">Cancel</a>
</fieldset>
</form>
[% END %]

View file

@ -32,7 +32,7 @@
<li>
<input type="hidden" name="shelfid" value="[% shelfid | html %]" />
</li></ol></fieldset>
<fieldset class="action"> <input type="submit" value="Send" /> <a class="cancel close" href="#">Cancel</a> </fieldset>
<fieldset class="action"> <input type="submit" class="btn btn-primary" value="Send" /> <a class="cancel close" href="#">Cancel</a> </fieldset>
</form>
[% END %]</div>

View file

@ -234,7 +234,7 @@
<br/>
<fieldset class="action">
<input type="submit" value="Transfer" class="submit" />
<input type="submit" class="btn btn-primary" value="Transfer" />
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&amp;public=1" class="cancel">Cancel</a>
</fieldset>
@ -472,7 +472,7 @@
</fieldset>
<fieldset class="action">
<input type="submit" value="Save" class="submit" />
<input type="submit" class="btn btn-primary" value="Save" />
[% IF referer == 'view' %]
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]" class="cancel">Cancel</a>
[% ELSE %]