categorize.phtml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php $this->partial ('aside_feed'); ?>
  2. <div class="post">
  3. <a href="<?php echo _url ('index', 'index'); ?>"><?php echo Minz_Translate::t ('back_to_rss_feeds'); ?></a>
  4. <form method="post" action="<?php echo _url ('configure', 'categorize'); ?>">
  5. <legend><?php echo Minz_Translate::t ('categories_management'); ?></legend>
  6. <p class="alert alert-warn"><?php echo Minz_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 Minz_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. <?php if ($cat->nbFeed () > 0) { ?>
  15. <button type="submit" class="btn btn-attention confirm" formaction="<?php echo _url ('feed', 'delete', 'id', $cat->id (), 'type', 'category'); ?>"><?php echo Minz_Translate::t ('ask_empty'); ?></button>
  16. <?php } ?>
  17. (<?php echo Minz_Translate::t ('number_feeds', $cat->nbFeed ()); ?>)
  18. <?php if ($cat->id () === $this->defaultCategory->id ()) { ?>
  19. <?php echo FreshRSS_Themes::icon('help'); ?> <?php echo Minz_Translate::t ('can_not_be_deleted'); ?>
  20. <?php } ?>
  21. <input type="hidden" name="ids[]" value="<?php echo $cat->id (); ?>" />
  22. </div>
  23. </div>
  24. <?php } ?>
  25. <div class="form-group">
  26. <label class="group-name" for="new_category"><?php echo Minz_Translate::t ('add_category'); ?></label>
  27. <div class="group-controls">
  28. <input type="text" id="new_category" name="new_category" placeholder="<?php echo Minz_Translate::t ('new_category'); ?>" />
  29. </div>
  30. </div>
  31. <div class="form-group form-actions">
  32. <div class="group-controls">
  33. <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
  34. <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
  35. </div>
  36. </div>
  37. </form>
  38. </div>