categorize.phtml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php $this->partial ('aside_configure'); ?>
  2. <div class="post">
  3. <a href="<?php echo _url ('index', 'index'); ?>"><?php echo Translate::t ('back_to_rss_feeds'); ?></a>
  4. <form method="post" action="<?php echo _url ('configure', 'categorize'); ?>">
  5. <legend><?php echo Translate::t ('categories_management'); ?> - <a href="<?php echo _url ('configure', 'feed'); ?>"><?php echo Translate::t ('rss_feed_management'); ?></a></legend>
  6. <p class="alert alert-warn"><?php echo Translate::t ('feeds_moved_category_deleted', $this->defaultCategory->name ()); ?></p>
  7. <?php $i = 0; foreach ($this->categories as $cat) { $i++; ?>
  8. <div class="form-group">
  9. <label class="group-name" for="cat_<?php echo $cat->id (); ?>">
  10. <?php echo Translate::t ('category_number', $i); ?>
  11. </label>
  12. <div class="group-controls">
  13. <input type="text" id="cat_<?php echo $cat->id (); ?>" name="categories[]" value="<?php echo $cat->name (); ?>" />
  14. <a href="<?php echo _url ('feed', 'delete', 'id', $cat->id (), 'type', 'category'); ?>"><?php echo Translate::t ('ask_empty'); ?></a> (<?php echo Translate::t ('number_feeds', $cat->nbFeed ()); ?>)
  15. <?php if ($cat->id () == $this->defaultCategory->id ()) { ?>
  16. <i class="icon i_help"></i> <?php echo Translate::t ('can_not_be_deleted'); ?>
  17. <?php } ?>
  18. <input type="hidden" name="ids[]" value="<?php echo $cat->id (); ?>" />
  19. </div>
  20. </div>
  21. <?php } ?>
  22. <div class="form-group">
  23. <label class="group-name" for="new_category"><?php echo Translate::t ('add_category'); ?></label>
  24. <div class="group-controls">
  25. <input type="text" id="new_category" name="new_category" placeholder="<?php echo Translate::t ('new_category'); ?>" />
  26. </div>
  27. </div>
  28. <div class="form-group form-actions">
  29. <div class="group-controls">
  30. <button type="submit" class="btn btn-important"><?php echo Translate::t ('save'); ?></button>
  31. <button type="reset" class="btn"><?php echo Translate::t ('cancel'); ?></button>
  32. </div>
  33. </div>
  34. </form>
  35. </div>