<!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" />

    <title>Fishes</title>

    <link
      rel="canonical"
      href="https://getbootstrap.com/docs/4.5/examples/album/"
    />

    <!-- Bootstrap core CSS -->
    <link
      rel="stylesheet"
      href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
      integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z"
      crossorigin="anonymous"
    />

    <style>
      .bd-placeholder-img {
        font-size: 1.125rem;
        text-anchor: middle;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
      }

      @media (min-width: 768px) {
        .bd-placeholder-img-lg {
          font-size: 3.5rem;
        }
      }
    </style>
  </head>
  <body>
    <%- include('common/header') %>
    <div class="container">
      <h1 class="text-center">Edit Fish</h1>
      <div class="row justify-content-md-center">
        <div class="col-">
          <form method="POST">
            <div class="form-group">
              <label for="name">Fish Name</label>
              <input
                value="<%= fish.Name %>"
                type="text"
                class="form-control"
                id="name"
                placeholder="Enter Name"
                name="Name"
              />
              <% if (errors ['name']) { %>
              <p style="color: red"><%= errors['name'].message %></p>
              <% } %>
            </div>
            <div class="form-group">
              <label for="name">Number ( # )</label>
              <input
                value="<%= fish.Number %>"
                type="number"
                name="Number"
                class="form-control"
                id="name"
              />
            </div>

            <div class="form-group">
              <label for="name">Selling price</label>
              <input
                value="<%= fish.Sell %>"
                type="number"
                name="Sell"
                class="form-control"
                id="name"
              />
            </div>

            <div class="form-group">
              <label for="name">Spawn rate</label>
              <input
                value="<%= fish.SpawnRates %>"
                type="text"
                name="SpawnRates"
                class="form-control"
                id="name"
              />
            </div>

            <div class="form-group">
              <label for="name">Shadow size</label>
              <input
                value="<%= fish.Shadow %>"
                type="text"
                name="Shadow"
                class="form-control"
                id="name"
              />
            </div>

            <button type="submit" class="btn btn-primary">Submit</button>
          </form>
        </div>
      </div>
    </div>
    <%- include('common/footer') -%>
  </body>
</html>
