Skip to content

Commit a65e5e9

Browse files
committed
Changes to be committed:
1 parent 48854af commit a65e5e9

File tree

2 files changed

+30
-27
lines changed

2 files changed

+30
-27
lines changed

college/db.sqlite3

0 Bytes
Binary file not shown.

college/social/templates/in.html

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,38 @@
117117
<br>
118118
{%if bool %}
119119
<table class="gridtable">
120-
<col width="60">
120+
<col width="80">
121121
<col width="1500">
122-
<col width="60">
122+
<col width="80">
123123
<br>
124124
<br>
125125
<br>
126-
<tr>
126+
127+
128+
{%if value == "1" or value == "4" %}
129+
<form action="/home{{value}}/" method="POST">
130+
<textarea rows="10" cols="200" name="text" placeholder="Wanna add something ? Go on!" style="vertical-align:middle "></textarea>
131+
<button type="submit" style="size:100px" >Add</Button>
132+
{%csrf_token%}
133+
</form>
134+
{%endif%}
135+
136+
{%if value == "2" and type != "administration" %}
137+
<form action="/home2/" method="POST">
138+
<textarea rows="10" cols="200" name="text" placeholder="Wanna add something ? Go on!" style="vertical-align:middle "></textarea>
139+
<input type="submit" value="Add">
140+
{%csrf_token%}
141+
</form>
142+
{%endif%}
143+
{%if value == "3" and type == "faculty" %}
144+
<form action="/home4/" method="POST">
145+
<textarea rows="10" cols="200" name="text" placeholder="Wanna add something ? Go on!" style="vertical-align:middle "></textarea>
146+
<input type="submit" value="Add">
147+
{%csrf_token%}
148+
</form>
149+
{%endif %}
150+
151+
<tr style="font-size:30px">
127152
<th>Name</th>
128153
<th>{%if value == "1" %}
129154
Announcements
@@ -140,36 +165,14 @@
140165
<th>Time</th>
141166
</tr>
142167
{%for item in data %}
143-
<tr>
168+
<tr style="font-size:25px">
144169
<td align="center">{{item.name}}</td>
145170
<td align="left">{{item.text}}</td>
146171
<td align="center">{{item.time}}</td>
147172
</tr>
148173
{%endfor%}
149174
</table>
150-
151-
{%if value == "1" or value == "4" %}
152-
<form action="/home{{value}}/" method="POST">
153-
<textarea rows="10" cols="200" name="text" placeholder="Wanna add something ? Go on!" style="vertical-align:middle "></textarea>
154-
<button type="submit" style="size:100px" >Add</Button>
155-
{%csrf_token%}
156-
</form>
157-
{%endif%}
158-
159-
{%if value == "2" and type != "administration" %}
160-
<form action="/home2/" method="POST">
161-
<textarea rows="10" cols="100" name="text" placeholder="Wanna add something ? Go on!" style="vertical-align:middle "></textarea>
162-
<input type="submit" value="Add">
163-
{%csrf_token%}
164-
</form>
165-
{%endif%}
166-
{%if value == "3" and type == "faculty" %}
167-
<form action="/home4/" method="POST">
168-
<textarea rows="10" cols="100" name="text" placeholder="Wanna add something ? Go on!" style="vertical-align:middle "></textarea>
169-
<input type="submit" value="Add">
170-
{%csrf_token%}
171-
</form>
172-
{%endif %}
175+
173176
{%endif%}
174177

175178

0 commit comments

Comments
 (0)