Skip to content
Snippets Groups Projects
  • Gaëlle Morin's avatar
    40e103fc
    feature: project-profile page · 40e103fc
    Gaëlle Morin authored and Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier committed
    - css added or reviewed
    - templates added or reviewed (customer, business provider, team)
    - modal added and stylised
    - routes reviewed
    - navbar reviewed (adapted according to the content of the main section
    - admin status added
    - new staging added.
    40e103fc
    History
    feature: project-profile page
    Gaëlle Morin authored and Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier committed
    - css added or reviewed
    - templates added or reviewed (customer, business provider, team)
    - modal added and stylised
    - routes reviewed
    - navbar reviewed (adapted according to the content of the main section
    - admin status added
    - new staging added.
page-circle-profile.pug 2.41 KiB
sib-router(default-route='circle-profile', hidden)
  sib-route(name='circle-profile')
  sib-route(name='circle-edit')

#circle-profile(hidden)
  include templates/hd-circle-team.pug
  .content-box__info

    .space-between
      sib-display(
        bind-resources
        fields='creationDateSet(title, creationDate)'

        value-title='Creation date: '

        widget-creationDate='sib-display-date'
      )
      sib-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
        sib-link(class='button text-bold text-uppercase reversed button-blue bordered with-icon icon-pencil' next='circle-edit' bind-resources) Edit and add Members


    h2 Members:

    sib-display.block(
      bind-resources
      fields='team'

      multiple-team=''
      widget-team='circle-team-template'
    )

    div.box-button
      sib-ac-checker(permission='acl:Delete', bind-resources)
        sib-delete(
          class='button text-bold text-uppercase button-blue bordered with-icon icon-trash'
          bind-resources
          data-label='Delete Circle'
        )

      sib-widget(name='circle-leave-button')
        template
          sib-delete(
            class='button btn-margin-left text-bold text-uppercase reversed button-dark bordered with-icon icon-close'
            data-src="${src}"
            data-label='Leave Circle'
          )

      sib-widget(name='circle-join-button')
        template
          button.button.btn-margin-left.text-bold.text-uppercase.reversed.button-dark.bordered.with-icon.icon-arrow-right-circle.test
            sib-form(
              data-src=''
              nested-field='members'

              fields='user.@id'
              label-user.@id=''
              value-user.@id=''
              widget-user.@id='sib-form-hidden'

              hd-inherit-bind-user2input="input[name='user.@id']"
              hd-inherit-widgets

              submit-button='Join Circle'
            )

      sib-display(
        bind-resources
        nested-field='members'
        fields='relation'
        action-relation='relation'
        widget-relation='circle-leave-button'
        search-fields='user'
        search-widget-user='sib-form-hidden'
        search-value-user=""
        empty-widget='circle-join-button'
        hd-inherit-bind-resources='circle-join-button'
        hd-inherit-user-id="search-value-user"
        hd-inherit-widgets
      )



#circle-edit(hidden)
  include page-circle-edit.pug