mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
647fd16ec9
Extra wide logos do not scale to the screen size - this change adds the bootstrap class img-fluid to logos on the loginpage, signupform and in the context header. Thanks to Maksud R for working on this.
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
{{!
|
|
@template core/signup_form_layout
|
|
|
|
Example context (json):
|
|
{
|
|
"logourl": "https://moodle.org/logo/moodle-logo.svg",
|
|
"sitename": "Site name",
|
|
"formhtml": "<p>(Form html would go here)</p>"
|
|
}
|
|
}}
|
|
<div class="container-fluid mt-1 mt-md-5">
|
|
<div class="row justify-content-md-center">
|
|
<div class="col-md-8 col-xl-6">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="card-title text-xs-center">
|
|
{{#logourl}}
|
|
<h2><img class="img-fluid" src="{{logourl}}" title="{{sitename}}" alt="{{sitename}}"/></h2>
|
|
{{/logourl}}
|
|
{{^logourl}}
|
|
<h2>{{sitename}}</h2>
|
|
{{/logourl}}
|
|
<hr>
|
|
</div>
|
|
<div class="card-title">
|
|
<h3>{{#str}}newaccount{{/str}}</h3>
|
|
</div>
|
|
{{{formhtml}}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|