mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 01:37:02 +02:00
improved folder handling
This commit is contained in:
47
webui/view/theme/default/templates/folder/edit.tpl
Normal file
47
webui/view/theme/default/templates/folder/edit.tpl
Normal file
@ -0,0 +1,47 @@
|
||||
|
||||
<?php if(ENABLE_FOLDER_RESTRICTIONS == 1) { ?>
|
||||
|
||||
<form action="index.php?route=folder/edit" method="post" name="extra_folders" class="form-horizontal">
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="domain"><?php print $text_folder; ?>:</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="name" name="name" value="<?php print $folder['name']; ?>" />
|
||||
<input type="hidden" id="id" name="id" value="<?php print $folder['id']; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<input type="submit" value="<?php print $text_modify; ?>" class="btn btn-primary" />
|
||||
<input type="reset" value="<?php print $text_clear; ?>" class="btn" />
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
<div id="search">
|
||||
|
||||
<h4><?php print $text_existing_folders; ?></h4>
|
||||
|
||||
<table id="search1" class="table table-striped table-condensed">
|
||||
<thead>
|
||||
<th><?php print $text_folder; ?></th>
|
||||
<th> </th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($extra_folders as $folder) { ?>
|
||||
<tr>
|
||||
<td><?php print $folder['name']; ?></td>
|
||||
<td><a href="index.php?route=folder/edit&id=<?php print $folder['id']; ?>"><?php print $text_edit; ?></a></td>
|
||||
<td><a href="/folders.php?id=<?php print $folder['id']; ?>&remove=1"><?php print $text_remove; ?></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
@ -26,13 +26,14 @@
|
||||
|
||||
<table id="search1" class="table table-striped table-condensed">
|
||||
<thead>
|
||||
<th><?php print $_['text_folder']; ?> <?php print $_['text_name']; ?></th>
|
||||
<th><?php print $text_folder; ?></th>
|
||||
<th> </th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($extra_folders as $folder) { ?>
|
||||
<tr>
|
||||
<td><?php print $folder['name']; ?></td>
|
||||
<td><a href="index.php?route=folder/edit&id=<?php print $folder['id']; ?>"><?php print $text_edit; ?></a></td>
|
||||
<td><a href="/folders.php?id=<?php print $folder['id']; ?>&remove=1"><?php print $text_remove; ?></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
Reference in New Issue
Block a user