diff --git a/src/includes/home.pug b/src/includes/home.pug index fc31b8607c8d6352010ab0e57534a4c4fc10f855..098f176d1a522f04c2368cec4ae56133756c3648 100644 --- a/src/includes/home.pug +++ b/src/includes/home.pug @@ -10,10 +10,6 @@ section#home //-Testing the group-by right after the 0.8 version release //-Work on the page architecture - sib-widget(name='resource-format-title') - template - p ${value.title} - #list(hidden) include resource/list.pug diff --git a/src/includes/menu.pug b/src/includes/menu.pug index 6179bd6cb7ffd677edc7edd0009022dad2fcf1e4..ae8a388a67bc58cedbeff46cbdce018c623b04a2 100644 --- a/src/includes/menu.pug +++ b/src/includes/menu.pug @@ -7,6 +7,7 @@ sib-router(default-route="home", route-prefix="resources") sib-route(name='create') div.menu-label Create a resource div.menu-icon.icon-people + div.divider sib-ac-checker(permission="acl:Write" bind-resources) sib-route(id-prefix=`${endpoints.resources}`, name='edit', use-id) div.menu-label Edit a resource diff --git a/src/includes/resource/create.pug b/src/includes/resource/create.pug index 754d2dd032f21c0139faab1a1a4cbc4565fa2a25..29e9905eb82e876c7463765d1e1dba66a4811d6c 100644 --- a/src/includes/resource/create.pug +++ b/src/includes/resource/create.pug @@ -1,7 +1,9 @@ h2 Create a new resource details - summary All fields: + summary All available fields: sib-form( data-src=`${endpoints.resources}` + next="resources-list" + summary='All available fields:' ) \ No newline at end of file diff --git a/src/includes/resource/list.pug b/src/includes/resource/list.pug index 4a40cf13371d39621f99315669f21fe14a8a2711..6ae2f0e45d0e71e47dc38c3f7d633e8432a333e4 100644 --- a/src/includes/resource/list.pug +++ b/src/includes/resource/list.pug @@ -1,9 +1,14 @@ -p: a Watch a presentation +sib-widget(name='resource-format-title') + template + div + p ${value.title} + +p: a Watch a video presentation h2 Search for a resource div.resources__newresource - sib-link(next="resource/create").plus-button + sib-link(next='resource/create').plus-button div.icon-plus div Post a new Resource @@ -20,14 +25,14 @@ div.resources__newresource set-content='title, description', set-info='author, publication_year, language.name', - next='edit' + next='item-edit' ) +#item-edit(hidden) sib-form( - id='resource-edit' - data-fields="title, description, format, author" - next="list" - bind-resources + data-fields="title, description, format, author" + next='list' + bind-resources ) //- group-by='step' \ No newline at end of file