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
1f059165
Commit
1f059165
authored
Jun 28, 2019
by
M. Chardon
Browse files
correction github, strings en dur
parent
e80d57a6
Changes
7
Hide whitespace changes
Inline
Side-by-side
ajax.php
View file @
1f059165
...
...
@@ -254,7 +254,3 @@ if ($action === 'pollconversions') {
echo
json_encode
(
$response
);
die
();
}
/*function getHtmlLink($url, $text) {
return '<a href="' . $url . '">' . $text . '</a>';
}*/
classes/form/axis_form.php
View file @
1f059165
...
...
@@ -36,7 +36,7 @@ class axis_form extends moodleform {
protected
function
definition
()
{
$mform
=
$this
->
_form
;
$mform
->
_formName
=
"tutu"
;
$mform
->
addElement
(
'text'
,
'label'
,
'Nom'
);
// Add elements to your form
$mform
->
addElement
(
'text'
,
'label'
,
get_string
(
'axis_label'
,
"assignfeedback_editpdfplus"
)
);
// Add elements to your form
$mform
->
setType
(
'label'
,
PARAM_TEXT
);
//Set type of element
$mform
->
addElement
(
'hidden'
,
'axeid'
,
''
);
// Add elements to your form
$mform
->
setType
(
'hidden'
,
PARAM_INT
);
//Set type of element
...
...
lang/en/assignfeedback_editpdfplus.php
View file @
1f059165
...
...
@@ -141,7 +141,7 @@ $string['adminaxisexport_ok'] = 'Export as model';
$string
[
'adminaxisexport_ko'
]
=
'Cancel'
;
$string
[
'admintools'
]
=
'Tools'
;
$string
[
'adminaddtool'
]
=
'Add a new tool'
;
$string
[
'admintoolboxaction'
]
=
'Action'
;
$string
[
'admintoolboxaction'
]
=
'Action
s
'
;
$string
[
'admintoolboxtypetool'
]
=
'Tool type'
;
$string
[
'admintoolboxtypetool_type'
]
=
'Type'
;
$string
[
'admintoolboxtoolbardisplay'
]
=
'Toolbar display'
;
...
...
@@ -202,4 +202,6 @@ The assignment correction has been updated.
You can access the document following this link: {$a->url}'
;
$string
[
'delete_model_question'
]
=
'Do you want to delete this model?'
;
$string
[
'feedback_configuration'
]
=
'Feedback: configuration'
;
$string
[
'axis_label'
]
=
'Name'
;
$string
[
'axis_add'
]
=
'Add a new axis'
;
lang/fr/assignfeedback_editpdfplus.php
View file @
1f059165
...
...
@@ -140,7 +140,7 @@ $string['adminaxisexport_ok'] = 'Exporter comme modèle';
$string
[
'adminaxisexport_ko'
]
=
'Annuler'
;
$string
[
'admintools'
]
=
'Outils'
;
$string
[
'adminaddtool'
]
=
'Ajout d\'un nouvel outil'
;
$string
[
'admintoolboxaction'
]
=
'Action'
;
$string
[
'admintoolboxaction'
]
=
'Action
s
'
;
$string
[
'admintoolboxtypetool'
]
=
'Type d\'outil'
;
$string
[
'admintoolboxtypetool_type'
]
=
'Type'
;
$string
[
'admintoolboxtoolbardisplay'
]
=
'Affichage barre d\'outil'
;
...
...
@@ -201,3 +201,6 @@ The assignment correction has been updated.
You can access the document following this link: {$a->url}'
;
$string
[
'delete_model_question'
]
=
'Êtes-vous sûr de vouloir supprimer ce model ?'
;
$string
[
'feedback_configuration'
]
=
'Feedback : configuration'
;
$string
[
'axis_label'
]
=
'Nom'
;
$string
[
'axis_add'
]
=
'Add a new axis'
;
lib.php
View file @
1f059165
...
...
@@ -82,7 +82,7 @@ function assignfeedback_editpdfplus_pluginfile($course, $cm, context $context, $
function
assignfeedback_editpdfplus_extend_navigation_course
(
navigation_node
$navigation
,
stdClass
$course
,
context_course
$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
(
'F
eedback
:
configuration'
,
$url
,
navigation_node
::
TYPE_CUSTOM
,
'Bars d\'outils'
,
'editpdfplusadmin'
,
new
pix_icon
(
'i/grades'
,
""
));
$feedbackadminnode
=
navigation_node
::
create
(
get_string
(
'f
eedback
_
configuration'
,
"assignfeedback_editpdfplus"
),
$url
,
navigation_node
::
TYPE_CUSTOM
,
'Bars d\'outils'
,
'editpdfplusadmin'
,
new
pix_icon
(
'i/grades'
,
""
));
$navigation
->
add_node
(
$feedbackadminnode
);
}
}
...
...
locallib_admin.php
View file @
1f059165
...
...
@@ -121,7 +121,7 @@ class assign_feedback_editpdfplus_admin {
$formAxis
=
new
axis_form
(
null
,
array
(
'id'
=>
$this
->
context
->
id
),
null
,
null
,
array
(
'id'
=>
"assignfeedback_editpdfplus_add_axis"
));
//Form processing and displaying is done here
$formAxis
->
set_data
(
$toform
);
$formAxis
->
id
=
"assignfeedback_editpdfplus_add_axis"
;
$formAxis
->
title
=
"Ajouter un nouvel axe"
;
$formAxis
->
title
=
get_string
(
'axis_add'
,
'assignfeedback_editpdfplus'
)
;
$formAxis
->
action
=
"add"
;
}
$renderer
=
$PAGE
->
get_renderer
(
self
::
PLUGIN_NAME
);
...
...
templates/tool_form.mustache
View file @
1f059165
...
...
@@ -38,7 +38,7 @@
{{#
tool
.
id
}}
<div
id=
"editpdlplus_tool_label"
class=
"btn alert-info"
>
{{
tool
.
label
}}
</div>
{{/
tool
.
id
}}
</td>
<td
style=
"text-align: right;padding-left: 20px;"
>
{{#
str
}}
admintoolboxaction, assignfeedback_editpdfplus
{{/
str
}}
{{#
tool
.
id
}}
s
{{/
tool
.
id
}}
:
{{#
str
}}
admintoolboxaction, assignfeedback_editpdfplus
{{/
str
}}
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn"
id=
"toolFormSubmit"
><i
class=
"fa fa-
{{#
tool
.
id
}}
save
{{/
tool
.
id
}}{{^
tool
.
id
}}
save
{{/
tool
.
id
}}
"
aria-hidden=
"true"
></i></button>
{{#
tool
.
id
}}
...
...
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