[{INCLUDE templates/header.html}]
<script type="text/javascript">
$(document).ready(function(){
$("#selectall").click(function(){
selectAll(this, "selected_repos[]");
});
});
</script>
[{IFDEF INFO}]<div class="infomsg">${INFOMSG}</div>[{/IFDEF}]
[{IFDEF WARNING}]<div class="warningmsg">${WARNINGMSG}</div>[{/IFDEF}]
[{IFDEF ERROR}]<div class="errormsg">${ERRORMSG}</div>[{/IFDEF}]
<h1>TR{Repository management}}</h1>
<p class="hdesc">TR{On this page you can view your existing repositories and create or delete an repository.}}</p>
<div class="datatablesearch">
TR{Filter}}:
<input type="text" class="filterbox" onkeyup="filterDataTable('repolist',2,this.value);">
</div>
<form action="repositorylist.php" method="POST">
<table id="repolist" class="datatable">
<thead>
<tr>
<th width="22"></th>
<th width="20">[{IFDEF REPOSITORY_EDIT_ACTIVE && ACL_repositories_delete}]<input type="checkbox" id="selectall">[{/IFDEF}]</th>
<th>TR{Repository}}</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="3">
<table class="datatableinline">
<colgroup>
<col width="50%">
<col width="50%">
</colgroup>
<tr>
<td>
[{IFDEF REPOSITORY_EDIT_ACTIVE && ACL_repositories_delete}]
<input type="submit" name="delete" value="TR{Delete}}" class="delbtn" onclick="return deletionPrompt('TR{Are you sure?}}');">
[{/IFDEF}]
</td>
<td align="right">
</td>
</tr>
</table>
</td>
</tr>
</tfoot>
<tbody>
[{LOOP repos}]
<tr>
<td>
[{IFDEF ACCESSPATH_EDIT_ACTIVE && ACL_accesspaths_add}]
<a href="accesspathcreate.php?r=${repos}{encodedName}">
<img src="templates/icons/addpath.png" alt="Add access path" title="TR{Add access path}}">
</a>
[{/IFDEF}]
</td>
<td>[{IFDEF REPOSITORY_EDIT_ACTIVE && ACL_repositories_delete}]<input type="checkbox" name="selected_repos[]" value="${repos}{name}">[{/IFDEF}]</td>
<td><a href="repositoryview.php?r=${repos}{encodedName}">${repos}{name}</a></td>
</tr>
[{/LOOP}]
</tbody>
</table>
</form>
[{INCLUDE templates/footer.html}]