Ver código fonte

Fix mysql bug and remove redundant file

https
jakobsn 6 anos atrás
pai
commit
78be90a300
2 arquivos alterados com 2 adições e 36 exclusões
  1. +2
    -2
      mysql/sql/init.sql
  2. +0
    -34
      templates/index.html

+ 2
- 2
mysql/sql/init.sql Ver arquivo

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


CREATE TABLE teams ( CREATE TABLE teams (
teamid INT AUTO_INCREMENT,
teamid INT UNSIGNED AUTO_INCREMENT,
team_name VARCHAR(200) NOT NULL, team_name VARCHAR(200) NOT NULL,
write_permission BOOLEAN, write_permission BOOLEAN,
PRIMARY KEY (teamid) 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 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, feedback VARCHAR(500) NULL,
PRIMARY KEY (taskid), PRIMARY KEY (taskid),
FOREIGN KEY (teamid) REFERENCES teams(teamid)
FOREIGN KEY (teamid) REFERENCES teams(teamid),
FOREIGN KEY (projectid) REFERENCES projects(projectid) FOREIGN KEY (projectid) REFERENCES projects(projectid)
); );




+ 0
- 34
templates/index.html Ver arquivo

@@ -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>

Carregando…
Cancelar
Salvar