Bug 32096: Consistent classes for primary buttons: Tools
This patch makes changes the button markup in various tool 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 pages in the tools section to confirm that everything looks correct. In most cases there are no visible changes. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
fc08868976
commit
8165aa1d73
|
|
@ -183,8 +183,8 @@
|
|||
|
||||
<div id="toolbar" class="btn-toolbar">
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-default" id="submit_form"><i class="fa fa-save"></i> Save</button>
|
||||
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
<button class="btn btn-primary" id="submit_form"><i class="fa fa-save"></i> Save</button>
|
||||
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
|
|
@ -447,7 +447,7 @@
|
|||
</table>
|
||||
<input type="hidden" name="op" value="delete_confirmed" />
|
||||
<input type="hidden" name="category" value="[% category | html %]" />
|
||||
<fieldset class="action"><input type="submit" class="button" value="Delete selected" /></fieldset>
|
||||
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Delete selected" /></fieldset>
|
||||
</form>
|
||||
<form action="/cgi-bin/koha/tools/additional-contents.pl" method="post" id="delete_single">
|
||||
<input type="hidden" id="del_op" name="op" value="delete_confirmed" />
|
||||
|
|
|
|||
|
|
@ -150,9 +150,9 @@
|
|||
<fieldset class="action">
|
||||
<input type="checkbox" name="del_records" id="del_records" /> <label for="del_records">Delete records if no items remain.</label>
|
||||
[% IF too_many_items_display %]
|
||||
<input type="submit" name="mainformsubmit" value="Delete ALL submitted items" />
|
||||
<input type="submit" name="mainformsubmit" class="btn btn-primary" value="Delete ALL submitted items" />
|
||||
[% ELSE %]
|
||||
<input type="submit" name="mainformsubmit" value="Delete selected items" />
|
||||
<input type="submit" name="mainformsubmit" class="btn btn-primary" value="Delete selected items" />
|
||||
[% END %]
|
||||
|
||||
<a href="/cgi-bin/koha/tools/batchMod.pl?del=1" class="cancel">Cancel</a>
|
||||
|
|
|
|||
|
|
@ -198,7 +198,7 @@
|
|||
</fieldset>
|
||||
|
||||
<fieldset class="action">
|
||||
<input type="submit" id="mainformsubmit" value="Save" />
|
||||
<input type="submit" id="mainformsubmit" class="btn btn-primary" value="Save" />
|
||||
<a href="/cgi-bin/koha/tools/batchMod.pl" class="cancel">Cancel</a>
|
||||
</fieldset>
|
||||
</div> <!-- /#cataloguing_additem_newitem -->
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@
|
|||
|
||||
[% IF ( del ) %]<input type="hidden" name="del" value="1" />[% END %]
|
||||
<fieldset class="action">
|
||||
<input type="submit" value="Continue" class="button" />
|
||||
<input type="submit" class="btn btn-primary" value="Continue" />
|
||||
<a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
|
||||
</fieldset>
|
||||
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@
|
|||
|
||||
<fieldset class="action">
|
||||
<input type="hidden" name="op" value="list" />
|
||||
<input type="submit" value="Continue" class="button" />
|
||||
<input type="submit" class="btn btn-primary" value="Continue" />
|
||||
<a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
|
@ -205,7 +205,7 @@
|
|||
<fieldset class="action">
|
||||
<input type="hidden" name="op" value="delete" />
|
||||
<input type="hidden" name="recordtype" value="[% recordtype | html %]" />
|
||||
<input type="submit" value="Delete selected records" class="button" />
|
||||
<input type="submit" class="btn btn-primary" value="Delete selected records" />
|
||||
<a class="cancel" href="/cgi-bin/koha/tools/batch_delete_records.pl">Cancel</a>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@
|
|||
</fieldset>
|
||||
<fieldset class="action">
|
||||
<input type="hidden" name="op" value="list" />
|
||||
<input type="submit" value="Continue" class="button" />
|
||||
<input type="submit" class="btn btn-primary" value="Continue" />
|
||||
<a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
|
||||
</fieldset>
|
||||
</form> <!-- /#extend_due_dates_form -->
|
||||
|
|
@ -166,7 +166,7 @@
|
|||
<input type="hidden" name="op" value="modify" />
|
||||
<input type="hidden" name="new_hard_due_date" value="[% new_hard_due_date | $KohaDates dateformat => 'iso' %]" />
|
||||
<input type="hidden" name="due_date_days" value="[% due_date_days | html %]" />
|
||||
<input type="submit" value="Modify selected checkouts" class="button" />
|
||||
<input type="submit" class="btn btn-primary" value="Modify selected checkouts" />
|
||||
<a class="cancel" href="/cgi-bin/koha/tools/batch_extend_due_dates.pl">Cancel</a>
|
||||
</fieldset>
|
||||
</form> <!-- /#process -->
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@
|
|||
</fieldset>
|
||||
<fieldset class="action">
|
||||
<input type="hidden" name="op" value="list" />
|
||||
<input type="submit" value="Continue" class="button" />
|
||||
<input type="submit" class="btn btn-primary" value="Continue" />
|
||||
<a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
|
||||
</fieldset>
|
||||
</form> <!-- /#record_ids_selection -->
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@
|
|||
<input type="hidden" name="step" value="2" />
|
||||
<input type="hidden" name="branch" value="[% current_branch | html %]" />
|
||||
</fieldset>
|
||||
<fieldset class="action"><input type="submit" value="Next >>" /></fieldset>
|
||||
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Next >>" /></fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<!-- step 1 END -->
|
||||
|
|
@ -234,7 +234,7 @@
|
|||
<input type="hidden" name="borrower_categorycode" value="[% borrower_categorycode | html %]" />
|
||||
<input type="hidden" name="patron_list_id" value="[% patron_list_id | html %]" />
|
||||
<input type="hidden" name="branch" value="[% current_branch | html %]" />
|
||||
<fieldset class="action"><input type="submit" value="Finish" /> <a class="cancel" href="/cgi-bin/koha/tools/cleanborrowers.pl">Cancel</a></fieldset>
|
||||
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Finish" /> <a class="cancel" href="/cgi-bin/koha/tools/cleanborrowers.pl">Cancel</a></fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<!-- STEP 2 END -->
|
||||
|
|
|
|||
|
|
@ -263,7 +263,7 @@
|
|||
</ol>
|
||||
</fieldset>
|
||||
<fieldset class="action">
|
||||
<input type="submit" value="Submit" />
|
||||
<input type="submit" class="btn btn-primary" value="Submit" />
|
||||
<a class="cancel" href="/cgi-bin/koha/tools/csv-profiles.pl">Cancel</a>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@
|
|||
<input type="hidden" name="op" value="export" />
|
||||
<input type="hidden" name="record_type" value="bibs" />
|
||||
|
||||
<fieldset class="action"><input type="submit" value="Export bibliographic records" class="button" /></fieldset>
|
||||
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Export bibliographic records" /></fieldset>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
|
@ -251,7 +251,7 @@
|
|||
<input type="hidden" name="op" value="export" />
|
||||
<input type="hidden" name="record_type" value="auths" />
|
||||
|
||||
<fieldset class="action"><input type="submit" value="Export authority records" class="button" /></fieldset>
|
||||
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Export authority records" /></fieldset>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
|
@ -275,7 +275,7 @@
|
|||
[% IF ( dbfiles && (dbfiles.size > 0) ) %]
|
||||
<input type="hidden" name="op" value="export" />
|
||||
<input type="hidden" name="record_type" value="db" />
|
||||
<fieldset class="action"><input type="submit" value="Download database" class="button" /></fieldset>
|
||||
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Download database" /></fieldset>
|
||||
[% END %]
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -301,7 +301,7 @@
|
|||
[% IF ( conffiles && (conffiles.size > 0) ) %]
|
||||
<input type="hidden" name="op" value="export" />
|
||||
<input type="hidden" name="record_type" value="conf" />
|
||||
<fieldset class="action"><input type="submit" value="Download configuration" class="button" /></fieldset>
|
||||
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Download configuration" /></fieldset>
|
||||
[% END %]
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -366,7 +366,7 @@
|
|||
|
||||
<fieldset class="action">
|
||||
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
|
||||
<input type="submit" value="Import" />
|
||||
<input type="submit" class="btn btn-primary" value="Import" />
|
||||
</fieldset>
|
||||
</form>
|
||||
[% END %]
|
||||
|
|
|
|||
|
|
@ -238,7 +238,7 @@
|
|||
</fieldset>
|
||||
<input type="hidden" name="op" value="do_it" />
|
||||
|
||||
<fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
|
||||
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Submit" /></fieldset>
|
||||
</form>
|
||||
|
||||
[% END %]
|
||||
|
|
@ -338,7 +338,7 @@
|
|||
<div class="spacer"></div>
|
||||
[% UNLESS uploadedbarcodesflag %]
|
||||
<div style="padding : .3em 0"><a href="#" class="checkall"><i class="fa fa-check"></i> Select all</a> <a href="#" class="clearall"><i class="fa fa-remove"></i> Clear all</a></div>
|
||||
<input type="submit" id="markseenandquit" value="Mark seen and quit" />
|
||||
<input type="submit" id="markseenandquit" class="btn btn-primary" value="Mark seen and quit" />
|
||||
<input type="submit" value="Mark seen and continue >>" id="markseenandcontinuebutton" />
|
||||
<input type="submit" value="Continue without marking >>" id="continuewithoutmarkingbutton" class="submit" />
|
||||
[% END %]
|
||||
|
|
|
|||
|
|
@ -287,8 +287,8 @@
|
|||
|
||||
<div id="toolbar" class="btn-toolbar">
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-default" id="submit_form"><i class="fa fa-save"></i> Save</button>
|
||||
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
<button class="btn btn-primary" id="submit_form"><i class="fa fa-save"></i> Save</button>
|
||||
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
|
|
@ -584,7 +584,7 @@
|
|||
[% IF ( add_validate or copy_validate) %]
|
||||
Data recorded
|
||||
<form action="[% action | html %]" method="post">
|
||||
<input type="submit" value="OK" />
|
||||
<input type="submit" class="btn btn-primary" value="OK" />
|
||||
</form>
|
||||
[% END %]
|
||||
|
||||
|
|
@ -624,7 +624,7 @@
|
|||
[% IF ( delete_confirmed ) %]
|
||||
<span>Data deleted</span>
|
||||
<form action="[% action | html %]" method="post">
|
||||
<input type="submit" value="OK" />
|
||||
<input type="submit" class="btn btn-primary" value="OK" />
|
||||
</form>
|
||||
[% END %]
|
||||
|
||||
|
|
|
|||
|
|
@ -253,7 +253,7 @@
|
|||
[% END %]
|
||||
</ol>
|
||||
[% IF ( can_commit ) %]
|
||||
<fieldset class="action"><input type="submit" value="Apply different matching rules" class="button" /></fieldset>
|
||||
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Apply different matching rules" /></fieldset>
|
||||
</form>
|
||||
[% END %]
|
||||
</fieldset> <!-- /#staged-record-matching-rules -->
|
||||
|
|
|
|||
|
|
@ -296,7 +296,7 @@
|
|||
<input type="hidden" name="template_id" value="[% template_id | html %]" />
|
||||
<input type="hidden" name="mmta_id" id="mmta_id" />
|
||||
<input type="hidden" name="op" value="add_action" />
|
||||
<input id="action_submit" type="submit" value="Add action" />
|
||||
<input type="submit" id="action_submit" class="btn btn-primary" value="Add action" />
|
||||
<a href="#modaction" class="cancel" id="cancel_edit" onclick="cancelEditAction();">Cancel</a>
|
||||
</fieldset>
|
||||
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@
|
|||
</ol>
|
||||
</fieldset>
|
||||
<fieldset class="action">
|
||||
<input type="submit" value="Continue" class="button" />
|
||||
<input type="submit" class="btn btn-primary" value="Continue" />
|
||||
<a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
|
@ -106,7 +106,7 @@
|
|||
</ol>
|
||||
</fieldset>
|
||||
<fieldset class="action">
|
||||
<input type="submit" value="Continue" class="button" />
|
||||
<input type="submit" class="btn btn-primary" value="Continue" />
|
||||
<a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
|
@ -127,7 +127,7 @@
|
|||
</ol>
|
||||
</fieldset>
|
||||
<fieldset class="action">
|
||||
<input type="submit" value="Continue" class="button" />
|
||||
<input type="submit" class="btn btn-primary" value="Continue" />
|
||||
<a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
|
@ -383,7 +383,7 @@
|
|||
</ol>
|
||||
</fieldset>
|
||||
<fieldset class="action">
|
||||
<input type="submit" name="mainformsubmit" value="Save" />
|
||||
<input type="submit" name="mainformsubmit" class="btn btn-primary" value="Save" />
|
||||
<a href="/cgi-bin/koha/tools/modborrowers.pl" class="cancel">Cancel</a>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@
|
|||
<option value="">Default</option>
|
||||
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
|
||||
</select>
|
||||
<input type="submit" value="Select" />
|
||||
<input type="submit" class="btn btn-primary" value="Select" />
|
||||
</form>
|
||||
[% IF ( ERROR ) %]
|
||||
<div class="dialog alert">
|
||||
|
|
@ -160,7 +160,7 @@
|
|||
</div> <!-- /.tab-content -->
|
||||
</div>
|
||||
|
||||
<fieldset class="action"><input type="submit" value="Save changes" /></fieldset>
|
||||
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Save changes" /></fieldset>
|
||||
</form>
|
||||
[% ELSE %]
|
||||
<div class="warning">You don't have patron categories defined, or the patron categories are not set to receive overdue notices.</div>
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@
|
|||
<fieldset class="action">
|
||||
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
|
||||
<input type="hidden" name="op" value="Upload" />
|
||||
<input type="submit" value="Upload" class="submit" />
|
||||
<input type="submit" class="btn btn-primary" value="Upload" />
|
||||
<a href="/cgi-bin/koha/tools/tools-home.pl" class="cancel">Cancel</a>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@
|
|||
</fieldset>
|
||||
<fieldset class="action">
|
||||
<input type="hidden" name="id" value="[% quote.id | html %]" />
|
||||
<input type="submit" value="Submit" />
|
||||
<input type="submit" class="btn btn-primary" value="Submit" />
|
||||
<a class="cancel" href="/cgi-bin/koha/tools/quotes.pl">Cancel</a>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@
|
|||
<input type="text" name="email" id="email" size="50" />
|
||||
</li>
|
||||
</ol></fieldset>
|
||||
<fieldset class="action"><input class="submit-button" type="submit" value="Save" /></fieldset>
|
||||
<fieldset class="action"><input class="btn btn-primary" type="submit" value="Save" /></fieldset>
|
||||
</form>
|
||||
|
||||
[% IF ( JOBS ) %]<h2>Jobs already entered</h2>
|
||||
|
|
@ -95,7 +95,7 @@
|
|||
<tr>
|
||||
<td>[% JOB.TIME | html %]</td>
|
||||
<td>[% JOB.TAG | html %]</td>
|
||||
<td><input type="submit" name="delete" value="Delete" /></td>
|
||||
<td><input type="submit" name="delete" class="btn btn-primary" value="Delete" /></td>
|
||||
</tr>
|
||||
<input type="hidden" name="jobid" value="[% JOB.JOBID | html %]" />
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@
|
|||
</li>
|
||||
</ol>
|
||||
<fieldset class="action">
|
||||
<button id="fileuploadbutton">Upload file</button>
|
||||
<button id="fileuploadbutton" class="btn btn-primary">Upload file</button>
|
||||
<button id="fileuploadcancel">Cancel</button>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
|
|
@ -242,7 +242,7 @@
|
|||
</fieldset>
|
||||
|
||||
<fieldset class="action">
|
||||
<input type="submit" id="mainformsubmit" class="button" value="Stage for import" />
|
||||
<input type="submit" id="mainformsubmit" class="btn btn-primary" value="Stage for import" />
|
||||
</fieldset>
|
||||
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -195,7 +195,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/tools/stockrotation.pl" class="cancel">Cancel</a>
|
||||
</fieldset>
|
||||
[% IF rota.rota_id %]
|
||||
|
|
@ -352,7 +352,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/tools/stockrotation.pl?op=manage_stages&rota_id=[% rota_id | uri %]" class="cancel">Cancel</a>
|
||||
</fieldset>
|
||||
<input type="hidden" name="stage_id" value="[% stage.id | html %]">
|
||||
|
|
@ -573,7 +573,7 @@
|
|||
|
||||
</fieldset>
|
||||
<fieldset class="action">
|
||||
<input type="submit" value="Save">
|
||||
<input type="submit" class="btn btn-primary" value="Save" />
|
||||
</fieldset>
|
||||
<input type="hidden" name="rota_id" value="[% rota_id | html %]">
|
||||
<input type="hidden" name="op" value="move_items_to_rota">
|
||||
|
|
|
|||
|
|
@ -263,7 +263,7 @@
|
|||
</fieldset>
|
||||
|
||||
<fieldset id="process_images" class="action">
|
||||
<button type="submit" class="btn btn-default btn-sm save_image">Process images</button>
|
||||
<button type="submit" class="btn btn-primary btn-sm save_image">Process images</button>
|
||||
[% IF ( biblionumber ) %]
|
||||
<a class="cancel cancel_image" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]">Cancel</a>
|
||||
[% ELSE %]
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@
|
|||
</li>
|
||||
</ol>
|
||||
<fieldset class="action">
|
||||
<button id="fileuploadbutton">Upload</button>
|
||||
<button id="fileuploadbutton" class="btn btn-primary">Upload</button>
|
||||
<button id="fileuploadcancel">Cancel</button>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
|
|
@ -136,7 +136,7 @@
|
|||
</li>
|
||||
</ol>
|
||||
<fieldset class="action">
|
||||
<button id="browsebutton" class="submit">Search</button>
|
||||
<button id="browsebutton" class="btn btn-primary">Search</button>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
|
@ -156,7 +156,7 @@
|
|||
</li>
|
||||
</ol>
|
||||
<fieldset class="action">
|
||||
<button id="searchbutton" class="submit">Search</button>
|
||||
<button id="searchbutton" class="btn btn-primary">Search</button>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -312,7 +312,7 @@
|
|||
</ol>
|
||||
</fieldset>
|
||||
<fieldset class="action">
|
||||
<input type="submit" value="Submit" />
|
||||
<input type="submit" class="btn btn-primary" value="Submit" />
|
||||
<input type="hidden" name="do_it" value="1" />
|
||||
</fieldset>
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Reference in New Issue