You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.9 KiB
47 lines
1.9 KiB
<?php $this->partial ('aside_feed'); ?> |
|
|
|
<div class="post"> |
|
<a href="<?php echo _url ('index', 'index'); ?>"><?php echo Translate::t ('back_to_rss_feeds'); ?></a> |
|
|
|
<form method="post" action="<?php echo _url ('configure', 'categorize'); ?>"> |
|
<legend><?php echo Translate::t ('categories_management'); ?></legend> |
|
|
|
<p class="alert alert-warn"><?php echo Translate::t ('feeds_moved_category_deleted', $this->defaultCategory->name ()); ?></p> |
|
|
|
<?php $i = 0; foreach ($this->categories as $cat) { $i++; ?> |
|
<div class="form-group"> |
|
<label class="group-name" for="cat_<?php echo $cat->id (); ?>"> |
|
<?php echo Translate::t ('category_number', $i); ?> |
|
</label> |
|
<div class="group-controls"> |
|
<input type="text" id="cat_<?php echo $cat->id (); ?>" name="categories[]" value="<?php echo $cat->name (); ?>" /> |
|
|
|
<?php if ($cat->nbFeed () > 0) { ?> |
|
<a class="confirm" href="<?php echo _url ('feed', 'delete', 'id', $cat->id (), 'type', 'category'); ?>"><?php echo Translate::t ('ask_empty'); ?></a> |
|
<?php } ?> |
|
(<?php echo Translate::t ('number_feeds', $cat->nbFeed ()); ?>) |
|
|
|
<?php if ($cat->id () == $this->defaultCategory->id ()) { ?> |
|
<i class="icon i_help"></i> <?php echo Translate::t ('can_not_be_deleted'); ?> |
|
<?php } ?> |
|
|
|
<input type="hidden" name="ids[]" value="<?php echo $cat->id (); ?>" /> |
|
</div> |
|
</div> |
|
<?php } ?> |
|
|
|
<div class="form-group"> |
|
<label class="group-name" for="new_category"><?php echo Translate::t ('add_category'); ?></label> |
|
<div class="group-controls"> |
|
<input type="text" id="new_category" name="new_category" placeholder="<?php echo Translate::t ('new_category'); ?>" /> |
|
</div> |
|
</div> |
|
|
|
<div class="form-group form-actions"> |
|
<div class="group-controls"> |
|
<button type="submit" class="btn btn-important"><?php echo Translate::t ('save'); ?></button> |
|
<button type="reset" class="btn"><?php echo Translate::t ('cancel'); ?></button> |
|
</div> |
|
</div> |
|
</form> |
|
</div>
|
|
|