Skip to content
Snippets Groups Projects
dashboard.pug 1.56 KiB
// Dashboard for entrepreneur, containing the search engine
// Access to all resources
// Capabilities to request a resource
// Like and comment

header#header(role='banner')
    include ./components/header.pug

section#home
    //TODO:
    //-Distinguish the search form from the listing
    //-Create two Sib-displays getting the resources by "types"
    // and grouped by steps
    // From two different endpoints I guess
    //-Work on the page architecture


    //TODO : investigate why we have to remove hidden attribute to see this even if we are on the right route.
    #entrepreneur-resource-list(hidden).no-sidebar.container
        include ./resources/list.pug

        sib-router
            sib-route(name='entrepreneur-request-create')
            sib-route(name='entrepreneur-request-validation')
            sib-route(name='entrepreneur-resource-detail')

        dialog#entrepreneur-request-create.no-sidebar.container
            include ./requests/create.pug

        dialog#entrepreneur-request-validation.no-sidebar.container
            p You request has been submitted
            p.flex
                sib-link(next='entrepreneur-resource-list', class='button_base') Ok

        dialog#entrepreneur-resource-detail.no-sidebar
            include resources/detail.pug

    #entrepreneur-account(hidden).no-sidebar.container
        include profile/detail.pug

    #entrepreneur-account-edit(hidden).no-sidebar.container
        include profile/edit.pug

    #entrepreneur-account-edit-confirmation(hidden).no-sidebar.container
        include profile/confirmation.pug