-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from bounswe/practice-app/enhancement/post-in…
…fo-#135 Some requested enhancements in practice-app/post-info
- Loading branch information
Showing
6 changed files
with
80 additions
and
12 deletions.
There are no files selected for viewing
Binary file modified
BIN
+11 Bytes
(110%)
practice-app/post_info/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{% load crispy_forms_tags %} | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/html"> | ||
<head> | ||
<!-- Required meta tags --> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
|
||
<!-- Bootstrap CSS --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | ||
<title></title> | ||
</head> | ||
<body> | ||
|
||
</div> | ||
{% if action_fail %} | ||
<div class="alert alert-danger" role="alert"> | ||
<h4 class="alert-heading">Error</h4> | ||
<p>Please enter valid values.</p> | ||
</div> | ||
|
||
{% endif %} | ||
|
||
</div> | ||
<div class="container"> | ||
<div class="d-flex justify-content-around" style="display:flex;"> | ||
|
||
<form class="form-group" method="GET" novalidate action="{% url 'getPost' %}"> | ||
<h2>View a Post</h2> | ||
{{getForm|crispy}} | ||
{% csrf_token %} | ||
<div class="d-flex p-2"></div> | ||
<button type="submit" class="btn btn-info">Submit</button> | ||
</form> | ||
<form class="form-group" method="POST" novalidate action="{% url 'postPost' %}"> | ||
<h2>Update a Post</h2> | ||
{{postForm|crispy}} | ||
{% csrf_token %} | ||
<p></p> | ||
<p>Note: Please provide the id of the category, not the name of it.</p> | ||
<div class="d-flex p-2"></div> | ||
<button type="submit" class="btn btn-info">Submit</button> | ||
</form> | ||
|
||
</div> | ||
</div> | ||
</body> | ||
</html> |
Binary file added
BIN
+202 Bytes
practice-app/post_info/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
practice-app/post_info/tests/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters