@@ 34-40 (lines=7) @@ | ||
31 | $form->addElement('password', 'password', null, array('placeholder' => get_lang('Password'))); //new |
|
32 | $form->addButtonNext(get_lang('LoginEnter'), 'submitAuth'); |
|
33 | // see same text in main_api.lib.php function api_not_allowed |
|
34 | if (api_is_cas_activated()) { |
|
35 | $msg .= Display::return_message(sprintf(get_lang('YouHaveAnInstitutionalAccount'), api_get_setting("Institution")), '', false); |
|
36 | $msg .= Display::div("<br/><a href='".get_cas_direct_URL(api_get_course_id())."'>".getCASLogoHTML()." ".sprintf(get_lang('LoginWithYourAccount'), api_get_setting("Institution"))."</a><br/><br/>", array('align'=>'center')); |
|
37 | $msg .= Display::return_message(get_lang('YouDontHaveAnInstitutionAccount')); |
|
38 | $msg .= "<p style='text-align:center'><a href='#' onclick='$(this).parent().next().toggle()'>".get_lang('LoginWithExternalAccount')."</a></p>"; |
|
39 | $msg .= "<div style='display:none;'>"; |
|
40 | } |
|
41 | ||
42 | $msg .= '<div class="well_login">'; |
|
43 | $msg .= $form->return_form(); |
@@ 3482-3488 (lines=7) @@ | ||
3479 | // see same text in auth/gotocourse.php and main_api.lib.php function api_not_allowed (bellow) |
|
3480 | $msg = Display::return_message(get_lang('NotAllowed'), 'error', false); |
|
3481 | $msg .= '<h4>'.get_lang('LoginToGoToThisCourse').'</h4>'; |
|
3482 | if (api_is_cas_activated()) { |
|
3483 | $msg .= Display::return_message(sprintf(get_lang('YouHaveAnInstitutionalAccount'), api_get_setting("Institution")), '', false); |
|
3484 | $msg .= Display::div("<br/><a href='".get_cas_direct_URL(api_get_course_int_id())."'>".getCASLogoHTML()." ".sprintf(get_lang('LoginWithYourAccount'), api_get_setting("Institution"))."</a><br/><br/>", array('align'=>'center')); |
|
3485 | $msg .= Display::return_message(get_lang('YouDontHaveAnInstitutionAccount')); |
|
3486 | $msg .= "<p style='text-align:center'><a href='#' onclick='$(this).parent().next().toggle()'>".get_lang('LoginWithExternalAccount')."</a></p>"; |
|
3487 | $msg .= "<div style='display:none;'>"; |
|
3488 | } |
|
3489 | $msg .= '<div class="well">'; |
|
3490 | $msg .= $form->return_form(); |
|
3491 | $msg .='</div>'; |