div.content-box__info.flex
  solid-link(class="backlink right" next='admin-project-list') Retour

  solid-widget(name="hubl-admin-project-add-user")
    template
      solid-form(
        data-holder
        fields='user, project'
        range-user=`${endpoints.users || endpoints.get.users}`
        value-project='${src}'
        widget-project='solid-form-hidden'
        naked
      )

  h1.centered Créer un nouveau projet

  div#loader-projects-create.loader.loader-top
    div
    div
    div
    div

  solid-form.form.button-register(
    data-src=`${endpoints.projects || endpoints.post.projects}`
    
    fields='status, line-1(customer.name, name), description, line-2(captain), logo'
    loader-id='loader-projects-create'

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

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

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

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

    label-captain='Capitaine du projet*'
    range-captain=`${endpoints.users || endpoints.get.users}`
    class-captain='form-label is-light is-half-width'
    widget-captain='solid-form-auto-completion'

    class='input-text-like'
    widget-logo="solid-form-file"
    label-logo="Télécharger un logo"
    class-logo='select-add'
    upload-url-logo=`${endpoints.uploads || endpoints.post.uploads}`

    next='admin-project-list'

    submit-button='Enregistrer et ajouter des membres'
  )
