Template source: base.djt.html

{% load static %} {% comment %} <img src="{% static "my_app/example.jpg" %}" alt="My image"> (not sure about this) {% endcomment %} <!DOCTYPE html> <html lang="en"> <head> <title>{% block title %}Hello World{% endblock %} </title> {% block metadata %} <meta charset="utf-8"> <meta name="description" content="Events Tool for adding, changing, and deleting events"> <!-- other html tags here --> {% endblock %} <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> <!-- Font Awesome CDN for icons --> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous"> <link rel="stylesheet" href="/static/css/linda.css"> <!-- JS dependencies --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script> <!-- bootbox.js at 4.4.0 --> <script src="https://rawgit.com/makeusabrew/bootbox/f3a04a57877cab071738de558581fbc91812dce9/bootbox.js"></script> <!-- I added these scripts because I needed the middle one (popper) in order to get a pulldown in the boostrap navbar. I don't know if we need all three. They are dupes of above but different versions. --> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> <script src="/static/js/tablesort.js" type="text/javascript"> </script> </head> </html> <body> <!-- Below is the bootstrap navbar code --> <nav class="navbar navbar-expand-lg navbar-dark bg-dark"> <a class="navbar-brand" href="#"> </a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav mr-auto"> <li class="nav-item active"> <a class="nav-link" href={% url "home" %}>Home <span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href = {% url "list" %}>Show Table</a> <!-- this is a django dynamic link --> </li> <li class="nav-item"> <a class="nav-link" href ="{% url 'create' %}">Add a Record</a> <!-- this is a django dynamic link --> </li> <li class="nav-item"> <a class="nav-link" href ="http://127.0.0.1:8000/admin/">DjangoAdmin HD</a> </li> <li class="nav-item"> <a class="nav-link" href ="http://www.untangledweb.com/admin/login/?next=/admin/">DjangoAdmin PA</a> </li> <li class="nav-item"> <a class="nav-link" href ="{% url "contact" %}">Feedback</a> </li> <!-- LM added this for a navbar dropdown with the csv choices --> <div class="dropdown show"> <a class="btn btn-secondary dropdown-toggle" href="https://example.com" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Import a CSV </a> <div class="dropdown-menu" aria-labelledby="dropdownMenuLink"> {% for comp in comps %} <a class="dropdown-item" href=" {% url 'load' %}?company={{ comp }}">Import {{ comp }}</a> {% endfor %} </div> </div> <!-- --> <li class="nav-item"> <a class="nav-link" href ="{% url "contact" %}">Report issue</a> </li> </ul> <form class="form-inline my-2 my-lg-0"> <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search"> <button class="btn btn-outline-secondary my-2 my-sm-0" type="submit">Search</button> </form> </div> </nav> <!-- End of bootstrap navbar code --> <br /> <div class="container"> <!-- Always wrap with the bootstrap container with a div --> {% block content %} {% endblock content %} </div> </body>