aboutsummaryrefslogtreecommitdiff
path: root/app/views/helpers/category/update.phtml
blob: a2ee3e2ef7dd200a370097cc22ee9aa6e5205ec6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<div class="post">
	<h1><?php echo $this->category->name(); ?></h1>

	<div>
		<a href="<?php echo _url('index', 'index', 'get', 'c_' . $this->category->id()); ?>"><?php echo _i('link'); ?> <?php echo _t('gen.action.filter'); ?></a>
	</div>

	<form method="post" action="<?php echo _url('subscription', 'category', 'id', $this->category->id()); ?>" autocomplete="off">
		<input type="hidden" name="_csrf" value="<?php echo FreshRSS_Auth::csrfToken(); ?>" />
		<legend><?php echo _t('sub.category.information'); ?></legend>
		<div class="form-group">
			<label class="group-name" for="name"><?php echo _t('sub.category.title'); ?></label>
			<div class="group-controls">
				<input type="text" name="name" id="name" class="extend" value="<?php echo $this->category->name() ; ?>" />
			</div>
		</div>

		<div class="form-group form-actions">
			<div class="group-controls">
				<button class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button>
				<button class="btn btn-attention confirm"
					data-str-confirm="<?php echo _t('gen.js.confirm_action_feed_cat'); ?>"
					formaction="<?php echo _url('category', 'empty', 'id', $this->category->id()); ?>"
					formmethod="post"><?php echo _t('gen.action.empty'); ?></button>
				<?php if (!$this->category->isDefault()): ?>
				<button class="btn btn-attention confirm"
					data-str-confirm="<?php echo _t('gen.js.confirm_action_feed_cat'); ?>"
					formaction="<?php echo _url('category', 'delete', 'id', $this->category->id()); ?>"
					formmethod="post"><?php echo _t('gen.action.remove'); ?></button>
				<?php endif;?>
			</div>
		</div>
	</form>
</div>