Proyectos de Subversion Moodle

Rev

Rev 748 | Rev 750 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 748 Rev 749
Línea 168... Línea 168...
168
{{/loginlayoutimg}}
168
{{/loginlayoutimg}}
Línea 169... Línea 169...
169
 
169
 
170
<div class="rui-login-box">
170
<div class="rui-login-box">
171
    <div class="row">
171
    <div class="row">
-
 
172
        <div class="col col-md-6">
-
 
173
            <img src="{{{ config.wwwroot }}}/theme/universe_child/pix/login_bg.png"  alt="" width="60" height="60" class="img-fluid"/>
-
 
174
        </div>
172
        <div class="col col-md-6">
175
        <div class="col col-md-6">
173
            <div class="rui-login-content">
176
            <div class="rui-login-content">
174
                {{#cansignup}}
177
                {{#cansignup}}
175
                    <div class="sr-only">
178
                    <div class="sr-only">
176
                        <a href="{{signupurl}}">{{#str}} tocreatenewaccount {{/str}}</a>
179
                        <a href="{{signupurl}}">{{#str}} tocreatenewaccount {{/str}}</a>
Línea 235... Línea 238...
235
                            <hr class="hr-small" />
238
                            <hr class="hr-small" />
236
                        </div>
239
                        </div>
237
                    {{/hasidentityproviders}}
240
                    {{/hasidentityproviders}}
238
                {{/loginidprovtop}}
241
                {{/loginidprovtop}}
Línea 239... Línea 242...
239
 
242
 
240
            <div class="rui-login-form">
-
 
241
 
-
 
242
                <form action="{{loginurl}}" method="post" id="login">
-
 
243
                    <input id="anchor" type="hidden" name="anchor" value="">
-
 
244
                    <script>
-
 
245
                        document.getElementById('anchor').value = location.hash;
-
 
246
                    </script>
-
 
247
                    <input type="hidden" name="logintoken" value="{{logintoken}}">
-
 
248
                    <div class="form-group mb-2 form-control--username-box">
-
 
249
                        <label for="username" class="sr-only">
-
 
250
                            {{^canloginbyemail}}
-
 
251
                                {{#str}} username {{/str}}
-
 
252
                            {{/canloginbyemail}}
-
 
253
                            {{#canloginbyemail}}
-
 
254
                                {{#str}} usernameemail {{/str}}
-
 
255
                            {{/canloginbyemail}}
-
 
256
                        </label>
-
 
257
                        <input type="text" name="username" id="username" {{!
-
 
258
                    !}}class="form-control form-control--username" {{!
-
 
259
                    !}}value="{{username}}" {{!
-
 
260
                    !}}placeholder="{{^canloginbyemail}}{{#cleanstr}}username{{/cleanstr}}{{/canloginbyemail}}{{!
-
 
261
                    !}}{{#canloginbyemail}}{{#cleanstr}}usernameemail{{/cleanstr}}{{/canloginbyemail}}" {{!
-
 
262
                    !}}autocomplete="username">
-
 
263
                    </div>
-
 
264
                    <div class="form-group my-1 form-control--password-box">
-
 
265
                        <label for="password" class="sr-only">{{#str}} password {{/str}}</label>
-
 
266
                        <input type="password" name="password" id="password" value="" {{!
-
 
267
                    !}}class="form-control form-control--password" {{!
-
 
268
                    !}}placeholder="{{#cleanstr}}password{{/cleanstr}}" {{!
-
 
269
                    !}}autocomplete="current-password">
-
 
270
                        <button class="rui-show-password-btn rui-show-password-btn--hidden border-0" id="togglePassword" tabindex="0" type="button" role="button" aria-checked="false">
-
 
271
                            <svg class="showpassword-icon--off" width="24" height="24" fill="none" viewBox="0 0 24 24">
-
 
272
                                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19.25 12C19.25 13 17.5 18.25 12 18.25C6.5 18.25 4.75 13 4.75 12C4.75 11 6.5 5.75 12 5.75C17.5 5.75 19.25 11 19.25 12Z"></path>
-
 
273
                                <circle cx="12" cy="12" r="2.25" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></circle>
-
 
274
                            </svg>
-
 
275
                            <svg class="showpassword-icon--on" width="24" height="24" fill="none" viewBox="0 0 24 24">
-
 
276
                                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M18.6247 10C19.0646 10.8986 19.25 11.6745 19.25 12C19.25 13 17.5 18.25 12 18.25C11.2686 18.25 10.6035 18.1572 10 17.9938M7 16.2686C5.36209 14.6693 4.75 12.5914 4.75 12C4.75 11 6.5 5.75 12 5.75C13.7947 5.75 15.1901 6.30902 16.2558 7.09698"></path>
-
 
277
                                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19.25 4.75L4.75 19.25"></path>
-
 
278
                                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M10.409 13.591C9.53033 12.7123 9.53033 11.2877 10.409 10.409C11.2877 9.5303 12.7123 9.5303 13.591 10.409"></path>
-
 
279
                            </svg>
-
 
280
                        </button>
-
 
281
                    </div>
-
 
282
                    {{^hideforgotpassword}}
-
 
283
                        <div class="w-100 text-center">
-
 
284
                            <a class="rui-login-forgot-btn" href="{{forgotpasswordurl}}">{{#str}}forgotten{{/str}}</a>
-
 
285
                        </div>
-
 
286
                    {{/hideforgotpassword}}
-
 
287
                    {{{logininfobox}}}
-
 
288
                    {{#recaptcha}}
-
 
289
                        <div class="login-form-recaptcha form-group">
-
 
290
                            {{{recaptcha}}}
-
 
291
                        </div>
-
 
292
                    {{/recaptcha}}
-
 
293
                    <button type="submit" class="btn btn-lg btn-primary btn-block mt-3" id="loginbtn">{{#str}}login{{/str}}</button>
-
 
294
                </form>
-
 
295
            </div>
-
 
296
            <!-- .rui-login-form -->
-
 
297
 
-
 
298
            {{^loginidprovtop}}
-
 
299
                {{#hasidentityproviders}}
-
 
300
                    <hr class="hr-small" />
-
 
301
                    <div class="rui-potentialidplist login-identityproviders mt-3 text-center">
-
 
302
                        <p class="small text-center">{{#str}} potentialidps, auth {{/str}}</p>
-
 
303
                        <div class="row no-gutters mt-1">
-
 
304
                            {{#identityproviders}}
-
 
305
                                <a class="btn btn-secondary login-identityprovider-btn rui-potentialidp w-100 mt-1" href="{{url}}">
-
 
306
                                    {{#iconurl}}
-
 
307
                                        <img src="{{iconurl}}" alt="" width="24" height="24"/>
-
 
308
                                    {{/iconurl}}
-
 
309
                                    {{name}}
-
 
310
                                </a>
-
 
311
                            {{/identityproviders}}
-
 
312
                        </div>
-
 
313
                    </div>
-
 
314
                {{/hasidentityproviders}}
-
 
Línea 315... Línea 243...
315
            {{/loginidprovtop}}
243
                <div class="rui-login-form">
316
 
244
 
317
        <div class="rui-login-additional-btns">
245
                    <form action="{{loginurl}}" method="post" id="login">
318
            {{#canloginasguest}}
-
 
319
            <hr class="hr-small" />
246
                        <input id="anchor" type="hidden" name="anchor" value="">
320
                <div class="rui-canloginasguest mt-2" title="{{#str}}someallowguest{{/str}}">
247
                        <script>
321
                    <p class="small text-center">{{#str}}someallowguest{{/str}}</p>
248
                            document.getElementById('anchor').value = location.hash;
-
 
249
                        </script>
-
 
250
                        <input type="hidden" name="logintoken" value="{{logintoken}}">
-
 
251
                        <div class="form-group mb-2 form-control--username-box">
-
 
252
                            <label for="username" class="sr-only">
-
 
253
                                {{^canloginbyemail}}
-
 
254
                                    {{#str}} username {{/str}}
-
 
255
                                {{/canloginbyemail}}
-
 
256
                                {{#canloginbyemail}}
-
 
257
                                    {{#str}} usernameemail {{/str}}
322
                    <form action="{{loginurl}}" method="post" id="guestlogin">
258
                                {{/canloginbyemail}}
-
 
259
                            </label>
-
 
260
                            <input type="text" name="username" id="username" {{!
-
 
261
                        !}}class="form-control form-control--username" {{!
-
 
262
                        !}}value="{{username}}" {{!
-
 
263
                        !}}placeholder="{{^canloginbyemail}}{{#cleanstr}}username{{/cleanstr}}{{/canloginbyemail}}{{!
-
 
264
                        !}}{{#canloginbyemail}}{{#cleanstr}}usernameemail{{/cleanstr}}{{/canloginbyemail}}" {{!
-
 
265
                        !}}autocomplete="username">
-
 
266
                        </div>
-
 
267
                        <div class="form-group my-1 form-control--password-box">
-
 
268
                            <label for="password" class="sr-only">{{#str}} password {{/str}}</label>
-
 
269
                            <input type="password" name="password" id="password" value="" {{!
-
 
270
                        !}}class="form-control form-control--password" {{!
-
 
271
                        !}}placeholder="{{#cleanstr}}password{{/cleanstr}}" {{!
-
 
272
                        !}}autocomplete="current-password">
323
                        <input type="hidden" name="logintoken" value="{{logintoken}}">
273
                            <button class="rui-show-password-btn rui-show-password-btn--hidden border-0" id="togglePassword" tabindex="0" type="button" role="button" aria-checked="false">
-
 
274
                                <svg class="showpassword-icon--off" width="24" height="24" fill="none" viewBox="0 0 24 24">
-
 
275
                                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19.25 12C19.25 13 17.5 18.25 12 18.25C6.5 18.25 4.75 13 4.75 12C4.75 11 6.5 5.75 12 5.75C17.5 5.75 19.25 11 19.25 12Z"></path>
-
 
276
                                    <circle cx="12" cy="12" r="2.25" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></circle>
324
                        <input type="hidden" name="username" value="guest" />
277
                                </svg>
-
 
278
                                <svg class="showpassword-icon--on" width="24" height="24" fill="none" viewBox="0 0 24 24">
-
 
279
                                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M18.6247 10C19.0646 10.8986 19.25 11.6745 19.25 12C19.25 13 17.5 18.25 12 18.25C11.2686 18.25 10.6035 18.1572 10 17.9938M7 16.2686C5.36209 14.6693 4.75 12.5914 4.75 12C4.75 11 6.5 5.75 12 5.75C13.7947 5.75 15.1901 6.30902 16.2558 7.09698"></path>
-
 
280
                                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19.25 4.75L4.75 19.25"></path>
-
 
281
                                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M10.409 13.591C9.53033 12.7123 9.53033 11.2877 10.409 10.409C11.2877 9.5303 12.7123 9.5303 13.591 10.409"></path>
-
 
282
                                </svg>
-
 
283
                            </button>
-
 
284
                        </div>
-
 
285
                        {{^hideforgotpassword}}
-
 
286
                            <div class="w-100 text-center">
-
 
287
                                <a class="rui-login-forgot-btn" href="{{forgotpasswordurl}}">{{#str}}forgotten{{/str}}</a>
-
 
288
                            </div>
-
 
289
                        {{/hideforgotpassword}}
-
 
290
                        {{{logininfobox}}}
-
 
291
                        {{#recaptcha}}
-
 
292
                            <div class="login-form-recaptcha form-group">
-
 
293
                                {{{recaptcha}}}
-
 
294
                            </div>
325
                        <input type="hidden" name="password" value="guest" />
295
                        {{/recaptcha}}
326
                        <button class="btn btn-sm btn-outline-secondary w-100" type="submit" id="loginguestbtn">{{#str}}loginguest{{/str}}</button>
296
                        <button type="submit" class="btn btn-lg btn-primary btn-block mt-3" id="loginbtn">{{#str}}login{{/str}}</button>
327
                    </form>
-
 
328
                </div>
297
                    </form>
Línea 329... Línea 298...
329
            {{/canloginasguest}}
298
                </div>
330
        </div><!-- .rui-additional-btns -->
299
            <!-- .rui-login-form -->
-
 
300
 
331
 
301
                {{^loginidprovtop}}
332
        {{#cansignup}}
302
                    {{#hasidentityproviders}}
333
            {{^customsignupoutside}}
303
                        <hr class="hr-small" />
334
                <div class="rui-login-createaccount my-4 text-center">
304
                        <div class="rui-potentialidplist login-identityproviders mt-3 text-center">
-
 
305
                            <p class="small text-center">{{#str}} potentialidps, auth {{/str}}</p>
-
 
306
                            <div class="row no-gutters mt-1">
-
 
307
                                {{#identityproviders}}
335
                    {{#canloginasguest}}<hr class="hr-small" />{{/canloginasguest}}
308
                                    <a class="btn btn-secondary login-identityprovider-btn rui-potentialidp w-100 mt-1" href="{{url}}">
-
 
309
                                        {{#iconurl}}
336
                    <form action="{{signupurl}}" method="get" id="signup">
310
                                            <img src="{{iconurl}}" alt="" width="24" height="24"/>
337
                        {{#stringca}}
311
                                        {{/iconurl}}
338
                            <p class="small">{{{stringca}}}</p>
312
                                        {{name}}
339
                        {{/stringca}}
313
                                    </a>
340
                        <button type="submit" class="btn btn-info w-100">{{#str}}startsignup{{/str}}</button>
314
                                {{/identityproviders}}
341
                    </form>
315
                            </div>
Línea -... Línea 316...
-
 
316
                        </div>
342
                </div>
317
                    {{/hasidentityproviders}}
343
            {{/customsignupoutside}}
318
                {{/loginidprovtop}}
-
 
319
 
-
 
320
                <div class="rui-login-additional-btns">
-
 
321
                    {{#canloginasguest}}
-
 
322
                    <hr class="hr-small" />
-
 
323
                        <div class="rui-canloginasguest mt-2" title="{{#str}}someallowguest{{/str}}">
-
 
324
                            <p class="small text-center">{{#str}}someallowguest{{/str}}</p>
-
 
325
                            <form action="{{loginurl}}" method="post" id="guestlogin">
344
        {{/cansignup}}
326
                                <input type="hidden" name="logintoken" value="{{logintoken}}">
345
 
327
                                <input type="hidden" name="username" value="guest" />
346
        {{#loginhtmlblockbottom}}
328
                                <input type="hidden" name="password" value="guest" />
-
 
329
                                <button class="btn btn-sm btn-outline-secondary w-100" type="submit" id="loginguestbtn">{{#str}}loginguest{{/str}}</button>
Línea 347... Línea 330...
347
            <div class="rui-login-bottom-block">
330
                            </form>
-
 
331
                        </div>
348
                {{{loginhtmlblockbottom}}}
332
                    {{/canloginasguest}}
349
            </div>
333
                </div><!-- .rui-additional-btns -->
350
        {{/loginhtmlblockbottom}}
334
 
351
 
335
                {{#cansignup}}
352
        {{#instructions}}
-
 
353
            <div class="rui-hasinstructions-desc alert alert-info">
336
                    {{^customsignupoutside}}
354
                {{{instructions}}}
337
                        <div class="rui-login-createaccount my-4 text-center">
355
            </div><!-- .rui-hasinstructions-desc -->
338
                            {{#canloginasguest}}<hr class="hr-small" />{{/canloginasguest}}
356
        {{/instructions}}
339
                            <form action="{{signupurl}}" method="get" id="signup">
357
 
340
                                {{#stringca}}
-
 
341
                                    <p class="small">{{{stringca}}}</p>
358
        {{^loginlayoutimg}}
342
                                {{/stringca}}
Línea 359... Línea 343...
359
            {{#loginhtmlcontent3}}
343
                                <button type="submit" class="btn btn-info w-100">{{#str}}startsignup{{/str}}</button>
360
                <div class="rui-login-html-3">
-
 
361
                    {{{loginhtmlcontent3}}}
344
                            </form>
362
                </div>
345
                        </div>
363
            {{/loginhtmlcontent3}}
346
                    {{/customsignupoutside}}
364
 
347
                {{/cansignup}}
365
            {{#loginfootercontent}}
-
 
366
                <div class="rui-login-footer-content text-center mb-2">
-
 
367
                    <hr class="hr-small" />
-
 
368
                    {{{loginfootercontent}}}
-
 
Línea -... Línea 348...
-
 
348
 
-
 
349
                {{#loginhtmlblockbottom}}
-
 
350
                    <div class="rui-login-bottom-block">
-
 
351
                        {{{loginhtmlblockbottom}}}
-
 
352
                    </div>
-
 
353
                {{/loginhtmlblockbottom}}
-
 
354
 
-
 
355
                {{#instructions}}
369
                </div>
356
                    <div class="rui-hasinstructions-desc alert alert-info">
-
 
357
                        {{{instructions}}}
-
 
358
                    </div><!-- .rui-hasinstructions-desc -->
-
 
359
                {{/instructions}}
-
 
360
 
-
 
361
                {{^loginlayoutimg}}
370
            {{/loginfootercontent}}
362
                    {{#loginhtmlcontent3}}
-
 
363
                        <div class="rui-login-html-3">
-
 
364
                            {{{loginhtmlcontent3}}}
-
 
365
                        </div>
-
 
366
                    {{/loginhtmlcontent3}}
-
 
367
 
-
 
368
                    {{#loginfootercontent}}
371
        {{/loginlayoutimg}}
369
                        <div class="rui-login-footer-content text-center mb-2">
-
 
370
                            <hr class="hr-small" />
372
    </div>
371
                            {{{loginfootercontent}}}
373
    <!-- .rui-login-content -->
372
                        </div>
Línea 374... Línea 373...
374
        </div>
373
                    {{/loginfootercontent}}