-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
603da49
commit f43458f
Showing
9 changed files
with
76 additions
and
22 deletions.
There are no files selected for viewing
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
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,24 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>SW Idea site</title> | ||
<link rel="stylesheet"href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous"> | ||
|
||
</head> | ||
<body> | ||
<nav class="navbar shadow"> | ||
<a class="col text-center text-dark pt-2"><h4>SW idea site</h4></a> | ||
</nav> | ||
{% block content %} | ||
{% endblock %} | ||
|
||
{% block extra %} | ||
{% endblock %} | ||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" crossorigin="anonymous"></script> | ||
|
||
</body> | ||
</html> |
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
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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
{% extends "base.html" %} | ||
{% block content %} | ||
<form action ="" method="POST"> | ||
{% csrf_token %} | ||
<table> | ||
{{form.as_table}} | ||
</table> | ||
|
||
<input type="submit" value="μ μ₯νκΈ°"/> | ||
</form> | ||
</form> | ||
|
||
{% endblock %} |
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
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
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 |
---|---|---|
@@ -1,8 +1,14 @@ | ||
{% extends "base.html" %} | ||
|
||
|
||
{% block content %} | ||
<form action ="" method="POST" enctype="multipart/form-data"> | ||
{% csrf_token %} | ||
<table> | ||
{{form.as_table}} | ||
</table> | ||
|
||
<input type="submit" value="μ μ₯νκΈ°"/> | ||
</form> | ||
</form> | ||
|
||
{% endblock %} |
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 |
---|---|---|
@@ -1,23 +1,31 @@ | ||
|
||
<a href="{% url 'ideas:idea_create' %}">μ μμ΄λμ΄ λ±λ‘</a> | ||
{% extends "base.html" %} | ||
{% load static %} | ||
{% block content %} | ||
<button class="btn btn-sm border-primary mt-3 ml-3" onclick="location.href='{% url 'ideas:idea_create' %}'">μ μμ΄λμ΄ λ±λ‘</a></button> | ||
<br/> | ||
{%for idea in idea %} | ||
{% if idea.image %} | ||
<img src="{{ idea.image.url }}" style="max-width: 100%;"/> | ||
{%endif%} | ||
<p> | ||
<h1><a href="{% url 'ideas:idea_detail' idea.pk%}">{{ idea.title }}</a></h1> | ||
<p>μμ κ°λ° ν΄:{{ idea.devtool }}</p> | ||
μμ΄λμ΄ κ΄μ¬λ: {{ idea.interest }} | ||
<button class="btn" id="up">+</button> | ||
<button class="btn" id="down">-</button> | ||
</p> | ||
|
||
{% endfor %} | ||
<div class="d-flex justify-content-evenly"> | ||
{%for idea in idea %} | ||
<div class="p-3 d-flex flex-column align-items-center"> | ||
<img src="{{ idea.image.url }}" style="max-width: 100%;"/> | ||
<div> | ||
<h3><a href="{% url 'ideas:idea_detail' idea.pk%}">{{ idea.title }}</a></h3> | ||
<span class="font-weight-bold">μμ κ°λ° ν΄:</span> {{ idea.devtool }} | ||
<br> | ||
<span class="font-weight-bold">μμ΄λμ΄ κ΄μ¬λ:</span> {{ idea.interest }} | ||
<button class="btn btn-sm border-primary" id="up">+</button> | ||
<button class="btn btn-sm border-primary" id="down">-</button> | ||
|
||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
{% endblock %} | ||
|
||
{% block extra %} | ||
<script> | ||
const button = document.querySelectorAll('.btn'); | ||
button.forEach(button => button.addEventListener('click',()=> { | ||
console.log('Click!!!'); | ||
})); | ||
</script> | ||
{% endblock %} |
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