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
Pixel Humain
oceco
Commits
26c58532
Commit
26c58532
authored
Dec 21, 2021
by
thomas craipeau
Browse files
update
parent
fd1cde56
Changes
3
Hide whitespace changes
Inline
Side-by-side
i18n/en.i18n.json
View file @
26c58532
...
...
@@ -184,7 +184,8 @@
"modified the task"
:
"modified the task"
,
"Delete this task ?"
:
"Delete this task ?"
,
"Add answer"
:
"Add proposal"
,
"creating a new answer"
:
"create a new proposal"
"creating a new answer"
:
"create a new proposal"
,
"go on the action"
:
"go on the action"
},
"Tibillet card transfer"
:
"Tibillet card transfer"
,
"Transfer your credits"
:
"Transfer your credits"
,
...
...
i18n/fr.i18n.json
View file @
26c58532
...
...
@@ -184,7 +184,8 @@
"modified the task"
:
"modifier la tâche"
,
"Delete this task ?"
:
"Supprimer cette tâche ?"
,
"Add answer"
:
"Ajouter proposition"
,
"creating a new answer"
:
"ajouter une nouvelle proposition"
"creating a new answer"
:
"ajouter une nouvelle proposition"
,
"go on the action"
:
"aller sur l'action"
},
"Tibillet card transfer"
:
"Transfert carte tibillet"
,
"Transfer your credits"
:
"Transférer vos crédits"
,
...
...
imports/ui/forms/answers/answers.js
View file @
26c58532
...
...
@@ -274,6 +274,7 @@ Template.detailViewAnswers.events({
'
click .actions-answer-depense-js
'
(
event
)
{
event
.
preventDefault
();
const
depense
=
this
;
console
.
log
(
depense
);
const
sheetObjet
=
{
modalClose
:
true
,
titleText
:
i18n
.
__
(
'
answers.Spent actions
'
),
...
...
@@ -333,6 +334,7 @@ Template.detailViewAnswers.events({
if
(
!
depense
.
isCompleteTaskCredit
)
{
sheetObjet
.
buttons
.
push
({
name
:
'
add-task
'
,
text
:
`
${
i18n
.
__
(
'
answers.Add task
'
)}
<i class="icon fa fa-euro"></i>`
});
}
sheetObjet
.
buttons
.
push
({
name
:
'
link-action
'
,
text
:
`
${
i18n
.
__
(
'
answers.go on the action
'
)}
<i class="icon fa fa-link"></i>`
});
}
sheetObjet
.
buttonClicked
=
(
index
)
=>
{
...
...
@@ -361,6 +363,12 @@ Template.detailViewAnswers.events({
orgaCibleId
:
depense
.
orgaCibleId
,
_id
:
depense
.
_id
,
scope
:
depense
.
scope
,
answerId
:
depense
.
answerId
,
depensekey
:
depense
.
key
,
});
}
if
(
index
===
'
link-action
'
)
{
const
actionOne
=
Actions
.
findOne
({
_id
:
new
Mongo
.
ObjectID
(
depense
.
isAction
)
});
Router
.
go
(
'
actionsDetailOrga
'
,
{
orgaCibleId
:
depense
.
orgaCibleId
,
_id
:
actionOne
.
parentId
,
scope
:
actionOne
.
parentType
,
roomId
:
actionOne
.
idParentRoom
,
actionId
:
depense
.
isAction
,
});
}
if
(
index
===
'
delete-project-manager
'
)
{
if
(
depense
.
isWorker
)
{
IonPopup
.
confirm
({
...
...
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