Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About #12

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions agfzb-CloudAppDevelopment_Capstone
Submodule agfzb-CloudAppDevelopment_Capstone added at a3d6f9
33 changes: 33 additions & 0 deletions server/djangoapp/templates/djangoapp/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dealership Review</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<link href="https://unpkg.com/[email protected]/dist/bootstrap-table.min.css" rel="stylesheet">
<script src="https://unpkg.com/[email protected]/dist/bootstrap-table.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/extensions/filter-control/bootstrap-table-filter-control.min.js"></script>

</head>

<body>
<nav class =" navbar navbar-light bg-light ">
<div class =" container-fluid navbar-left mr-auto ">
<div class =" navbar-header " >
<a class="navbar-brand" href="{% url 'djangoapp:index' %}">Home</a>
<a class="navbar-brand" href="{% url 'djangoapp:about' %}">About Us</a>
</div>
</div>
</nav>
<div class="container">
<h1>
Welcome to Best Cars dealership, home to the best cars in North America. We sell domestic and imported cars at reasonable prices.
</h1>
</div>

</body>

</html>
33 changes: 33 additions & 0 deletions server/djangoapp/templates/djangoapp/contact.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dealership Review</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<link href="https://unpkg.com/[email protected]/dist/bootstrap-table.min.css" rel="stylesheet">
<script src="https://unpkg.com/[email protected]/dist/bootstrap-table.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/extensions/filter-control/bootstrap-table-filter-control.min.js"></script>

</head>

<body>
<nav class =" navbar navbar-light bg-light ">
<div class =" container-fluid navbar-left mr-auto ">
<div class =" navbar-header " >
<a class="navbar-brand" href="{% url 'djangoapp:index' %}">Home</a>
<a class="navbar-brand" href="{% url 'djangoapp:about' %}">About Us</a>
<a class="navbar-brand" href="{% url 'djangoapp:contact' %}">Contact Us</a>
</div>
</div>
</nav>
<div class="container">
<div class="text-center">
<h2>Contact Information</h3><br/>
<p>Address: xxxx </p><br/>
<p>Phone: xxx xxx xxx</p><br/>
</div>
</body>
</html>
10 changes: 8 additions & 2 deletions server/djangoapp/templates/djangoapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@
</head>

<body>
<!-- Remove this line the first time you edit this file -->
This is the index page of your Django app!
<!--Add a nav bar here -->

<nav class =" navbar navbar-light bg-light ">
<div class =" container-fluid navbar-left mr-auto ">
<div class =" navbar-header " >
<a class="navbar-brand" href="{% url 'djangoapp:index' %}">Home</a>
<a class="navbar-brand" href="{% url 'djangoapp:about' %}">About Us</a>
</div>
</div>
</nav>
<!--Add a dealer table here -->

</body>
Expand Down
1 change: 1 addition & 0 deletions server/djangoapp/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# name the URL

# path for about view
path(route='about', view=views.about, name='about'),

# path for contact us view

Expand Down
4 changes: 4 additions & 0 deletions server/djangoapp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
# Create an `about` view to render a static about page
# def about(request):
# ...
def about(request):
context = {}
if request.method == "GET":
return render(request, 'djangoapp/about.html', context)


# Create a `contact` view to return a static contact page
Expand Down