<commit_before>extends layout

block content
  h1= title
  form(action="/completetask", method="post")
    table(border="1", class="table table-striped")
      tr
        td Name
        td Category
        td Priority
        td Date Added
        td Complete
      each task in tasks
        tr
          td #{task.itemName}
          td #{task.itemCategory}
          td #{task.itemPriority}
          - var day   = task.itemDate.getDate();
          - var month = task.itemDate.getMonth() + 1;
          - var year  = task.itemDate.getFullYear();
          td #{month + "/" + day + "/" + year}
          td
            input(type="checkbox", name="#{task._id}", value="#{!task.itemCompleted}", checked=task.itemCompleted)
      input(type="submit", value="Update tasks")
  hr
  form(action="/addtask", method="post" name="item")
    table(border="1")
      tr
        td Item Name:
        td
          input(name="name", type="textbox")
      tr
        td Item Category:
        td
          input(name="category", type="textbox")
      tr
        td Item Priority:
        td
          input(name="priority", type="textbox")
    input(type="submit", value="Add item")
  hr<commit_msg>Reworked the input fields to use bootstrap form.<commit_after>extends layout

block content
  h1= title
  form(action="/completetask", method="post")
    table(border="1", class="table table-striped")
      tr
        td Name
        td Category
        td Priority
        td Date Added
        td Complete
      each task in tasks
        tr
          td #{task.itemName}
          td #{task.itemCategory}
          td #{task.itemPriority}
          - var day   = task.itemDate.getDate();
          - var month = task.itemDate.getMonth() + 1;
          - var year  = task.itemDate.getFullYear();
          td #{month + "/" + day + "/" + year}
          td
            input(type="checkbox", name="#{task._id}", value="#{!task.itemCompleted}", checked=task.itemCompleted)
    input(type="submit", value="Update tasks")
  hr
  form(action="/addtask", method="post" name="item" class="navbar-form navbar-left")
    div.task(class="form-group input-group-lg")
      input(name="name", type="textbox", class="form-control", placeholder="Name")
      input(name="category", type="textbox", class="form-control",placeholder="Category")
      input(name="priority", type="textbox", class="form-control", placeholder="Priority")
    input(type="submit", class="btn btn-default", value="Add item")
  hr
{'fraction_non_alphanumeric': 0.1460764587525151, 'fraction_numerical': 0.0028169014084507044, 'mean_word_length': 2.4054794520547946, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7102826', 'n_tokens_mistral': 724, 'n_tokens_neox': 711, 'n_words': 173}