Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
knowledgebase-front
Manage
Activity
Members
Labels
Plan
Issues
19
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Applications
Knowledge Base
knowledgebase-front
Commits
a1334a4a
Commit
a1334a4a
authored
5 years ago
by
Benoit Alessandroni
Browse files
Options
Downloads
Patches
Plain Diff
Adding proper PUT on review
parent
3d4e5cce
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/includes/mentor/components/header.pug
+1
-1
1 addition, 1 deletion
src/includes/mentor/components/header.pug
src/includes/mentor/resources/validate.pug
+8
-7
8 additions, 7 deletions
src/includes/mentor/resources/validate.pug
src/scripts/coopstarter.js
+7
-5
7 additions, 5 deletions
src/scripts/coopstarter.js
with
16 additions
and
13 deletions
src/includes/mentor/components/header.pug
+
1
−
1
View file @
a1334a4a
...
...
@@ -19,7 +19,7 @@
input.ico_droite.ico_search
sib-link(next='mentor-account')
sib-display(
sib-display
#user-account-picture
(
bind-user
fields='account.picture',
widget-account.picture='cs-account-picture'
...
...
This diff is collapsed.
Click to expand it.
src/includes/mentor/resources/validate.pug
+
8
−
7
View file @
a1334a4a
...
...
@@ -76,8 +76,8 @@ sib-router
sib-form#validation-form(
bind-resources
nested-field='review'
fields='
resource, status
',
widget-re
source
='sib-form-hidden'
fields='
status, reviewer
',
widget-re
viewer
='sib-form-hidden'
widget-status='sib-form-hidden'
value-status='validated'
submit-button='Validate'
...
...
@@ -89,11 +89,11 @@ sib-router
sib-form#refusal-dialog-form(
bind-resources
nested-field='review'
fields='comment,
resource, status
',
fields='comment,
status, reviewer
',
label-comment='Explain reasons of refusal*'
widget-comment='sib-form-textarea'
widget-re
source
='sib-form-hidden'
widget-re
viewer
='sib-form-hidden'
widget-status='sib-form-hidden'
value-status='inappropriate'
submit-button='Send ->'
...
...
@@ -103,12 +103,13 @@ sib-router
dialog#improvement-dialog
h2.title_lead Suggest improvement
sib-form#improvement-dialog-form(
data-src=`${endpoints.reviews}`
fields='comment, resource, status',
bind-resources
nested-field='review'
fields='comment, status, reviewer',
label-comment='Explain improvement required*'
widget-reviewer='sib-form-hidden'
widget-comment='sib-form-textarea'
widget-resource='sib-form-hidden'
widget-status='sib-form-hidden'
value-status='to_improve'
submit-button='Send ->'
...
...
This diff is collapsed.
Click to expand it.
src/scripts/coopstarter.js
+
7
−
5
View file @
a1334a4a
...
...
@@ -34,11 +34,13 @@ jQuery(document).ready(function($) {
// Get the element with id="defaultOpen" and click on it
document
.
getElementById
(
"
defaultOpen
"
).
click
();
const
detail
=
document
.
getElementById
(
"
detail-view
"
);
detail
.
addEventListener
(
"
populate
"
,
event
=>
{
linkDatasetToField
(
detail
,
'
validation-form
'
,
'
resource
'
);
linkDatasetToField
(
detail
,
'
refusal-dialog-form
'
,
'
resource
'
);
linkDatasetToField
(
detail
,
'
improvement-dialog-form
'
,
'
resource
'
);
console
.
log
(
'
user account picture
'
,
detail
);
detail
.
addEventListener
(
"
populate
"
,
event
=>
{
const
userAccountDataSrc
=
document
.
getElementById
(
"
user-account-picture
"
);
console
.
log
(
'
user account picture
'
,
userAccountDataSrc
);
linkDatasetToField
(
userAccountDataSrc
,
'
validation-form
'
,
'
reviewer
'
);
linkDatasetToField
(
userAccountDataSrc
,
'
refusal-dialog-form
'
,
'
reviewer
'
);
linkDatasetToField
(
userAccountDataSrc
,
'
improvement-dialog-form
'
,
'
reviewer
'
);
});
refreshList
(
"
resource-creation-form
"
,
"
resources-history
"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment