chris999 commited on
Commit
0157ea9
·
verified ·
1 Parent(s): 82ac72c

Upload 10 files

Browse files
instance/sociocracy.db ADDED
Binary file (28.7 kB). View file
 
requirements.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ asgiref==3.8.1
2
+ Django==5.1.1
3
+ sqlparse==0.5.1
4
+ tzdata==2024.1
templates/create_issue.html ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Create Issue</title>
6
+ </head>
7
+ <body>
8
+ <h1>Create Issue</h1>
9
+ <form action="/create_issue" method="POST">
10
+ <input type="text" name="title" placeholder="Issue Title" required><br><br />
11
+ <textarea name="description" placeholder="Issue Description" required rows="4" cols="50"></textarea><br><br />
12
+ <input type="submit" value="Create Issue">
13
+ </form>
14
+ </body>
15
+ </html>
templates/dashboard.html ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Dashboard</title>
6
+ </head>
7
+ <body>
8
+ <h1>Dashboard</h1>
9
+
10
+ <h2>Your Issues</h2>
11
+ <ul>
12
+ {% for issue in issues %}
13
+ <li>{{ issue.title }} - <a href="/submit_solution/{{ issue.id }}">Submit Solution</a> - <a href="/decide/{{ issue.id }}">Decide</a></li>
14
+ {% endfor %}
15
+ </ul>
16
+
17
+ <h2>Issues You Are Collaborating On</h2>
18
+ <ul>
19
+ {% for issue in collaboration_issues %}
20
+ <li>{{ issue.title }} - <a href="/submit_solution/{{ issue.id }}">Submit Solution</a> - <a href="/decide/{{ issue.id }}">Decide</a></li>
21
+ {% endfor %}
22
+ </ul>
23
+
24
+ <a href="/create_issue">Create New Issue</a>
25
+ </body>
26
+ </html>
templates/decide.html ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Decide on Solution</title>
6
+ </head>
7
+ <body>
8
+ <h1>Decide on Solution for: {{ issue.title }}</h1>
9
+ <ul>
10
+ {% for solution in solutions %}
11
+ <li>{{ solution.content }}</li>
12
+ {% endfor %}
13
+ </ul>
14
+ <form action="/decide/{{ issue.id }}" method="POST">
15
+ <input type="submit" value="Get AI Decision">
16
+ </form>
17
+ </body>
18
+ </html>
templates/decision.html ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Decision</title>
6
+ </head>
7
+ <body>
8
+ <h1>AI Decision</h1>
9
+ <p>{{ decision }}</p>
10
+ <a href="/dashboard">Back to Dashboard</a>
11
+ </body>
12
+ </html>
templates/invite_collaborators.html ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Invite Collaborators</title>
6
+ </head>
7
+ <body>
8
+ <h1>Invite Collaborators</h1>
9
+ <form action="/invite_collaborators/{{ issue_id }}" method="POST">
10
+ <input type="text" name="emails" placeholder="Comma-separated emails" required><br>
11
+ <input type="submit" value="Send Invites">
12
+ </form>
13
+ </body>
14
+ </html>
templates/login.html ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Login</title>
7
+ </head>
8
+ <body>
9
+ <h1>Login Page</h1>
10
+ <form action="/login" method="post">
11
+ <input type="text" name="username" placeholder="Username" required><br>
12
+ <input type="password" name="password" placeholder="Password" required><br>
13
+ <input type="submit" value="Login">
14
+ </form>
15
+ </body>
16
+ </html>
templates/register.html ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Register</title>
6
+ </head>
7
+ <body>
8
+ <h1>Register</h1>
9
+ <form action="/register" method="POST">
10
+ <input type="text" name="username" placeholder="Username" required><br>
11
+ <input type="email" name="email" placeholder="Email" required><br>
12
+ <input type="password" name="password" placeholder="Password" required><br>
13
+ <input type="submit" value="Register">
14
+ </form>
15
+ </body>
16
+ </html>
templates/submit_solution.html ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Submit Solution</title>
6
+ </head>
7
+ <body>
8
+ <h1>Submit Solution</h1>
9
+ <form action="/submit_solution/{{ issue_id }}" method="POST">
10
+ <textarea name="solution" placeholder="Provide your solution" required rows="4" cols="50"></textarea><br><br />
11
+ <input type="submit" value="Submit Solution">
12
+ </form>
13
+ </body>
14
+ </html>