Skip to content
Snippets Groups Projects
Commit c6babaaf authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

Switch the resource detail page to a dialog

parent f098ebdd
No related branches found
No related tags found
1 merge request!24Feature/add resource detail field
......@@ -14,7 +14,6 @@ exec(`mkdir -p ${distDir}`, () => {
? distDir
: join(distDir, filename);
const cmd = `rsync -ru ${path} ${dest}`;
console.log(cmd);
exec(cmd);
});
});
......@@ -6,7 +6,5 @@ sib-router(default-route='mentor-resource-list')
sib-ac-checker(permission="acl:Write" bind-resources)
sib-route(id-prefix=`${endpoints.resources}`, name='mentor-resource-edit', use-id)
sib-route(name='resource-creation-confirmation')
sib-ac-checker(permission="acl:Write" bind-resources)
sib-route(id-prefix=`${endpoints.resources}`, name='mentor-resource-detail', use-id)
sib-route(name='mentor-database')
sib-route(id-prefix=`${endpoints.resources}`, name='mentor-resource-validate', use-id)
\ No newline at end of file
......@@ -14,6 +14,14 @@ section#home
#mentor-resource-list(hidden).no-sidebar.container
include resources/list.pug
sib-router
sib-ac-checker(permission="acl:Write" bind-resources)
sib-route(id-prefix=`${endpoints.resources}`, name='mentor-resource-detail', use-id)
dialog#mentor-resource-detail.no-sidebar.container
sib-link(class="backlink", next="mentor-resource-list") Back to the dashboard
include resources/detail.pug
#mentor-resource-create(hidden).no-sidebar.container
sib-link(class="backlink", next="mentor-resource-list") Back to the dashboard
include resources/create.pug
......@@ -28,10 +36,6 @@ section#home
#resource-creation-confirmation(hidden).no-sidebar.container
include resources/confirmation.pug
#mentor-resource-detail(hidden).no-sidebar.container
sib-link(class="backlink", next="mentor-resource-list") Back to the dashboard
include resources/detail.pug
#mentor-database(hidden)
sib-link(class="backlink", next="mentor-resource-list") Back to the dashboard
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment