Skip to content

Instantly share code, notes, and snippets.

Created June 19, 2022 07:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Update Drug form
<!-- add header -->
<%- include('includes/_header') %>
<!-- end header -->
<!-- Main section -->
<main id="main">
<a href="/">
<span class="text-gradient"> All Drugs</span>
<h2>Edit Drug</h2>
<span>Use the below form to edit a drug</span>
<!-- Update drug form -->
<form method="POST" id="update_drug">
<div class="new_drug">
<div class="form-group">
<label for="name" class="text-light">Drug Name</label>
<input type="hidden" name="id" value="<%= drug._id %>">
<input type="text" name="name" value="<%= %>" placeholder="Drug Name">
<div class="form-group">
<label for="card" class="text-light">Tablets per Card</label>
<input type="number" name="card" value="" placeholder="Tablets per Card" min="1" max="500">
<div class="form-group">
<label for="pack" class="text-light">Tablets per Pack</label>
<input type="number" name="pack" value="" placeholder="Tablets per Pack" min="1" max="500">
<div class="form-group">
<label for="perDay" class="text-light">Taken per day</label>
<input type="number" name="perDay" value="" placeholder="Taken per day" min="1" max="500">
<div class="form-group">
<button type="submit">Edit Drug</button>
<!-- End main section -->
<!-- add footer -->
<%- include('includes/_footer') %>
<!-- end footer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment