63 lines
2.0 KiB
HTML
63 lines
2.0 KiB
HTML
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
xmlns:py="http://genshi.edgewall.org/">
|
|
<xi:include href="admin.html" />
|
|
<head>
|
|
<title>Accounts: Configuration</title>
|
|
</head>
|
|
|
|
<body>
|
|
<h2>Manage Site Files</h2>
|
|
|
|
<py:if test="'USER_UPLOAD' in perm(context.resource)">
|
|
<form id="addfile" action="" class="addnew" method="post" enctype="multipart/form-data">
|
|
<fieldset>
|
|
<legend>Upload File:</legend>
|
|
<div class="field">
|
|
<label>File: <input type="file" name="site_file"
|
|
disabled="${readonly and 'disabled' or None}" /></label>
|
|
</div>
|
|
<p class="help" py:choose="True">
|
|
<py:when test="readonly">
|
|
The web server does not have sufficient permissions to
|
|
store files in your home directory.
|
|
</py:when>
|
|
<py:otherwise>
|
|
Upload a file to your home directory.
|
|
</py:otherwise>
|
|
</p>
|
|
<div class="buttons">
|
|
<input type="submit" name="upload" value="Upload"
|
|
disabled="${readonly and 'disabled' or None}" />
|
|
</div>
|
|
</fieldset>
|
|
</form>
|
|
</py:if>
|
|
<form method="post">
|
|
<table class="listing" id="sitelist">
|
|
<thead>
|
|
<tr><th colspan="3" style="text-align:center;">Content of ${project.name}/users/${authname}</th></tr>
|
|
<tr><th class="sel">delete</th><th>Filename</th><th>Size</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr py:for="file in files" >
|
|
<td><input type="checkbox" name="sel" value="${file.name}"/></td>
|
|
<td>${file.link}</td>
|
|
<td>${file.size}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<py:if test="'USER_UPLOAD_MANAGE' in perm(context.resource)">
|
|
<div class="buttons">
|
|
<input type="submit" name="delete" value="Delete selected files"
|
|
disabled="${readonly and 'disabled' or None}" />
|
|
</div>
|
|
</py:if>
|
|
</form>
|
|
|
|
</body>
|
|
</html>
|