piler/webui/view/theme/default/templates/folder/list.tpl

53 lines
1.6 KiB
Smarty
Raw Normal View History

2012-09-15 15:30:35 +02:00
<?php if(!isset($x)){ ?>
<?php if(ENABLE_FOLDER_RESTRICTIONS == 1) { ?>
2013-04-05 10:16:33 +02:00
<form action="folders.php" method="post" name="extra_folders" class="form-horizontal">
2012-09-15 15:30:35 +02:00
2013-04-05 10:16:33 +02:00
<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="" />
</div>
</div>
2012-09-15 15:30:35 +02:00
2013-04-05 10:16:33 +02:00
<div class="form-actions">
<input type="submit" value="<?php print $text_add; ?>" class="btn btn-primary" />
<input type="reset" value="<?php print $text_clear; ?>" class="btn" />
</div>
2012-09-15 15:30:35 +02:00
</form>
2013-04-05 10:16:33 +02:00
<div id="search">
2012-09-15 15:30:35 +02:00
2013-04-05 10:16:33 +02:00
<h4><?php print $text_existing_folders; ?></h4>
2012-09-15 15:30:35 +02:00
2013-04-05 10:16:33 +02:00
<table id="search1" class="table table-striped table-condensed">
<thead>
2015-10-02 13:19:40 +02:00
<th><?php print $text_folder; ?></th>
2013-04-05 10:16:33 +02:00
<th>&nbsp;</th>
</thead>
<tbody>
2012-09-15 15:30:35 +02:00
<?php foreach($extra_folders as $folder) { ?>
2013-04-05 10:16:33 +02:00
<tr>
<td><?php print $folder['name']; ?></td>
2015-10-02 13:19:40 +02:00
<td><a href="index.php?route=folder/edit&id=<?php print $folder['id']; ?>"><?php print $text_edit; ?></a></td>
2013-04-05 10:16:33 +02:00
<td><a href="/folders.php?id=<?php print $folder['id']; ?>&remove=1"><?php print $text_remove; ?></a></td>
</tr>
2012-09-15 15:30:35 +02:00
<?php } ?>
2013-04-05 10:16:33 +02:00
</tbody>
</table>
2012-09-15 15:30:35 +02:00
</div>
<?php } ?>
<?php } else { ?>
2013-04-05 10:16:33 +02:00
<div class="alert alert-info"><?php print $x; ?>.</div>
<p><a href="index.php?route=common/home"><i class="icon-circle-arrow-left"></i>&nbsp;<?php print $text_back; ?></a></p>
2012-09-15 15:30:35 +02:00
<?php } ?>