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
59c15876
Commit
59c15876
authored
Jul 12, 2017
by
M. Chardon
Browse files
internationalisation des titres et libellés
parent
7113edc3
Changes
7
Hide whitespace changes
Inline
Side-by-side
amd/build/admin_panel.min.js
View file @
59c15876
define
([
"
jquery
"
,
"
core/notification
"
,
"
core/templates
"
,
"
core/fragment
"
,
"
core/ajax
"
],
function
(
a
,
b
,
c
,
d
,
e
){
var
f
=
null
,
g
=
null
,
h
=
null
,
i
=
function
(
a
){
this
.
init
(),
f
=
a
};
i
.
prototype
.
selectTool
=
null
,
i
.
prototype
.
init
=
function
(){
a
(
"
#editpdlplus_axes
"
).
on
(
"
change
"
,
function
(){
a
(
"
.toolbar
"
).
hide
();
var
b
=
a
(
"
#editpdlplus_axes
"
).
val
();
a
(
"
#editpdlplus_toolbar_
"
+
b
).
show
();
var
c
=
a
(
"
#editpdlplus_axes option:selected
"
).
data
(
"
delete
"
);
c
&&
parseInt
(
c
)
>
0
?
a
(
"
#assignfeedback_editpdfplus_widget_admin_button_delaxis
"
).
addClass
(
"
disabled
"
):
a
(
"
#assignfeedback_editpdfplus_widget_admin_button_delaxis
"
).
removeClass
(
"
disabled
"
)}),
a
(
"
#editpdlplus_axes
"
).
change
(),
a
(
"
.editpdlplus_tool
"
).
on
(
"
click
"
,
k
),
this
.
selectTool
=
a
(
"
.editpdlplus_tool
"
).
first
(),
this
.
initTool
(),
a
(
"
#assignfeedback_editpdfplus_widget_admin_button_addaxis
"
).
on
(
"
click
"
,
this
.
openDivAddAxis
),
a
(
"
#assignfeedback_editpdfplus_widget_admin_button_editaxis
"
).
on
(
"
click
"
,
this
.
openDivEditAxis
),
a
(
"
#assignfeedback_editpdfplus_widget_admin_button_delaxis
"
).
on
(
"
click
"
,
this
.
openDivDelAxis
),
a
(
"
#assignfeedback_editpdfplus_widget_admin_button_addtool
"
).
on
(
"
click
"
,
this
.
openDivAddTool
)},
i
.
prototype
.
test
=
function
(){
alert
(
"
test
"
),
k
()},
i
.
prototype
.
initTool
=
function
(){
a
(
this
.
selectTool
).
removeClass
(
"
btn-default
"
),
a
(
this
.
selectTool
).
addClass
(
"
btn-primary
"
)},
i
.
prototype
.
openDivAddAxis
=
function
(){
a
(
"
#axistool
"
).
hide
(),
a
(
"
#assignfeedback_editpdfplus_widget_admin_div_addaxis
"
).
show
(),
a
(
"
#assignfeedback_editpdfplus_widget_admin_div_addaxis > .panel-body
"
).
html
(
""
);
var
e
=
{};
d
.
loadFragment
(
"
assignfeedback_editpdfplus
"
,
"
axisadd
"
,
f
,
e
).
done
(
function
(
a
,
b
){
c
.
appendNodeContents
(
"
#assignfeedback_editpdfplus_widget_admin_div_addaxis > .panel-body
"
,
a
,
b
)}.
bind
(
this
)).
fail
(
b
.
exception
)},
i
.
prototype
.
openDivEditAxis
=
function
(){
a
(
"
#axistool
"
).
hide
(),
a
(
"
#assignfeedback_editpdfplus_widget_admin_div_editaxis
"
).
show
(),
a
(
"
#assignfeedback_editpdfplus_widget_admin_div_editaxis > .panel-body
"
).
html
(
""
);
var
e
=
a
(
"
#editpdlplus_axes option:selected
"
).
val
(),
g
=
{
axeid
:
e
};
d
.
loadFragment
(
"
assignfeedback_editpdfplus
"
,
"
axisedit
"
,
f
,
g
).
done
(
function
(
a
,
b
){
c
.
appendNodeContents
(
"
#assignfeedback_editpdfplus_widget_admin_div_editaxis > .panel-body
"
,
a
,
b
)}.
bind
(
this
)).
fail
(
b
.
exception
)},
i
.
prototype
.
openDivDelAxis
=
function
(){
a
(
"
#axistool
"
).
hide
(),
a
(
"
#assignfeedback_editpdfplus_widget_admin_div_delaxis
"
).
show
(),
a
(
"
#assignfeedback_editpdfplus_widget_admin_div_delaxis > .panel-body
"
).
html
(
""
);
var
e
=
a
(
"
#editpdlplus_axes option:selected
"
).
val
(),
g
=
{
axeid
:
e
};
d
.
loadFragment
(
"
assignfeedback_editpdfplus
"
,
"
axisdel
"
,
f
,
g
).
done
(
function
(
a
,
b
){
c
.
appendNodeContents
(
"
#assignfeedback_editpdfplus_widget_admin_div_delaxis > .panel-body
"
,
a
,
b
)}.
bind
(
this
)).
fail
(
b
.
exception
)};
var
j
=
function
(
b
,
d
,
e
){
var
f
=
a
.
Deferred
();
return
b
.
fadeOut
(
"
fast
"
,
function
(){
c
.
replaceNodeContents
(
b
,
d
,
e
),
b
.
fadeIn
(
"
fast
"
,
function
(){
f
.
resolve
()})}),
f
.
promise
()},
k
=
function
(){
var
c
=
a
(
this
).
val
();
a
(
"
.editpdlplus_tool
"
).
each
(
function
(){
a
(
this
).
removeClass
(
"
btn-primary
"
),
a
(
this
).
removeClass
(
"
btn-default
"
);
var
b
=
a
(
this
).
data
(
"
enable
"
);
1
===
b
&&
a
(
this
).
val
()
!==
c
&&
a
(
this
).
addClass
(
"
btn-default
"
)}),
a
(
this
).
addClass
(
"
btn-primary
"
),
a
(
"
#editpdlplus_tool_item
"
).
html
(
""
);
var
i
=
{
toolid
:
c
};
d
.
loadFragment
(
"
assignfeedback_editpdfplus
"
,
"
tooledit
"
,
f
,
i
).
done
(
function
(
c
,
d
){
j
(
a
(
"
#editpdlplus_tool_item
"
),
c
,
d
).
done
(
function
(){
a
(
"
#toolFormSubmit
"
).
on
(
"
click
"
,
function
(){
var
c
=
a
(
"
#assignfeedback_editpdfplus_edit_tool
"
),
d
=
c
.
serialize
();
e
.
call
([{
methodname
:
"
assignfeedback_editpdfplus_submit_tool_edit_form
"
,
args
:{
jsonformdata
:
JSON
.
stringify
(
d
)}}])[
0
].
done
(
function
(
b
){
if
(
""
===
b
[
0
].
message
){
a
(
"
#message_edit_tool
"
).
html
(
"
Modifications enregistrées
"
),
a
(
"
#message_edit_tool
"
).
addClass
(
"
alert-success
"
),
a
(
"
#message_edit_tool
"
).
removeClass
(
"
alert-danger
"
),
a
(
"
#editpdlplus_toolbar_
"
+
b
[
0
].
axeid
).
html
(
""
);
for
(
var
c
=
0
;
c
<
b
.
length
;
c
++
){
var
d
=
"
btn-default
"
;
1
!==
b
[
c
].
enable
&&
(
d
=
""
),
b
[
c
].
toolid
===
b
[
c
].
selecttool
&&
(
d
=
"
btn-primary
"
);
var
e
=
""
;
4
!==
b
[
c
].
typetool
&&
1
!==
b
[
c
].
typetool
||
(
e
=
"
text-decoration: underline;
"
);
var
f
=
b
[
c
].
button
;
4
!==
b
[
c
].
typetool
&&
5
!==
b
[
c
].
typetool
||
(
f
=
"
|
"
+
f
,
4
===
b
[
c
].
typetool
&&
(
f
+=
"
|
"
));
var
g
=
"
<button class='btn
"
+
d
+
"
editpdlplus_tool' id='editpdlplus_tool_
"
+
b
[
c
].
toolid
+
"
' style='
"
+
e
+
"
' value='
"
+
b
[
c
].
toolid
+
"
' data-enable='
"
+
b
[
c
].
enable
+
"
'>
"
+
f
+
"
</button>
"
;
a
(
"
#editpdlplus_toolbar_
"
+
b
[
0
].
axeid
).
append
(
g
)}
a
(
"
.editpdlplus_tool
"
).
on
(
"
click
"
,
k
)}
else
a
(
"
#message_edit_tool
"
).
html
(
b
[
0
].
message
),
a
(
"
#message_edit_tool
"
).
addClass
(
"
alert-danger
"
),
a
(
"
#message_edit_tool
"
).
removeClass
(
"
alert-success
"
)}).
fail
(
b
.
exception
)}),
a
(
"
#toolEnabled
"
).
on
(
"
click
"
,
function
(){
var
b
=
a
(
"
#toolenabled
"
).
val
();
1
==
b
?(
a
(
"
#toolEnabled > i
"
).
addClass
(
"
fa-eye-slash
"
),
a
(
"
#toolEnabled > i
"
).
removeClass
(
"
fa-eye
"
),
a
(
"
#toolenabled
"
).
val
(
0
)):(
a
(
"
#toolEnabled > i
"
).
addClass
(
"
fa-eye
"
),
a
(
"
#toolEnabled > i
"
).
removeClass
(
"
fa-eye-slash
"
),
a
(
"
#toolenabled
"
).
val
(
1
)),
a
(
"
#toolFormSubmit
"
).
click
()}),
a
(
"
#toolClone
"
).
on
(
"
click
"
,
function
(){
h
=
"
clone
"
,
g
=
new
Object
,
g
.
typetool
=
a
(
"
#typetool
"
).
val
(),
g
.
color
=
a
(
"
#color
"
).
val
(),
g
.
libelle
=
a
(
"
#libelle
"
).
val
(),
g
.
catridgecolor
=
a
(
"
#catridgecolor
"
).
val
(),
g
.
texts
=
a
(
"
#texts
"
).
val
(),
g
.
button
=
a
(
"
#button
"
).
val
(),
g
.
enabled
=
a
(
"
#enabled
"
).
val
(),
g
.
reply
=
a
(
"
#reply
"
).
val
(),
g
.
order
=
a
(
"
#order
"
).
val
(),
a
(
"
#assignfeedback_editpdfplus_widget_admin_button_addtool
"
).
click
()}),
a
(
"
#toolRemove
"
).
on
(
"
click
"
,
function
(){
if
(
!
a
(
this
).
hasClass
(
"
disabled
"
)){
var
c
=
a
(
"
#assignfeedback_editpdfplus_edit_tool
"
),
d
=
c
.
serialize
();
e
.
call
([{
methodname
:
"
assignfeedback_editpdfplus_submit_tool_del_form
"
,
args
:{
jsonformdata
:
JSON
.
stringify
(
d
)}}])[
0
].
done
(
function
(
b
){
if
(
""
===
b
[
0
].
message
){
a
(
"
#message_edit_tool
"
).
html
(
"
Outil supprimé
"
),
a
(
"
#message_edit_tool
"
).
addClass
(
"
alert-success
"
),
a
(
"
#message_edit_tool
"
).
removeClass
(
"
alert-danger
"
),
a
(
"
#editpdlplus_toolbar_
"
+
b
[
0
].
axeid
).
html
(
""
);
for
(
var
c
=
0
;
c
<
b
.
length
;
c
++
){
var
d
=
"
btn-default
"
;
1
!==
b
[
c
].
enable
&&
(
d
=
""
),
b
[
c
].
toolid
===
b
[
c
].
selecttool
&&
(
d
=
"
btn-primary
"
);
var
e
=
""
;
4
!==
b
[
c
].
typetool
&&
1
!==
b
[
c
].
typetool
||
(
e
=
"
text-decoration: underline;
"
);
var
f
=
b
[
c
].
button
;
4
!==
b
[
c
].
typetool
&&
5
!==
b
[
c
].
typetool
||
(
f
=
"
|
"
+
f
,
4
===
b
[
c
].
typetool
&&
(
f
+=
"
|
"
));
var
g
=
"
<button class='btn
"
+
d
+
"
editpdlplus_tool' id='editpdlplus_tool_
"
+
b
[
c
].
toolid
+
"
' style='
"
+
e
+
"
' value='
"
+
b
[
c
].
toolid
+
"
' data-enable='
"
+
b
[
c
].
enable
+
"
'>
"
+
f
+
"
</button>
"
;
a
(
"
#editpdlplus_toolbar_
"
+
b
[
0
].
axeid
).
append
(
g
)}
a
(
"
.editpdlplus_tool
"
).
on
(
"
click
"
,
k
),
a
(
"
#toolworkspace
"
).
html
(
""
)}
else
a
(
"
#message_edit_tool
"
).
html
(
b
[
0
].
message
),
a
(
"
#message_edit_tool
"
).
addClass
(
"
alert-danger
"
),
a
(
"
#message_edit_tool
"
).
removeClass
(
"
alert-success
"
)}).
fail
(
b
.
exception
)}})}.
bind
(
this
)).
fail
(
b
.
exception
)}.
bind
(
this
)).
fail
(
b
.
exception
)};
return
i
.
prototype
.
openDivAddTool
=
function
(){
a
(
"
#editpdlplus_tool_item
"
).
html
(
""
),
a
(
"
.btn-primary
"
).
addClass
(
"
btn-default
"
),
a
(
"
.editpdlplus_tool
"
).
removeClass
(
"
btn-primary
"
);
var
c
=
a
(
"
#editpdlplus_axes option:selected
"
).
val
(),
i
=
{
axisid
:
c
};
d
.
loadFragment
(
"
assignfeedback_editpdfplus
"
,
"
tooladd
"
,
f
,
i
).
done
(
function
(
c
,
d
){
j
(
a
(
"
#editpdlplus_tool_item
"
),
c
,
d
).
done
(
function
(){
"
clone
"
===
h
&&
(
a
(
"
#typetool
"
).
val
(
g
.
typetool
),
a
(
"
#color
"
).
val
(
g
.
color
),
a
(
"
#libelle
"
).
val
(
g
.
libelle
),
a
(
"
#catridgecolor
"
).
val
(
g
.
catridgecolor
),
a
(
"
#texts
"
).
val
(
g
.
texts
),
a
(
"
#button
"
).
val
(
g
.
button
),
a
(
"
#enabled
"
).
val
(
g
.
enabled
),
a
(
"
#reply
"
).
val
(
g
.
reply
),
a
(
"
#order
"
).
val
(
g
.
order
),
g
=
null
,
h
=
null
),
a
(
"
#toolFormSubmit
"
).
on
(
"
click
"
,
function
(){
var
c
=
a
(
"
#assignfeedback_editpdfplus_edit_tool
"
),
d
=
c
.
serialize
();
e
.
call
([{
methodname
:
"
assignfeedback_editpdfplus_submit_tool_add_form
"
,
args
:{
jsonformdata
:
JSON
.
stringify
(
d
)}}])[
0
].
done
(
function
(
b
){
if
(
""
===
b
[
0
].
message
){
a
(
"
#message_edit_tool
"
).
html
(
"
Ajout enregistré
"
),
a
(
"
#message_edit_tool
"
).
addClass
(
"
alert-success
"
),
a
(
"
#message_edit_tool
"
).
removeClass
(
"
alert-danger
"
),
a
(
"
#editpdlplus_toolbar_
"
+
b
[
0
].
axeid
).
html
(
""
);
for
(
var
c
=
0
;
c
<
b
.
length
;
c
++
){
var
d
=
"
btn-default
"
;
1
!==
b
[
c
].
enable
&&
(
d
=
""
),
b
[
c
].
toolid
===
b
[
c
].
selecttool
&&
(
d
=
"
btn-primary
"
);
var
e
=
""
;
4
!==
b
[
c
].
typetool
&&
1
!==
b
[
c
].
typetool
||
(
e
=
"
text-decoration: underline;
"
);
var
f
=
b
[
c
].
button
;
4
!==
b
[
c
].
typetool
&&
5
!==
b
[
c
].
typetool
||
(
f
=
"
|
"
+
f
,
4
===
b
[
c
].
typetool
&&
(
f
+=
"
|
"
));
var
g
=
"
<button class='btn
"
+
d
+
"
editpdlplus_tool' id='editpdlplus_tool_
"
+
b
[
c
].
toolid
+
"
' style='
"
+
e
+
"
' value='
"
+
b
[
c
].
toolid
+
"
' data-enable='
"
+
b
[
c
].
enable
+
"
'>
"
+
f
+
"
</button>
"
;
a
(
"
#editpdlplus_toolbar_
"
+
b
[
0
].
axeid
).
append
(
g
)}
a
(
"
.editpdlplus_tool
"
).
on
(
"
click
"
,
k
),
a
(
"
#editpdlplus_tool_item
"
).
html
(
""
)}
else
a
(
"
#message_edit_tool
"
).
html
(
b
[
0
].
message
),
a
(
"
#message_edit_tool
"
).
addClass
(
"
alert-danger
"
),
a
(
"
#message_edit_tool
"
).
removeClass
(
"
alert-success
"
)}).
fail
(
b
.
exception
)})}.
bind
(
this
)).
fail
(
b
.
exception
)}.
bind
(
this
)).
fail
(
b
.
exception
)},
i
});
\ No newline at end of file
define
([
"
jquery
"
,
"
core/notification
"
,
"
core/templates
"
,
"
core/fragment
"
,
"
core/ajax
"
,
"
core/str
"
],
function
(
a
,
b
,
c
,
d
,
e
,
f
){
var
g
=
null
,
h
=
null
,
i
=
null
,
j
=
function
(
a
){
this
.
init
(),
g
=
a
};
j
.
prototype
.
selectTool
=
null
,
j
.
prototype
.
init
=
function
(){
a
(
"
#editpdlplus_axes
"
).
on
(
"
change
"
,
function
(){
a
(
"
.toolbar
"
).
hide
();
var
b
=
a
(
"
#editpdlplus_axes
"
).
val
();
a
(
"
#editpdlplus_toolbar_
"
+
b
).
show
();
var
c
=
a
(
"
#editpdlplus_axes option:selected
"
).
data
(
"
delete
"
);
c
&&
parseInt
(
c
)
>
0
?
a
(
"
#assignfeedback_editpdfplus_widget_admin_button_delaxis
"
).
addClass
(
"
disabled
"
):
a
(
"
#assignfeedback_editpdfplus_widget_admin_button_delaxis
"
).
removeClass
(
"
disabled
"
)}),
a
(
"
#editpdlplus_axes
"
).
change
(),
a
(
"
.editpdlplus_tool
"
).
on
(
"
click
"
,
l
),
this
.
selectTool
=
a
(
"
.editpdlplus_tool
"
).
first
(),
this
.
initTool
(),
a
(
"
#assignfeedback_editpdfplus_widget_admin_button_addaxis
"
).
on
(
"
click
"
,
this
.
openDivAddAxis
),
a
(
"
#assignfeedback_editpdfplus_widget_admin_button_editaxis
"
).
on
(
"
click
"
,
this
.
openDivEditAxis
),
a
(
"
#assignfeedback_editpdfplus_widget_admin_button_delaxis
"
).
on
(
"
click
"
,
this
.
openDivDelAxis
),
a
(
"
#assignfeedback_editpdfplus_widget_admin_button_addtool
"
).
on
(
"
click
"
,
this
.
openDivAddTool
)},
j
.
prototype
.
test
=
function
(){
alert
(
"
test
"
),
l
()},
j
.
prototype
.
initTool
=
function
(){
a
(
this
.
selectTool
).
removeClass
(
"
btn-default
"
),
a
(
this
.
selectTool
).
addClass
(
"
btn-primary
"
)},
j
.
prototype
.
openDivAddAxis
=
function
(){
a
(
"
#axistool
"
).
hide
(),
a
(
"
#assignfeedback_editpdfplus_widget_admin_div_addaxis
"
).
show
(),
a
(
"
#assignfeedback_editpdfplus_widget_admin_div_addaxis > .panel-body
"
).
html
(
""
);
var
e
=
{};
d
.
loadFragment
(
"
assignfeedback_editpdfplus
"
,
"
axisadd
"
,
g
,
e
).
done
(
function
(
a
,
b
){
c
.
appendNodeContents
(
"
#assignfeedback_editpdfplus_widget_admin_div_addaxis > .panel-body
"
,
a
,
b
)}.
bind
(
this
)).
fail
(
b
.
exception
)},
j
.
prototype
.
openDivEditAxis
=
function
(){
a
(
"
#axistool
"
).
hide
(),
a
(
"
#assignfeedback_editpdfplus_widget_admin_div_editaxis
"
).
show
(),
a
(
"
#assignfeedback_editpdfplus_widget_admin_div_editaxis > .panel-body
"
).
html
(
""
);
var
e
=
a
(
"
#editpdlplus_axes option:selected
"
).
val
(),
f
=
{
axeid
:
e
};
d
.
loadFragment
(
"
assignfeedback_editpdfplus
"
,
"
axisedit
"
,
g
,
f
).
done
(
function
(
a
,
b
){
c
.
appendNodeContents
(
"
#assignfeedback_editpdfplus_widget_admin_div_editaxis > .panel-body
"
,
a
,
b
)}.
bind
(
this
)).
fail
(
b
.
exception
)},
j
.
prototype
.
openDivDelAxis
=
function
(){
a
(
"
#axistool
"
).
hide
(),
a
(
"
#assignfeedback_editpdfplus_widget_admin_div_delaxis
"
).
show
(),
a
(
"
#assignfeedback_editpdfplus_widget_admin_div_delaxis > .panel-body
"
).
html
(
""
);
var
e
=
a
(
"
#editpdlplus_axes option:selected
"
).
val
(),
f
=
{
axeid
:
e
};
d
.
loadFragment
(
"
assignfeedback_editpdfplus
"
,
"
axisdel
"
,
g
,
f
).
done
(
function
(
a
,
b
){
c
.
appendNodeContents
(
"
#assignfeedback_editpdfplus_widget_admin_div_delaxis > .panel-body
"
,
a
,
b
)}.
bind
(
this
)).
fail
(
b
.
exception
)};
var
k
=
function
(
b
,
d
,
e
){
var
f
=
a
.
Deferred
();
return
b
.
fadeOut
(
"
fast
"
,
function
(){
c
.
replaceNodeContents
(
b
,
d
,
e
),
b
.
fadeIn
(
"
fast
"
,
function
(){
f
.
resolve
()})}),
f
.
promise
()},
l
=
function
(){
var
c
=
f
.
get_string
(
"
admindeltool_messageok
"
,
"
assignfeedback_editpdfplus
"
),
j
=
a
(
this
).
val
();
a
(
"
.editpdlplus_tool
"
).
each
(
function
(){
a
(
this
).
removeClass
(
"
btn-primary
"
),
a
(
this
).
removeClass
(
"
btn-default
"
);
var
b
=
a
(
this
).
data
(
"
enable
"
);
1
===
b
&&
a
(
this
).
val
()
!==
j
&&
a
(
this
).
addClass
(
"
btn-default
"
)}),
a
(
this
).
addClass
(
"
btn-primary
"
),
a
(
"
#editpdlplus_tool_item
"
).
html
(
""
);
var
m
=
{
toolid
:
j
};
d
.
loadFragment
(
"
assignfeedback_editpdfplus
"
,
"
tooledit
"
,
g
,
m
).
done
(
function
(
d
,
f
){
k
(
a
(
"
#editpdlplus_tool_item
"
),
d
,
f
).
done
(
function
(){
a
(
"
#toolFormSubmit
"
).
on
(
"
click
"
,
function
(){
var
c
=
a
(
"
#assignfeedback_editpdfplus_edit_tool
"
),
d
=
c
.
serialize
();
e
.
call
([{
methodname
:
"
assignfeedback_editpdfplus_submit_tool_edit_form
"
,
args
:{
jsonformdata
:
JSON
.
stringify
(
d
)}}])[
0
].
done
(
function
(
b
){
if
(
""
===
b
[
0
].
message
){
a
(
"
#message_edit_tool
"
).
html
(
"
Modifications enregistrées
"
),
a
(
"
#message_edit_tool
"
).
addClass
(
"
alert-success
"
),
a
(
"
#message_edit_tool
"
).
removeClass
(
"
alert-danger
"
),
a
(
"
#editpdlplus_toolbar_
"
+
b
[
0
].
axeid
).
html
(
""
);
for
(
var
c
=
0
;
c
<
b
.
length
;
c
++
){
var
d
=
"
btn-default
"
;
1
!==
b
[
c
].
enable
&&
(
d
=
""
),
b
[
c
].
toolid
===
b
[
c
].
selecttool
&&
(
d
=
"
btn-primary
"
);
var
e
=
""
;
4
!==
b
[
c
].
typetool
&&
1
!==
b
[
c
].
typetool
||
(
e
=
"
text-decoration: underline;
"
);
var
f
=
b
[
c
].
button
;
4
!==
b
[
c
].
typetool
&&
5
!==
b
[
c
].
typetool
||
(
f
=
"
|
"
+
f
,
4
===
b
[
c
].
typetool
&&
(
f
+=
"
|
"
));
var
g
=
"
<button class='btn
"
+
d
+
"
editpdlplus_tool' id='editpdlplus_tool_
"
+
b
[
c
].
toolid
+
"
' style='
"
+
e
+
"
' value='
"
+
b
[
c
].
toolid
+
"
' data-enable='
"
+
b
[
c
].
enable
+
"
'>
"
+
f
+
"
</button>
"
;
a
(
"
#editpdlplus_toolbar_
"
+
b
[
0
].
axeid
).
append
(
g
)}
a
(
"
.editpdlplus_tool
"
).
on
(
"
click
"
,
l
)}
else
a
(
"
#message_edit_tool
"
).
html
(
b
[
0
].
message
),
a
(
"
#message_edit_tool
"
).
addClass
(
"
alert-danger
"
),
a
(
"
#message_edit_tool
"
).
removeClass
(
"
alert-success
"
)}).
fail
(
b
.
exception
)}),
a
(
"
#toolEnabled
"
).
on
(
"
click
"
,
function
(){
var
b
=
a
(
"
#toolenabled
"
).
val
();
1
==
b
?(
a
(
"
#toolEnabled > i
"
).
addClass
(
"
fa-eye-slash
"
),
a
(
"
#toolEnabled > i
"
).
removeClass
(
"
fa-eye
"
),
a
(
"
#toolenabled
"
).
val
(
0
)):(
a
(
"
#toolEnabled > i
"
).
addClass
(
"
fa-eye
"
),
a
(
"
#toolEnabled > i
"
).
removeClass
(
"
fa-eye-slash
"
),
a
(
"
#toolenabled
"
).
val
(
1
)),
a
(
"
#toolFormSubmit
"
).
click
()}),
a
(
"
#toolClone
"
).
on
(
"
click
"
,
function
(){
i
=
"
clone
"
,
h
=
new
Object
,
h
.
typetool
=
a
(
"
#typetool
"
).
val
(),
h
.
color
=
a
(
"
#color
"
).
val
(),
h
.
libelle
=
a
(
"
#libelle
"
).
val
(),
h
.
catridgecolor
=
a
(
"
#catridgecolor
"
).
val
(),
h
.
texts
=
a
(
"
#texts
"
).
val
(),
h
.
button
=
a
(
"
#button
"
).
val
(),
h
.
enabled
=
a
(
"
#enabled
"
).
val
(),
h
.
reply
=
a
(
"
#reply
"
).
val
(),
h
.
order
=
a
(
"
#order
"
).
val
(),
a
(
"
#assignfeedback_editpdfplus_widget_admin_button_addtool
"
).
click
()}),
a
(
"
#toolRemove
"
).
on
(
"
click
"
,
function
(){
if
(
!
a
(
this
).
hasClass
(
"
disabled
"
)){
var
d
=
a
(
"
#assignfeedback_editpdfplus_edit_tool
"
),
f
=
d
.
serialize
();
e
.
call
([{
methodname
:
"
assignfeedback_editpdfplus_submit_tool_del_form
"
,
args
:{
jsonformdata
:
JSON
.
stringify
(
f
)}}])[
0
].
done
(
function
(
b
){
if
(
""
===
b
[
0
].
message
){
a
(
"
#message_edit_tool
"
).
html
(
c
),
a
(
"
#message_edit_tool
"
).
addClass
(
"
alert-success
"
),
a
(
"
#message_edit_tool
"
).
removeClass
(
"
alert-danger
"
),
a
(
"
#editpdlplus_toolbar_
"
+
b
[
0
].
axeid
).
html
(
""
);
for
(
var
d
=
0
;
d
<
b
.
length
;
d
++
){
var
e
=
"
btn-default
"
;
1
!==
b
[
d
].
enable
&&
(
e
=
""
),
b
[
d
].
toolid
===
b
[
d
].
selecttool
&&
(
e
=
"
btn-primary
"
);
var
f
=
""
;
4
!==
b
[
d
].
typetool
&&
1
!==
b
[
d
].
typetool
||
(
f
=
"
text-decoration: underline;
"
);
var
g
=
b
[
d
].
button
;
4
!==
b
[
d
].
typetool
&&
5
!==
b
[
d
].
typetool
||
(
g
=
"
|
"
+
g
,
4
===
b
[
d
].
typetool
&&
(
g
+=
"
|
"
));
var
h
=
"
<button class='btn
"
+
e
+
"
editpdlplus_tool' id='editpdlplus_tool_
"
+
b
[
d
].
toolid
+
"
' style='
"
+
f
+
"
' value='
"
+
b
[
d
].
toolid
+
"
' data-enable='
"
+
b
[
d
].
enable
+
"
'>
"
+
g
+
"
</button>
"
;
a
(
"
#editpdlplus_toolbar_
"
+
b
[
0
].
axeid
).
append
(
h
)}
a
(
"
.editpdlplus_tool
"
).
on
(
"
click
"
,
l
),
a
(
"
#toolworkspace
"
).
html
(
""
)}
else
a
(
"
#message_edit_tool
"
).
html
(
b
[
0
].
message
),
a
(
"
#message_edit_tool
"
).
addClass
(
"
alert-danger
"
),
a
(
"
#message_edit_tool
"
).
removeClass
(
"
alert-success
"
)}).
fail
(
b
.
exception
)}})}.
bind
(
this
)).
fail
(
b
.
exception
)}.
bind
(
this
)).
fail
(
b
.
exception
)};
return
j
.
prototype
.
openDivAddTool
=
function
(){
var
c
=
f
.
get_string
(
"
adminaddtool_messageok
"
,
"
assignfeedback_editpdfplus
"
);
a
(
"
#editpdlplus_tool_item
"
).
html
(
""
),
a
(
"
.btn-primary
"
).
addClass
(
"
btn-default
"
),
a
(
"
.editpdlplus_tool
"
).
removeClass
(
"
btn-primary
"
);
var
j
=
a
(
"
#editpdlplus_axes option:selected
"
).
val
(),
m
=
{
axisid
:
j
};
d
.
loadFragment
(
"
assignfeedback_editpdfplus
"
,
"
tooladd
"
,
g
,
m
).
done
(
function
(
d
,
f
){
k
(
a
(
"
#editpdlplus_tool_item
"
),
d
,
f
).
done
(
function
(){
"
clone
"
===
i
&&
(
a
(
"
#typetool
"
).
val
(
h
.
typetool
),
a
(
"
#color
"
).
val
(
h
.
color
),
a
(
"
#libelle
"
).
val
(
h
.
libelle
),
a
(
"
#catridgecolor
"
).
val
(
h
.
catridgecolor
),
a
(
"
#texts
"
).
val
(
h
.
texts
),
a
(
"
#button
"
).
val
(
h
.
button
),
a
(
"
#enabled
"
).
val
(
h
.
enabled
),
a
(
"
#reply
"
).
val
(
h
.
reply
),
a
(
"
#order
"
).
val
(
h
.
order
),
h
=
null
,
i
=
null
),
a
(
"
#toolFormSubmit
"
).
on
(
"
click
"
,
function
(){
var
d
=
a
(
"
#assignfeedback_editpdfplus_edit_tool
"
),
f
=
d
.
serialize
();
e
.
call
([{
methodname
:
"
assignfeedback_editpdfplus_submit_tool_add_form
"
,
args
:{
jsonformdata
:
JSON
.
stringify
(
f
)}}])[
0
].
done
(
function
(
b
){
if
(
""
===
b
[
0
].
message
){
a
(
"
#message_edit_tool
"
).
html
(
c
),
a
(
"
#message_edit_tool
"
).
addClass
(
"
alert-success
"
),
a
(
"
#message_edit_tool
"
).
removeClass
(
"
alert-danger
"
),
a
(
"
#editpdlplus_toolbar_
"
+
b
[
0
].
axeid
).
html
(
""
);
for
(
var
d
=
0
;
d
<
b
.
length
;
d
++
){
var
e
=
"
btn-default
"
;
1
!==
b
[
d
].
enable
&&
(
e
=
""
),
b
[
d
].
toolid
===
b
[
d
].
selecttool
&&
(
e
=
"
btn-primary
"
);
var
f
=
""
;
4
!==
b
[
d
].
typetool
&&
1
!==
b
[
d
].
typetool
||
(
f
=
"
text-decoration: underline;
"
);
var
g
=
b
[
d
].
button
;
4
!==
b
[
d
].
typetool
&&
5
!==
b
[
d
].
typetool
||
(
g
=
"
|
"
+
g
,
4
===
b
[
d
].
typetool
&&
(
g
+=
"
|
"
));
var
h
=
"
<button class='btn
"
+
e
+
"
editpdlplus_tool' id='editpdlplus_tool_
"
+
b
[
d
].
toolid
+
"
' style='
"
+
f
+
"
' value='
"
+
b
[
d
].
toolid
+
"
' data-enable='
"
+
b
[
d
].
enable
+
"
'>
"
+
g
+
"
</button>
"
;
a
(
"
#editpdlplus_toolbar_
"
+
b
[
0
].
axeid
).
append
(
h
)}
a
(
"
.editpdlplus_tool
"
).
on
(
"
click
"
,
l
),
a
(
"
#editpdlplus_tool_item
"
).
html
(
""
)}
else
a
(
"
#message_edit_tool
"
).
html
(
b
[
0
].
message
),
a
(
"
#message_edit_tool
"
).
addClass
(
"
alert-danger
"
),
a
(
"
#message_edit_tool
"
).
removeClass
(
"
alert-success
"
)}).
fail
(
b
.
exception
)})}.
bind
(
this
)).
fail
(
b
.
exception
)}.
bind
(
this
)).
fail
(
b
.
exception
)},
j
});
\ No newline at end of file
amd/src/admin_panel.js
View file @
59c15876
...
...
@@ -21,13 +21,12 @@
* @module mod_assignfeedback_editpdfplus/admin_panel
*/
define
([
'
jquery
'
/*, 'core/yui'*/
,
'
core/notification
'
,
'
core/templates
'
,
'
core/fragment
'
,
'
core/ajax
'
/*
, 'core/str', 'mod_assign/grading_form_change_checker'*/
],
function
(
$
/*, Y*/
,
notification
,
templates
,
fragment
,
ajax
/*
, str, checker*/
)
{
'
core/ajax
'
,
'
core/str
'
/*
, 'mod_assign/grading_form_change_checker'*/
],
function
(
$
/*, Y*/
,
notification
,
templates
,
fragment
,
ajax
,
str
/*
, checker*/
)
{
var
contextid
=
null
;
var
currentTool
=
null
;
var
action
=
null
;
/**
* AdminPanel class.
*
...
...
@@ -147,6 +146,7 @@ define(['jquery'/*, 'core/yui'*/, 'core/notification', 'core/templates', 'core/f
};
//
var
refreshToolView
=
function
()
{
var
messageok
=
str
.
get_string
(
'
admindeltool_messageok
'
,
'
assignfeedback_editpdfplus
'
);
var
selectid
=
$
(
this
).
val
();
$
(
"
.editpdlplus_tool
"
).
each
(
function
()
{
$
(
this
).
removeClass
(
"
btn-primary
"
);
...
...
@@ -260,7 +260,7 @@ define(['jquery'/*, 'core/yui'*/, 'core/notification', 'core/templates', 'core/f
])[
0
].
done
(
function
(
toolbar
)
{
if
(
toolbar
[
0
].
message
===
""
)
{
//mise à jour du message
$
(
"
#message_edit_tool
"
).
html
(
"
Outil supprimé
"
);
$
(
"
#message_edit_tool
"
).
html
(
messageok
);
$
(
"
#message_edit_tool
"
).
addClass
(
"
alert-success
"
);
$
(
"
#message_edit_tool
"
).
removeClass
(
"
alert-danger
"
);
//mise à jour bar d'outils
...
...
@@ -316,6 +316,7 @@ define(['jquery'/*, 'core/yui'*/, 'core/notification', 'core/templates', 'core/f
};
//
AdminPanel
.
prototype
.
openDivAddTool
=
function
()
{
var
messageok
=
str
.
get_string
(
'
adminaddtool_messageok
'
,
'
assignfeedback_editpdfplus
'
);
$
(
'
#editpdlplus_tool_item
'
).
html
(
""
);
$
(
'
.btn-primary
'
).
addClass
(
"
btn-default
"
);
$
(
'
.editpdlplus_tool
'
).
removeClass
(
"
btn-primary
"
);
...
...
@@ -349,7 +350,7 @@ define(['jquery'/*, 'core/yui'*/, 'core/notification', 'core/templates', 'core/f
])[
0
].
done
(
function
(
toolbar
)
{
if
(
toolbar
[
0
].
message
===
""
)
{
//mise à jour du message
$
(
"
#message_edit_tool
"
).
html
(
"
Ajout enregistré
"
);
$
(
"
#message_edit_tool
"
).
html
(
messageok
);
$
(
"
#message_edit_tool
"
).
addClass
(
"
alert-success
"
);
$
(
"
#message_edit_tool
"
).
removeClass
(
"
alert-danger
"
);
//mise à jour bar d'outils
...
...
externallib.php
View file @
59c15876
...
...
@@ -89,7 +89,7 @@ class assignfeedback_editpdfplus_external extends external_api {
return
array
(
array
(
'axeid'
=>
$axeid
,
'axelabel'
=>
$validateddata
->
label
));
}
}
else
{
$warnings
[]
=
array
(
'message'
=>
'erreur à l enregistrement'
);
$warnings
[]
=
array
(
'message'
=>
get_string
(
'admin_messageko'
,
'assignfeedback_editpdfplus'
)
);
}
...
...
@@ -158,7 +158,7 @@ class assignfeedback_editpdfplus_external extends external_api {
return
array
(
array
(
'message'
=>
$message
));
}
}
else
{
$message
=
"erreur à la suppression"
;
$message
=
get_string
(
'admindeltool_messageko'
,
'assignfeedback_editpdfplus'
)
;
$warnings
[]
=
array
(
'message'
=>
$message
);
}
...
...
@@ -230,10 +230,10 @@ class assignfeedback_editpdfplus_external extends external_api {
}
return
$res
;
}
else
{
$warnings
[]
=
array
(
'message'
=>
'erreur à l enregistrement'
);
$warnings
[]
=
array
(
'message'
=>
get_string
(
'admin_messageko'
,
'assignfeedback_editpdfplus'
)
);
}
}
else
{
$warnings
[]
=
array
(
'message'
=>
'erreur à l enregistrement'
);
$warnings
[]
=
array
(
'message'
=>
get_string
(
'admin_messageko'
,
'assignfeedback_editpdfplus'
)
);
}
/* if ($validateddata) {
...
...
@@ -316,10 +316,10 @@ class assignfeedback_editpdfplus_external extends external_api {
}
return
$res
;
}
else
{
$warnings
[]
=
array
(
'message'
=>
'erreur à l enregistrement'
);
$warnings
[]
=
array
(
'message'
=>
get_string
(
'admin_messageko'
,
'assignfeedback_editpdfplus'
)
);
}
}
else
{
$warnings
[]
=
array
(
'message'
=>
'erreur à l enregistrement'
);
$warnings
[]
=
array
(
'message'
=>
get_string
(
'admin_messageko'
,
'assignfeedback_editpdfplus'
)
);
}
/* if ($validateddata) {
...
...
@@ -402,10 +402,10 @@ class assignfeedback_editpdfplus_external extends external_api {
}
return
$res
;
}
else
{
$warnings
[]
=
array
(
'message'
=>
'erreur à l enregistrement'
);
$warnings
[]
=
array
(
'message'
=>
get_string
(
'admin_messageko'
,
'assignfeedback_editpdfplus'
)
);
}
}
else
{
$warnings
[]
=
array
(
'message'
=>
'erreur à l enregistrement'
);
$warnings
[]
=
array
(
'message'
=>
get_string
(
'admin_messageko'
,
'assignfeedback_editpdfplus'
)
);
}
return
$warnings
;
...
...
lang/en/assignfeedback_editpdfplus.php
View file @
59c15876
...
...
@@ -109,6 +109,26 @@ $string['editpdfplus:notify'] = 'Receive notifications';
$string
[
'admintitle'
]
=
'Feedback configuration'
;
$string
[
'adminsubtitle'
]
=
'Configuration of tools bar for advanded PDF annotation'
;
$string
[
'admincurrenttoolbar'
]
=
'Current toolbar'
;
$string
[
'adminaxis'
]
=
'Axis'
;
$string
[
'admintools'
]
=
'Tools'
;
$string
[
'adminaddtool'
]
=
'Add a new tool'
;
$string
[
'admintoolboxaction'
]
=
'Actions'
;
$string
[
'admintoolboxtypetool'
]
=
'Tool type'
;
$string
[
'admintoolboxtypetool_type'
]
=
'Type'
;
$string
[
'admintoolboxtoolbardisplay'
]
=
'Toolbar display'
;
$string
[
'admintoolboxtoolbardisplay_button'
]
=
'Button'
;
$string
[
'admintoolboxtoolbardisplay_order'
]
=
'Order'
;
$string
[
'admintoolboxcartridge'
]
=
'Cartridge'
;
$string
[
'admintoolboxcartridge_label'
]
=
'Label'
;
$string
[
'admintoolboxcartridge_color'
]
=
'Color'
;
$string
[
'admintoolboxannotation'
]
=
'Annotation'
;
$string
[
'admintoolboxannotation_color'
]
=
'Color'
;
$string
[
'admintoolboxannotation_texts'
]
=
'Predefined texts'
;
$string
[
'admintoolboxannotation_reply'
]
=
'Question/answer'
;
$string
[
'admindeltool_messageok'
]
=
'Tool deleted'
;
$string
[
'admindeltool_messageko'
]
=
'Error on delete'
;
$string
[
'adminaddtool_messageok'
]
=
'Tool added'
;
$string
[
'admin_messageko'
]
=
'Error on registration'
;
$string
[
'typetool_highlightplus'
]
=
'Highlight with comment'
;
$string
[
'typetool_stampplus'
]
=
'Stamp with custom text'
;
$string
[
'typetool_frame'
]
=
'Framing elements with comment'
;
...
...
lang/fr/assignfeedback_editpdfplus.php
View file @
59c15876
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
...
...
@@ -21,7 +22,6 @@
* @copyright 2016 Université de Lausanne
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined
(
'MOODLE_INTERNAL'
)
||
die
();
$string
[
'addtoquicklist'
]
=
'Add to quicklist'
;
...
...
@@ -109,6 +109,26 @@ $string['editpdfplus:notify'] = 'Recevoir les notifications';
$string
[
'admintitle'
]
=
'Feedback configuration'
;
$string
[
'adminsubtitle'
]
=
'Configuration de la barre d\'outils de l\'annotation PDF avancée'
;
$string
[
'admincurrenttoolbar'
]
=
'Barre d\'outils en cours'
;
$string
[
'adminaxis'
]
=
'Axes'
;
$string
[
'admintools'
]
=
'Outils'
;
$string
[
'adminaddtool'
]
=
'Ajout d\'un nouvel outil'
;
$string
[
'admintoolboxaction'
]
=
'Actions'
;
$string
[
'admintoolboxtypetool'
]
=
'Type d\'outil'
;
$string
[
'admintoolboxtypetool_type'
]
=
'Type'
;
$string
[
'admintoolboxtoolbardisplay'
]
=
'Affichage barre d\'outil'
;
$string
[
'admintoolboxtoolbardisplay_button'
]
=
'Bouton'
;
$string
[
'admintoolboxtoolbardisplay_order'
]
=
'Ordre'
;
$string
[
'admintoolboxcartridge'
]
=
'Cartouche'
;
$string
[
'admintoolboxcartridge_label'
]
=
'Libellé'
;
$string
[
'admintoolboxcartridge_color'
]
=
'Couleur'
;
$string
[
'admintoolboxannotation'
]
=
'Annotation'
;
$string
[
'admintoolboxannotation_color'
]
=
'Couleur'
;
$string
[
'admintoolboxannotation_texts'
]
=
'Textes prédéfinis'
;
$string
[
'admintoolboxannotation_reply'
]
=
'Question/réponse'
;
$string
[
'admindeltool_messageok'
]
=
'Outil supprimé'
;
$string
[
'admindeltool_messageko'
]
=
'Erreur à la suppression'
;
$string
[
'adminaddtool_messageok'
]
=
'"Ajout enregistré"'
;
$string
[
'admin_messageko'
]
=
'Erreur à l\'enregistrement'
;
$string
[
'typetool_highlightplus'
]
=
'Surlignement avec commentaires'
;
$string
[
'typetool_stampplus'
]
=
'Tampon avec contenu personalisé'
;
$string
[
'typetool_frame'
]
=
'Encadrement d\'éléments avec commentaires'
;
...
...
templates/admin.mustache
View file @
59c15876
...
...
@@ -13,14 +13,15 @@
<div
class=
'row'
>
<div
class=
'col-sm-2'
>
<h6>
Axes
{{#
str
}}
adminaxis, assignfeedback_editpdfplus
{{/
str
}}
<button
type=
"button"
class=
"btn btn-default"
id=
"assignfeedback_editpdfplus_widget_admin_button_addaxis"
>
<i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
</button>
</h6>
</div>
<div
class=
'col-sm-10'
id=
'assignfeedback_editpdfplus_widget_admin_toolheader'
>
<h6>
Outils
<h6>
{{#
str
}}
admintools, assignfeedback_editpdfplus
{{/
str
}}
<button
type=
"button"
class=
"btn btn-default"
id=
"assignfeedback_editpdfplus_widget_admin_button_addtool"
>
<i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
</button>
...
...
templates/tool_form.mustache
View file @
59c15876
...
...
@@ -8,12 +8,12 @@
<div
id=
"toolworkspace"
>
<div
class=
'row'
style=
"margin-bottom: 10px;"
>
{{^
tool
.
id
}}
<h4>
Ajout d'un nouvel outil
</h4>
{{/
tool
.
id
}}
{{^
tool
.
id
}}
<h4>
{{#
str
}}
adminaddtool, assignfeedback_editpdfplus
{{/
str
}}
</h4>
{{/
tool
.
id
}}
<div
class=
'col-sm-1'
>
<div
id=
"editpdlplus_tool_label"
>
{{#
tool
.
id
}}{{
tool
.
label
}}{{/
tool
.
id
}}
</div>
</div>
<div
class=
'col-sm-offset-2 col-sm-5'
>
Action
{{#
tool
.
id
}}
s
{{/
tool
.
id
}}
:
{{#
str
}}
admintoolboxaction, assignfeedback_editpdfplus
{{/
str
}}
{{#
tool
.
id
}}
s
{{/
tool
.
id
}}
:
<button
type=
"button"
class=
"btn btn-default"
id=
"toolFormSubmit"
><i
class=
"fa fa-
{{#
tool
.
id
}}
pencil
{{/
tool
.
id
}}{{^
tool
.
id
}}
save
{{/
tool
.
id
}}
"
aria-hidden=
"true"
></i></button>
{{#
tool
.
id
}}
<button
type=
"button"
class=
"btn btn-default"
id=
"toolClone"
><i
class=
"fa fa-clone"
aria-hidden=
"true"
></i></button>
...
...
@@ -29,12 +29,12 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<i
class=
"fa fa-wrench"
aria-hidden=
"true"
></i>
<a
data-toggle=
"collapse"
href=
"#collapse1"
>
Type d'outil
</a>
<i
class=
"fa fa-wrench"
aria-hidden=
"true"
></i>
<a
data-toggle=
"collapse"
href=
"#collapse1"
>
{{#
str
}}
admintoolboxtypetool, assignfeedback_editpdfplus
{{/
str
}}
</a>
</div>
<div
id=
"collapse1"
class=
"panel-collapse collapse"
>
<div
class=
"panel-body"
style=
"margin-bottom: 20px;"
>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-3"
for=
"typetool"
>
Type
</label>
<label
class=
"control-label col-sm-3"
for=
"typetool"
>
{{#
str
}}
admintoolboxtypetool_type, assignfeedback_editpdfplus
{{/
str
}}
</label>
<div
class=
"col-sm-9"
>
<select
class=
"form-control"
id=
"typetool"
name=
"typetool"
>
{{#
tools
}}
...
...
@@ -49,18 +49,18 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<i
class=
"fa fa-bars"
aria-hidden=
"true"
></i>
<a
data-toggle=
"collapse"
href=
"#collapse2"
>
Affichage barre d'outil
</a>
<i
class=
"fa fa-bars"
aria-hidden=
"true"
></i>
<a
data-toggle=
"collapse"
href=
"#collapse2"
>
{{#
str
}}
admintoolboxtoolbardisplay, assignfeedback_editpdfplus
{{/
str
}}
</a>
</div>
<div
id=
"collapse2"
class=
"panel-collapse collapse"
>
<div
class=
"panel-body"
style=
"margin-bottom: 50px;"
>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-3"
for=
"button"
>
Bouton
</label>
<label
class=
"control-label col-sm-3"
for=
"button"
>
{{#
str
}}
admintoolboxtoolbardisplay_button, assignfeedback_editpdfplus
{{/
str
}}
</label>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control"
id=
"button"
value=
"
{{
tool
.
label
}}
"
name=
"button"
/>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-3"
for=
"order"
>
Ordre
</label>
<label
class=
"control-label col-sm-3"
for=
"order"
>
{{#
str
}}
admintoolboxtoolbardisplay_order, assignfeedback_editpdfplus
{{/
str
}}
</label>
<div
class=
"col-sm-9"
>
<input
type=
"number"
class=
"form-control"
id=
"order"
value=
"
{{
tool
.
order_tool
}}
"
name=
"order"
/>
</div>
...
...
@@ -71,18 +71,18 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<i
class=
"fa fa-address-card-o"
aria-hidden=
"true"
></i>
<a
data-toggle=
"collapse"
href=
"#collapse3"
>
Cartouche
</a>
<i
class=
"fa fa-address-card-o"
aria-hidden=
"true"
></i>
<a
data-toggle=
"collapse"
href=
"#collapse3"
>
{{#
str
}}
admintoolboxcartridge, assignfeedback_editpdfplus
{{/
str
}}
</a>
</div>
<div
id=
"collapse3"
class=
"panel-collapse collapse"
>
<div
class=
"panel-body"
style=
"margin-bottom: 50px;"
>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-3"
for=
"libelle"
>
Libellé
</label>
<label
class=
"control-label col-sm-3"
for=
"libelle"
>
{{#
str
}}
admintoolboxcartridge_label, assignfeedback_editpdfplus
{{/
str
}}
</label>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control"
id=
"libelle"
value=
"
{{
tool
.
cartridge
}}
"
name=
"libelle"
/>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-3"
for=
"cartridgecolor"
>
Couleur
</label>
<label
class=
"control-label col-sm-3"
for=
"cartridgecolor"
>
{{#
str
}}
admintoolboxcartridge_color, assignfeedback_editpdfplus
{{/
str
}}
</label>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control"
id=
"cartridgecolor"
placeholder=
"
{{^
tool
.
cartridge_color
}}
-
{{/
tool
.
cartridge_color
}}
"
value=
"
{{#
tool
.
cartridge_color
}}{{
tool
.
cartridge_color
}}{{/
tool
.
cartridge_color
}}
"
name=
"catridgecolor"
/>
...
...
@@ -94,25 +94,25 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<i
class=
"fa fa-pencil-square-o"
aria-hidden=
"true"
></i>
<a
data-toggle=
"collapse"
href=
"#collapse4"
>
Annotation
</a>
<i
class=
"fa fa-pencil-square-o"
aria-hidden=
"true"
></i>
<a
data-toggle=
"collapse"
href=
"#collapse4"
>
{{#
str
}}
admintoolboxannotation, assignfeedback_editpdfplus
{{/
str
}}
</a>
</div>
<div
id=
"collapse4"
class=
"panel-collapse collapse"
>
<div
class=
"panel-body"
style=
"margin-bottom: 80px;"
>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-3"
for=
"color"
>
Couleur
</label>
<label
class=
"control-label col-sm-3"
for=
"color"
>
{{#
str
}}
admintoolboxannotation_color, assignfeedback_editpdfplus
{{/
str
}}
Couleur
</label>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control"
id=
"color"
placeholder=
"
{{^
tool
.
colors
}}
-
{{/
tool
.
colors
}}
"
value=
"
{{#
tool
.
colors
}}{{
tool
.
colors
}}{{/
tool
.
colors
}}
"
name=
"color"
/>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-3"
for=
"texts"
>
Texte prédéfinis
</label>
<label
class=
"control-label col-sm-3"
for=
"texts"
>
{{#
str
}}
admintoolboxannotation_texts, assignfeedback_editpdfplus
{{/
str
}}
Texte prédéfinis
</label>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control"
id=
"texts"
value=
"
{{
tool
.
texts
}}
"
name=
"texts"
/>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-3"
for=
"reply"
>
Question/réponse
</label>
<label
class=
"control-label col-sm-3"
for=
"reply"
>
{{#
str
}}
admintoolboxannotation_reply, assignfeedback_editpdfplus
{{/
str
}}
Question/réponse
</label>
<div
class=
"col-sm-9"
>
<input
type=
"checkbox"
class=
"form-control"
id=
"reply"
{{#
tool
.
reply
}}
checked
{{/
tool
.
reply
}}
name=
"reply"
/>
</div>
...
...
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