add_announcement.pug 1,8 ko
Newer Older
doctype html
html(lang="en")
  head
    meta(charset="UTF-8")
    meta(name="viewport", content="width=device-width, initial-scale=1.0")
    title Ajouter une Annonce
    link(rel="stylesheet", href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css")

  body
    .container.mt-5

      h1 Ajouter une Annonce

      form(action="/announcements/add-announcement", method="post", enctype="multipart/form-data")
        .form-group
          label(for="title") Titre
          input#title.form-control(type="text", name="title", required)

        .form-group
          label(for="propertyType") Type de Bien
          input#propertyType.form-control(type="text", name="propertyType", required)

        .form-group
          label(for="price") Prix
          input#price.form-control(type="text", name="price", required, pattern="[0-9]+(\.[0-9]{1,2})?", title="Veuillez entrer un nombre")

        .form-group
          label(for="availabilityDate") Date de disponibilité
          input#availabilityDate.form-control(type="date", name="availabilityDate", required)


        .form-group
          label(for="description") Description
          textarea#description.form-control(name="description", required)

        .form-group
          label(for="publicationStatus") Statut Publication
          input#publicationStatus.form-control(type="text", name="publicationStatus", required)

        .form-group
          label(for="propertyStatus") Statut Bien
          input#propertyStatus.form-control(type="text", name="propertyStatus", required)

        .form-group
          label(for="photos") Photos
          input#photos.form-control(type="file", name="photos", accept="image/*", multiple)

        button.btn.btn-primary(type="submit") Ajouter l'annonce
        a.btn.btn-secondary(href="/announcements") Annuler