Skip to content

Commit

Permalink
Merge pull request #209 from trema-tech/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
rmady authored Nov 14, 2024
2 parents 977f33b + 347a8a7 commit 3ce910f
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 17 deletions.
20 changes: 17 additions & 3 deletions scss/trema/courselist.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
max-width: 16rem;
min-width: 12rem;
overflow: hidden;
border-bottom: none;
transition: all .3s ease-in-out;

&:hover {
Expand Down Expand Up @@ -79,9 +80,22 @@ body#page-enrol-index {
}

@media (max-width: 769px) {
#page .card-see-more .btn {
height: auto;
font-size: .7rem;
#page {
.card-see-more .btn {
height: auto;
font-size: .7rem;
}
#frontpage-available-course-list {
h2 {
text-align: center;
}
.card-deck {
justify-content: center;
.course-card-view {
width: 100%;
}
}
}
}
body#page-enrol-index #region-main {
padding: 10px 5px !important;
Expand Down
3 changes: 0 additions & 3 deletions scss/trema/incourse.scss
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,3 @@ body.pagelayout-course .section {
.pagination-sm .page-link {
padding: 0.25rem 0.5rem !important;
}
body.pagelayout-report #page #page-content {
max-width: fit-content !important;
}
8 changes: 8 additions & 0 deletions scss/trema/login.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ body#page-login-index {
line-height: 1.3rem;
padding: 10px 20px;
}
.login-form-password .toggle-sensitive-wrapper {
input[type="password"] {
border-radius: .4rem 0 0 .4rem;
}
.toggle-sensitive-btn {
box-shadow: none;
}
}
}

.login-wrapper {
Expand Down
15 changes: 13 additions & 2 deletions scss/trema/report.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
body.path-admin-reportbuilder {
body.pagelayout-report,
body.path-admin-reportbuilder,
body#page-admin-setting-reportbuildersettings,
body.path-admin-tool-mfa,
body.path-admin-report-eventlist,
body.path-report-participation,
body.path-report-competency,
body.path-admin-tool-brickfield,
body.path-admin-tool-spamcleaner {
#page {
div.secondary-navigation {
max-width: none;
margin: 0 auto;
.navigation .nav-tabs {
margin: 0;
}
}
#page-header {
margin-top: 1rem;
Expand Down Expand Up @@ -46,4 +57,4 @@ body.path-admin-reportbuilder {
}
}
}
}
}
26 changes: 19 additions & 7 deletions templates/core/loginform.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
* canloginasguest - Is guest login allowed?,
* canloginbyemail - Is login by email allowed?,
* cansignup - Signup allowed?,
* cookieshelpicon - cookies help icon details
* showloginform - Hide the standard login form if it not necessary (only OAuth2 for example),
* cookieshelpicon - cookies help icon details,
* error - Any errors in the form?,
* info - Info notification to display,
* forgotpasswordurl - Forgot password url,
* hasidentityproviders - Flag, set to true to hide identity providers,
* hasinstructions - Flag, set to true to show instructions,
Expand All @@ -36,8 +38,8 @@
* signupurl - Signup url,
* errorformatted - Formatted error,
* logourl - Flag, logo url,
* sitename - Name of site.
* logintoken - Random token to protect login request.
* sitename - Name of site,
* logintoken - Random token to protect login request,
* maintenance - Maintenance message
Example context (json):
Expand All @@ -46,14 +48,15 @@
"canloginasguest": "1",
"canloginbyemail": false,
"cansignup": true,
"showloginform": true,
"cookieshelpicon": {
"heading": "Cookies must be enabled in your browser",
"text": "<div class=\"no-overflow\">Two cookies are used on this site. Both died..</div>",
"icon": {
"attributes": [
{
"name": "class",
"value": "iconhelp"
"value": ""
},
{
"name": "alt",
Expand All @@ -75,22 +78,24 @@
"ltr": true
},
"error": "",
"info": "",
"forgotpasswordurl": "http://localhost/stable_master/login/forgot_password.php",
"hasidentityproviders": false,
"hasinstructions": true,
"identityproviders": [],
"instructions": "For full access to this site, you first need to create an account.",
"instructionsformat": "1",
"loginurl": "http://localhost/stable_master/login/index.php",
"rememberusername": true,
"signupurl": "http://localhost/stable_master/login/signup.php",
"cookieshelpiconformatted": "",
"errorformatted": "",
"logourl": false,
"sitename": "Beer & Chips",
"logintoken": "randomstring",
"maintenance": "For full access to this site, you need to login in as an admin.",
"languagemenu": "Choose language"
"languagemenu": "Choose language",
"togglepassword": true,
"smallscreensonly": true
}
}}

Expand Down Expand Up @@ -226,8 +231,15 @@
{{#error}}
document.getElementById('loginerrormessage').focus();
{{/error}}
{{#togglepassword}}
require(['core/togglesensitive'], function(ToggleSensitive) {
ToggleSensitive.init("password", {{smallscreensonly}});
});
{{/togglepassword}}
require(['core_form/submit'], function(Submit) {
Submit.init("loginbtn");
Submit.init("loginguestbtn");
{{#canloginasguest}}
Submit.init("loginguestbtn");
{{/canloginasguest}}
});
{{/js}}
2 changes: 2 additions & 0 deletions templates/lang_menu.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"children": [
{
"text": "English",
"title": "en",
"url": "http://example.com",
"divider": false
},
Expand All @@ -44,6 +45,7 @@
},
{
"text": "French",
"title": "fr",
"url": "http://example.com",
"divider": false
}
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2024101401;
$plugin->release = '4.5.0.2';
$plugin->version = 2024111400;
$plugin->release = '4.5.0.3';
$plugin->maturity = MATURITY_STABLE;
$plugin->requires = 2022021800; // Moodle 4.0 - Build: 20220218.
$plugin->component = 'theme_trema';
Expand Down

0 comments on commit 3ce910f

Please sign in to comment.