div.content-box__info

  include ../../templates/hubl-user-avatar.pug
			
  solid-link(class='backlink right', bind-resources, next='project-profile') Retour

  h1 Modifie ton projet

  solid-form.form.button-register(
	  bind-resources
	
	  fields='status, line-1(customer.name, name), description'

    label-status='Statut du cercle*'
    widget-status='hubl-status'
    class-status='form-label is-light is-full-width member-select color'

    label-name='Nom du projet*'
    class-name='form-label is-light is-half-width input-text-like'

		label-customer.name='Nom du client*'
    class-customer.name='form-label is-light is-half-width input-text-like'

    label-description='Description du projet'
    class-description='form-label is-light is-full-width input-text-like'
    widget-description='solid-form-textarea'

    partial=""

    submit-button='Enregistrer'
    next='project-information'
  )

  h2 Photo du projet

  solid-form.form-picture(
	  bind-resources
	  fields='customer.logo'
    widget-customer.logo="hubl-user-avatar"
    submit-button='Edit'
    next='project-picture'
  )

  h2 Liste des membres :

  solid-form.block.select-add(
    bind-resources 
    nested-field='members'
    fields='user'
    range-user=`${endpoints.users || endpoints.get.users}`

    class-user='team form-label is-light'
    label-user=''
    widget-user='solid-form-auto-completion'

    submit-button='Ajouter un membre'
  )

  .table-wrapper
    .table
      div.table-header.grey-color
        div.w280 Nom
        div.w162 Accès

      //-class='table-body'
      solid-display(
        class='table-body'
        bind-resources
        fields='members'

        multiple-members=''
        widget-members='hubl-team-template-edit'
      )
