2014-07-23 15:52:50 +02:00
|
|
|
<?php $this->partial ('aside_feed'); ?>
|
|
|
|
|
|
|
|
<div class="post">
|
|
|
|
<a href="<?php echo _url ('index', 'index'); ?>"><?php echo Minz_Translate::t ('back_to_rss_feeds'); ?></a>
|
|
|
|
|
|
|
|
<form method="post" action="<?php echo _url ('configure', 'categorize'); ?>">
|
|
|
|
<legend><?php echo Minz_Translate::t ('categories_management'); ?></legend>
|
|
|
|
|
|
|
|
<p class="alert alert-warn"><?php echo Minz_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 Minz_Translate::t ('category_number', $i); ?>
|
|
|
|
</label>
|
|
|
|
<div class="group-controls">
|
|
|
|
<div class="stick">
|
|
|
|
<input type="text" id="cat_<?php echo $cat->id (); ?>" name="categories[]" value="<?php echo $cat->name (); ?>" />
|
|
|
|
|
|
|
|
<?php if ($cat->nbFeed () > 0) { ?>
|
2014-09-27 10:10:43 +02:00
|
|
|
<a class="btn" href="<?php echo _url('index', 'index', 'get', 'c_' . $cat->id ()); ?>">
|
|
|
|
<?php echo _i('link'); ?>
|
|
|
|
</a>
|
|
|
|
<button formaction="<?php echo _url('feed', 'delete', 'id', $cat->id (), 'type', 'category'); ?>"
|
|
|
|
class="btn btn-attention confirm"
|
|
|
|
data-str-confirm="<?php echo _t('confirm_action_feed_cat'); ?>"
|
|
|
|
type="submit"><?php echo _t('ask_empty'); ?></button>
|
2014-07-23 15:52:50 +02:00
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
(<?php echo Minz_Translate::t ('number_feeds', $cat->nbFeed ()); ?>)
|
|
|
|
|
|
|
|
<?php if ($cat->id () === $this->defaultCategory->id ()) { ?>
|
|
|
|
<?php echo FreshRSS_Themes::icon('help'); ?> <?php echo Minz_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 Minz_Translate::t ('add_category'); ?></label>
|
|
|
|
<div class="group-controls">
|
|
|
|
<input type="text" id="new_category" name="new_category" placeholder="<?php echo Minz_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 Minz_Translate::t ('save'); ?></button>
|
|
|
|
<button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|