forked from Decentrala/taskmanager
add project page
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<main>
|
||||
<section>
|
||||
{% for task in tasks %}
|
||||
<li>{{task}}</li>
|
||||
<li><a href="/projects/{{task.id}}"> {{task.name}} </a></li>
|
||||
{% endfor %}
|
||||
</section>
|
||||
</main>
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Decentrala</title>
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
</header>
|
||||
<main>
|
||||
<section>
|
||||
<li>{{task.name}}</li>
|
||||
<li>{{task.desc}}</li>
|
||||
<li>{{users}}</li>
|
||||
</section>
|
||||
<h1> Add yourself to task </h1>
|
||||
<form action="/projects/{{task.id}}" method="POST">
|
||||
<label for="username">username</label>
|
||||
<input type="text" name="username" id="username" required>
|
||||
<button> Submit </button>
|
||||
</form>
|
||||
|
||||
</main>
|
||||
<footer>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,20 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Submit</title>
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<form action="/submit" method="POST">
|
||||
<label for="forminput1">forminput1</label>
|
||||
<input type="text" name="forminput1" id="forminput1" required>
|
||||
<label for="forminput2">forminput2</label>
|
||||
<input type="text" name="forminput2" id="forminput2" required>
|
||||
<button> Submit </button>
|
||||
</form>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user