<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link
      href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
      rel="stylesheet"
      integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
      crossorigin="anonymous"
    />
    <link rel="stylesheet" href="./css/ptsearch.css" />
    <title>Document</title>
  </head>
  <body>
    <nav class="navbar navbar-dark bg-dark">
      <div class="container-fluid">
        <a class="navbar-brand" href="/"
          ><strong>US HOME</strong></a
        >
        <a
          class="navbar-brand"
          href="/information"
          target="_blank"
          id="info_top"
          ><strong>Informações de Preenchimento</strong></a
        >
        <form class="d-flex" method="GET" action="/logout">
          <input class="form-control me-2" type="hidden" />
          <button class="btn btn-danger" type="submit">LOG OUT</button>
        </form>
      </div>
    </nav>
    <div
      class="container"
    >
      <form action="/ptsearch" method="POST">
        <h1 style="margin-bottom: 2%; color: rgb(236, 183, 49)">
          Buscar Registro:
        </h1>
        <div>
            <input
              type="hidden"
              id="multiple"
              name="multiple"
              value="false"
            />
          </div>
        <div>
          <input
            type="hidden"
            id="username"
            name="username"
            value="<%= username %>"
          />
        </div>

        <div>
          <input
            type="hidden"
            id="affiliation"
            name="affiliation"
            value="<%= affiliation %>"
          />
        </div>

        <div>
            <input
              type="hidden"
              id="search_type"
              name="search_type"
              value="<%= source %>"
            />
          </div>

        <div class="form-row">
          <div class="col-md-6 mb-4">
            <label for="pt_id">Registro:</label>
            <input type="text" id="pt_id" name="pt_id" autofocus/>
          </div>
        </div>
        <div id="btns">
          <div>
            <a href="/user">
              <button class="btn btn-warning btn-lg" type="button">
                CANCELAR
              </button></a
            >
          </div>
          <div>
            <button class="btn btn-danger btn-lg" type="submit">BUSCAR</button>
          </div>
        </div>
        </div>
      </form>
    </div>

    <script
      src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
      integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
      crossorigin="anonymous"
    ></script>
  </body>
</html>
