View | Details | Raw Unified | Return to bug 25405
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss (+3 lines)
Lines 2436-2441 button { Link Here
2436
        font-size: 120%;
2436
        font-size: 120%;
2437
        padding: 1em 2em;
2437
        padding: 1em 2em;
2438
    }
2438
    }
2439
    .ui-tabs-anchor {
2440
        font-size: 16px;
2441
    }
2439
}
2442
}
2440
2443
2441
.nologininstructions,
2444
.nologininstructions,
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-4 / +10 lines)
Lines 339-346 Link Here
339
        </div>
339
        </div>
340
        <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth">
340
        <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth">
341
            <input type="hidden" name="has-search-query" id="has-search-query" value="" />
341
            <input type="hidden" name="has-search-query" id="has-search-query" value="" />
342
            <div class="modal-body">
342
            <div id="loginTabs" class="modal-body">
343
                [% IF ( shibbolethAuthentication ) %]
343
                [% IF ( shibbolethAuthentication ) %]
344
                <ul>
345
                    <li><a href="#loginTabs-1">Shibboleth log in</a></li>
346
                    <li><a href="#loginTabs-2">Local log in</a></li>
347
                </ul>
348
                <div id="loginTabs-1" class="shibbolethLogin">
344
                    [% IF ( invalidShibLogin ) %]
349
                    [% IF ( invalidShibLogin ) %]
345
                        <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
350
                        <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
346
                        <div class="alert alert-info">
351
                        <div class="alert alert-info">
Lines 349-357 Link Here
349
                    [% ELSE %]
354
                    [% ELSE %]
350
                        <h4>Shibboleth login</h4>
355
                        <h4>Shibboleth login</h4>
351
                        <p>If you have a Shibboleth account, please <a href="[% shibbolethLoginUrl | $raw %]">click here to login</a>.</p>
356
                        <p>If you have a Shibboleth account, please <a href="[% shibbolethLoginUrl | $raw %]">click here to login</a>.</p>
352
                        <h4>Local Login</h4>
357
                </div>
353
                    [% END %]
358
                    [% END %]
354
                [% END %]
359
                [% END %]
360
                <div id="loginTabs-2" class="localLogin">
361
                <h4>Local Login</h4>
355
                <input type="hidden" name="koha_login_context" value="opac" />
362
                <input type="hidden" name="koha_login_context" value="opac" />
356
                <fieldset class="brief">
363
                <fieldset class="brief">
357
                    <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" />
364
                    <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" />
Lines 372-380 Link Here
372
                        </div>
379
                        </div>
373
                    [% END %]
380
                    [% END %]
374
                </fieldset>
381
                </fieldset>
375
            </div>
376
            <div class="modal-footer">
377
                <input type="submit" class="btn btn-primary" value="Log in" />
382
                <input type="submit" class="btn btn-primary" value="Log in" />
383
                </div>
378
            </div>
384
            </div>
379
        </form> <!-- /#auth -->
385
        </form> <!-- /#auth -->
380
    </div>  <!-- /#modalAuth  -->
386
    </div>  <!-- /#modalAuth  -->
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/global.js (-1 / +5 lines)
Lines 91-93 function confirmModal(message, title, yes_label, no_label, callback) { Link Here
91
    $("#bootstrap-confirm-box-modal-cancel").text( no_label || 'Cancel' );
91
    $("#bootstrap-confirm-box-modal-cancel").text( no_label || 'Cancel' );
92
    $("#bootstrap-confirm-box-modal").modal('show');
92
    $("#bootstrap-confirm-box-modal").modal('show');
93
}
93
}
94
- 
94
95
/*jQuery UI Tabs for login modal*/
96
$( function() {
97
    $( "#loginTabs" ).tabs();
98
} );

Return to bug 25405