Gitlab CSE Unil
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
M. Chardon
moodle-assignfeedback_editpdfplus
Commits
a6f55f4e
Commit
a6f55f4e
authored
Jun 17, 2019
by
M. Chardon
Browse files
correction bug:
- creation new tool (display canevas) - menu access for configuration
parent
11e3d7f4
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
amd/build/admin_panel.min.js
View file @
a6f55f4e
This diff is collapsed.
Click to expand it.
amd/src/admin_panel.js
View file @
a6f55f4e
...
...
@@ -781,7 +781,6 @@ define(['jquery', 'jqueryui', 'core/notification', 'core/templates', 'core/fragm
.
done
(
function
(
html
,
js
)
{
fillResultAjax
(
$
(
'
#editpdlplus_tool_item
'
),
html
,
js
)
.
done
(
function
()
{
$
(
"
#canevas
"
).
hide
();
$
(
"
#toolaxis
"
).
val
(
axeid
);
if
(
action
===
"
clone
"
)
{
$
(
"
#toolaxis
"
).
val
(
currentTool
.
axis
);
...
...
@@ -808,7 +807,7 @@ define(['jquery', 'jqueryui', 'core/notification', 'core/templates', 'core/fragm
currentTool
.
cartridgeColor
=
typetoolEntity
.
get_color_cartridge
();
$
(
"
#color
"
).
val
(
currentTool
.
colors
);
$
(
"
#cartridgecolor
"
).
val
(
currentTool
.
cartridgeColor
);
initToolDisplay
();
AdminPanel
.
prototype
.
refreshPrevisu
();
});
$
(
"
#typetool
"
).
change
();
}
...
...
db/install.php
View file @
a6f55f4e
...
...
@@ -61,6 +61,7 @@ function xmldb_assignfeedback_editpdfplus_install() {
$tytool1b
->
color
=
"red"
;
$tytool1b
->
contextid
=
1
;
$tytool1b
->
label
=
"lineplus"
;
$tytool1b
->
configurable
=
0
;
$tytool2
=
new
assignfeedback_editpdfplus\bdd\type_tool
();
$tytool2
->
cartridge_color
=
null
;
$tytool2
->
cartridge_x
=
null
;
...
...
@@ -68,6 +69,10 @@ function xmldb_assignfeedback_editpdfplus_install() {
$tytool2
->
color
=
"red"
;
$tytool2
->
contextid
=
1
;
$tytool2
->
label
=
"stampplus"
;
$tytool2
->
configurable_cartridge
=
0
;
$tytool2
->
configurable_cartridge_color
=
0
;
$tytool2
->
configurable_texts
=
0
;
$tytool2
->
configurable_question
=
0
;
$tytool3
=
new
assignfeedback_editpdfplus\bdd\type_tool
();
$tytool3
->
cartridge_color
=
null
;
$tytool3
->
cartridge_x
=
5
;
...
...
@@ -75,6 +80,8 @@ function xmldb_assignfeedback_editpdfplus_install() {
$tytool3
->
color
=
"#FF0000"
;
$tytool3
->
contextid
=
1
;
$tytool3
->
label
=
"frame"
;
$tytool3
->
configurable_cartridge_color
=
0
;
$tytool3
->
configurable_color
=
0
;
$tytool4
=
new
assignfeedback_editpdfplus\bdd\type_tool
();
$tytool4
->
cartridge_color
=
"#0000FF"
;
$tytool4
->
cartridge_x
=
5
;
...
...
@@ -89,6 +96,7 @@ function xmldb_assignfeedback_editpdfplus_install() {
$tytool5
->
color
=
"#000099"
;
$tytool5
->
contextid
=
1
;
$tytool5
->
label
=
"stampcomment"
;
$tytool5
->
configurable_color
=
0
;
$tytool6
=
new
assignfeedback_editpdfplus\bdd\type_tool
();
$tytool6
->
cartridge_color
=
"#000000"
;
$tytool6
->
cartridge_x
=
null
;
...
...
@@ -96,6 +104,8 @@ function xmldb_assignfeedback_editpdfplus_install() {
$tytool6
->
color
=
null
;
$tytool6
->
contextid
=
1
;
$tytool6
->
label
=
"commentplus"
;
$tytool6
->
configurable_texts
=
0
;
$tytool6
->
configurable_color
=
0
;
$tytool7
=
new
assignfeedback_editpdfplus\bdd\type_tool
();
$tytool7
->
cartridge_color
=
null
;
$tytool7
->
cartridge_x
=
null
;
...
...
@@ -103,6 +113,7 @@ function xmldb_assignfeedback_editpdfplus_install() {
$tytool7
->
color
=
null
;
$tytool7
->
contextid
=
1
;
$tytool7
->
label
=
"pen"
;
$tytool7
->
configurable
=
0
;
$tytool8
=
new
assignfeedback_editpdfplus\bdd\type_tool
();
$tytool8
->
cartridge_color
=
null
;
$tytool8
->
cartridge_x
=
null
;
...
...
@@ -110,6 +121,7 @@ function xmldb_assignfeedback_editpdfplus_install() {
$tytool8
->
color
=
null
;
$tytool8
->
contextid
=
1
;
$tytool8
->
label
=
"line"
;
$tytool8
->
configurable
=
0
;
$tytool9
=
new
assignfeedback_editpdfplus\bdd\type_tool
();
$tytool9
->
cartridge_color
=
null
;
$tytool9
->
cartridge_x
=
null
;
...
...
@@ -117,6 +129,7 @@ function xmldb_assignfeedback_editpdfplus_install() {
$tytool9
->
color
=
null
;
$tytool9
->
contextid
=
1
;
$tytool9
->
label
=
"rectangle"
;
$tytool9
->
configurable
=
0
;
$tytool10
=
new
assignfeedback_editpdfplus\bdd\type_tool
();
$tytool10
->
cartridge_color
=
null
;
$tytool10
->
cartridge_x
=
null
;
...
...
@@ -124,6 +137,7 @@ function xmldb_assignfeedback_editpdfplus_install() {
$tytool10
->
color
=
null
;
$tytool10
->
contextid
=
1
;
$tytool10
->
label
=
"oval"
;
$tytool10
->
configurable
=
0
;
$tytool11
=
new
assignfeedback_editpdfplus\bdd\type_tool
();
$tytool11
->
cartridge_color
=
null
;
$tytool11
->
cartridge_x
=
null
;
...
...
@@ -131,7 +145,8 @@ function xmldb_assignfeedback_editpdfplus_install() {
$tytool11
->
color
=
null
;
$tytool11
->
contextid
=
1
;
$tytool11
->
label
=
"highlight"
;
$tytools
=
array
(
$tytool1
,
$tytool1b
,
$tytool2
,
$tytool3
,
$tytool4
,
$tytool5
,
$tytool6
,
$tytool7
,
$tytool8
,
$tytool9
,
$tytool10
,
$tytool11
);
$tytool11
->
configurable
=
0
;
$tytools
=
array
(
$tytool1
,
$tytool1b
,
$tytool2
,
$tytool3
,
$tytool4
,
$tytool5
,
$tytool6
,
$tytool7
,
$tytool8
,
$tytool9
,
$tytool10
,
$tytool11
);
$DB
->
insert_records
(
'assignfeedback_editpp_typet'
,
$tytools
);
//tools
$tool1
=
new
assignfeedback_editpdfplus\bdd\tool
();
...
...
lib.php
View file @
a6f55f4e
...
...
@@ -80,7 +80,7 @@ function assignfeedback_editpdfplus_pluginfile($course, $cm, context $context, $
* @param context_course $context
*/
function
assignfeedback_editpdfplus_extend_navigation_course
(
navigation_node
$navigation
,
stdClass
$course
,
context_course
$context
)
{
if
(
has_capability
(
'assignfeedback/editpdfplus:use'
,
$context
,
null
,
false
)
&&
has_capability
(
'assignfeedback/editpdfplus:managetools'
,
$context
))
{
if
(
has_capability
(
'assignfeedback/editpdfplus:managetools'
,
$context
))
{
$url
=
new
moodle_url
(
'/mod/assign/feedback/editpdfplus/view_admin.php'
,
array
(
'id'
=>
$context
->
id
));
$feedbackadminnode
=
navigation_node
::
create
(
'Feedback : configuration'
,
$url
,
navigation_node
::
TYPE_CUSTOM
,
'Bars d\'outils'
,
'editpdfplusadmin'
,
new
pix_icon
(
'i/grades'
,
""
));
$navigation
->
add_node
(
$feedbackadminnode
);
...
...
Write
Preview
Supports
Markdown
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