|
117 | 117 | <br> |
118 | 118 | {%if bool %} |
119 | 119 | <table class="gridtable"> |
120 | | - <col width="60"> |
| 120 | + <col width="80"> |
121 | 121 | <col width="1500"> |
122 | | - <col width="60"> |
| 122 | + <col width="80"> |
123 | 123 | <br> |
124 | 124 | <br> |
125 | 125 | <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"> |
127 | 152 | <th>Name</th> |
128 | 153 | <th>{%if value == "1" %} |
129 | 154 | Announcements |
|
140 | 165 | <th>Time</th> |
141 | 166 | </tr> |
142 | 167 | {%for item in data %} |
143 | | - <tr> |
| 168 | + <tr style="font-size:25px"> |
144 | 169 | <td align="center">{{item.name}}</td> |
145 | 170 | <td align="left">{{item.text}}</td> |
146 | 171 | <td align="center">{{item.time}}</td> |
147 | 172 | </tr> |
148 | 173 | {%endfor%} |
149 | 174 | </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 | + |
173 | 176 | {%endif%} |
174 | 177 |
|
175 | 178 |
|
|
0 commit comments