Преглед на файлове

Can not see or modify files if the task is open and the user is not the owner

https
jakobsn преди 6 години
родител
ревизия
367dfe5105
променени са 1 файла, в които са добавени 13 реда и са изтрити 10 реда
  1. +13
    -10
      src/app/templates/project.html

+ 13
- 10
src/app/templates/project.html Целия файл

@@ -21,16 +21,19 @@ $def with (nav, project, tasks)
<ul>
$for task in tasks:
<li id="$task[0]">$task
<br>
$for filename in get_task_files(task[0]):
<a href="$filename[0]" download>$filename[0].split("/")[-1]</a>
<br>
<form method="POST" enctype="multipart/form-data" action="">
<input type="file" name="myfile" />
<br/>
<input type="hidden" name="taskid" value="$task[0]"/>
<input type="submit" name="submit"/>
</form>
<br>
$if project[5] == "in progress":
$for filename in get_task_files(task[0]):
<a href="$filename[0]" download>$filename[0].split("/")[-1]</a>
<br>
<form method="POST" enctype="multipart/form-data" action="">
<input type="file" name="myfile" />
<br/>
<input type="hidden" name="taskid" value="$task[0]"/>
<input type="submit" name="submit"/>
</form>
</li>
</ul>



Loading…
Отказ
Запис