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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-2 / +24 lines)
Lines 270-277 Link Here
270
            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
270
            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
271
            <h3 id="modalLoginLabel">Log in to your account</h3>
271
            <h3 id="modalLoginLabel">Log in to your account</h3>
272
        </div>
272
        </div>
273
        [% IF Koha.Preference('casAuthentication') %]
274
          <div class="modal-body">
275
            <h4>CAS login</h4>
276
            <p>If you have a <acronym title="Central Authentication Service">CAS</acronym> account,
277
            [% IF Koha.Preference('casServerUrl') %]
278
                please <a href="[% casServerUrl %]">click here to login</a>.<p>
279
            [% END %]
280
281
            [% IF casServersLoop %]
282
                Please choose against which one you would like to authenticate: </p>
283
                <ul>
284
                    [% FOREACH casServer IN casServersLoop %]
285
                    <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
286
                    [% END %]
287
                </ul>
288
            [% END %]
289
290
          </div>
291
        [% END # / IF casAuthentication %]
273
        <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth">
292
        <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth">
274
            <div class="modal-body">
293
            <div class="modal-body">
294
              [% IF Koha.Preference('casAuthentication') %]
295
                <h4>Local login</h4>
296
                <p>If you do not have a CAS account, but a local account, you can still log in: </p>
297
              [% END %]
275
                    <input type="hidden" name="koha_login_context" value="opac" />
298
                    <input type="hidden" name="koha_login_context" value="opac" />
276
                    <fieldset class="brief">
299
                    <fieldset class="brief">
277
                        <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" />
300
                        <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" />
Lines 284-287 Link Here
284
                <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
307
                <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
285
            </div>
308
            </div>
286
        </form> <!-- /#auth -->
309
        </form> <!-- /#auth -->
287
    </div>  <!-- /#modalAuth  -->
310
    </div>  <!-- /#modalAuth  -->
288
- 

Return to bug 12046