Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
François Jacquet
rosariosis
Commits
2a3be7a0
Commit
2a3be7a0
authored
Feb 26, 2018
by
François Jacquet
Browse files
Add No .primary button class comment for secondary SubmitButton calls
parent
c3ce9e34
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
24 deletions
+29
-24
CHANGES.md
CHANGES.md
+2
-0
modules/Food_Service/DailyMenus.php
modules/Food_Service/DailyMenus.php
+1
-1
modules/Food_Service/Students/ServeMenus.php
modules/Food_Service/Students/ServeMenus.php
+1
-1
modules/Food_Service/Users/Accounts.php
modules/Food_Service/Users/Accounts.php
+4
-1
modules/Food_Service/Users/ServeMenus.php
modules/Food_Service/Users/ServeMenus.php
+1
-1
plugins/Moodle/Custom/CreateParents.php
plugins/Moodle/Custom/CreateParents.php
+20
-20
No files found.
CHANGES.md
View file @
2a3be7a0
...
...
@@ -26,6 +26,8 @@ Changes in 3.8-beta2
-
CSS & HTML use attendance-code colors classes in TakeAttendance.php
-
CSS add .proper-date class in Date.php & stylesheet.css
-
Add AddRequestedDates() function in Date.php & use programwide
-
Add CSS .button-primary class to submit buttons in Buttons.php
-
SubmitButton() $value parameter is optional i Buttons.php & programwide
Changes in 3.7.1
----------------
...
...
modules/Food_Service/DailyMenus.php
View file @
2a3be7a0
...
...
@@ -249,7 +249,7 @@ else
)
),
SubmitButton
(
_
(
'Save'
),
'submit[save]'
)
.
SubmitButton
(
_
(
'Generate Menu'
),
'submit[print]'
,
''
)
SubmitButton
(
_
(
'Generate Menu'
),
'submit[print]'
,
''
)
// No .primary button class.
);
echo
'<br />'
;
...
...
modules/Food_Service/Students/ServeMenus.php
View file @
2a3be7a0
...
...
@@ -88,7 +88,7 @@ if (UserStudentID() && ! $_REQUEST['modfunc'])
DrawHeader
(
''
,
SubmitButton
(
_
(
'Cancel Sale'
),
'submit[cancel]'
,
''
)
.
SubmitButton
(
_
(
'Cancel Sale'
),
'submit[cancel]'
,
''
)
.
// No .primary button class.
SubmitButton
(
_
(
'Complete Sale'
),
'submit[save]'
)
);
...
...
modules/Food_Service/Users/Accounts.php
View file @
2a3be7a0
...
...
@@ -135,7 +135,10 @@ if (UserStaffID() && ! $_REQUEST['modfunc'])
DrawHeader
(
''
,
SubmitButton
(
_
(
'Save'
),
'submit[save]'
)
.
(
$staff
[
'BALANCE'
]
==
0
?
SubmitButton
(
_
(
'Delete Account'
),
'submit[delete]'
,
''
)
:
''
)
(
$staff
[
'BALANCE'
]
==
0
?
SubmitButton
(
_
(
'Delete Account'
),
'submit[delete]'
,
''
)
:
// No .primary button class.
''
)
);
}
else
...
...
modules/Food_Service/Users/ServeMenus.php
View file @
2a3be7a0
...
...
@@ -74,7 +74,7 @@ if ( UserStaffID()
DrawHeader
(
''
,
SubmitButton
(
_
(
'Cancel Sale'
),
'submit[cancel]'
,
''
)
.
SubmitButton
(
_
(
'Cancel Sale'
),
'submit[cancel]'
,
''
)
.
// No .primary button class.
SubmitButton
(
_
(
'Complete Sale'
),
'submit[save]'
)
);
...
...
plugins/Moodle/Custom/CreateParents.php
View file @
2a3be7a0
...
...
@@ -6,10 +6,10 @@ function core_user_create_users_object()
{
//first, gather the necessary variables
global
$id
,
$username
,
$password
,
$locale
,
$user
,
$students
;
//then, convert variables for the Moodle object:
/*
list of (
list of (
object {
username string //Username policy is defined in Moodle security config. Must be lowercase.
password string //Plain text password consisting of any characters
...
...
@@ -27,18 +27,18 @@ list of (
city string Optional //Home city of the user
country string Optional //Home country code of the user, such as AU or CZ
preferences Optional //User preferences
list of (
list of (
object {
type string //The name of the preference
value string //The value of the preference
}
}
)customfields Optional //User custom fields (also known as user profil fields)
list of (
list of (
object {
type string //The name of the custom field
value string //The value of the custom field
}
)}
}
)}
)
*/
$username
=
mb_strtolower
(
$username
);
...
...
@@ -48,7 +48,7 @@ list of (
$email
=
$students
[
1
][
'EMAIL'
];
$auth
=
'manual'
;
$idnumber
=
(
string
)
$id
;
$users
=
array
(
array
(
'username'
=>
$username
,
...
...
@@ -60,7 +60,7 @@ list of (
'idnumber'
=>
$idnumber
,
)
);
return
array
(
$users
);
}
...
...
@@ -69,20 +69,20 @@ function core_user_create_users_response($response)
{
//first, gather the necessary variables
global
$id
;
//then, save the ID in the moodlexrosario cross-reference table:
/*
Array
Array
(
[0] =>
Array
Array
(
[id] => int
[username] => string
[id] => int
[username] => string
)
)
*/
DBQuery
(
"INSERT INTO MOODLEXROSARIO (
\"
column
\"
, rosario_id, moodle_id) VALUES ('staff_id', '"
.
$id
.
"', "
.
$response
[
0
][
'id'
]
.
")"
);
return
null
;
}
...
...
@@ -93,11 +93,11 @@ function core_role_assign_roles_object()
{
//first, gather the necessary variables
global
$id
,
$student
;
//then, convert variables for the Moodle object:
/*
list of (
list of (
object {
roleid int //Role to assign to the user
userid int //The user that is going to be assigned
...
...
@@ -105,7 +105,7 @@ list of (
contextlevel string Optional //The context level to assign the user role in
(block, course, coursecat, system, user, module)
instanceid int Optional //The Instance id of item where the role needs to be assigned
}
}
)*/
//gather the Moodle user ID
...
...
@@ -142,7 +142,7 @@ list of (
'instanceid'
=>
$instanceid
,
)
);
return
array
(
$assignments
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment