Browse Source

Fix mysql bug and remove redundant file

https
jakobsn 6 years ago
parent
commit
78be90a300
2 changed files with 2 additions and 36 deletions
  1. +2
    -2
      mysql/sql/init.sql
  2. +0
    -34
      templates/index.html

+ 2
- 2
mysql/sql/init.sql View File

@@ -25,7 +25,7 @@ CREATE TABLE guestbook (
*/

CREATE TABLE teams (
teamid INT AUTO_INCREMENT,
teamid INT UNSIGNED AUTO_INCREMENT,
team_name VARCHAR(200) NOT NULL,
write_permission BOOLEAN,
PRIMARY KEY (teamid)
@@ -86,7 +86,7 @@ CREATE TABLE tasks (
task_status VARCHAR(64) NOT NULL, -- This should be Waiting for delivery, Delivered and waiting for acceptance, Delivery has been accepted, awaiting payment, Payment for delivery is done or Declined delivery, please revise
feedback VARCHAR(500) NULL,
PRIMARY KEY (taskid),
FOREIGN KEY (teamid) REFERENCES teams(teamid)
FOREIGN KEY (teamid) REFERENCES teams(teamid),
FOREIGN KEY (projectid) REFERENCES projects(projectid)
);



+ 0
- 34
templates/index.html View File

@@ -1,34 +0,0 @@
$def with (login_form, friends)

<head>
<title>Friends</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="static/styles/stylesheet.css">

</head>

<body>

<h1>Friends</h1>

<img src="static/images/friends.jpeg" alt="Friends">

<h3>Login, or become a friend!</h3>

<form method="POST">
$:login_form.render()
</form>

$if session.username:
<h1>Logged in as $session.username</h1>
<a href="logout">Logout</a>

<h3>Registered friends:</h3>
<ul>
$for name in friends:
<li id="t$name.userid">$name.username</li>
</ul>

</body>

Loading…
Cancel
Save