<% title = 'New Note - MyNotes' %>
<%- include('../partials/header') %>

<div class="card">
  <h1>New Note</h1>
  <form action="/notes" method="POST">
    <label for="title">Title</label>
    <input type="text" id="title" name="title" value="<%= formData.title || '' %>" required>

    <label for="content">Content</label>
    <textarea id="content" name="content" rows="10"><%= formData.content || '' %></textarea>

    <button type="submit" class="btn btn-primary">Save Note</button>
    <a href="/notes" class="btn btn-secondary">Cancel</a>
  </form>
</div>

<%- include('../partials/footer') %>
