aboutsummaryrefslogtreecommitdiff
path: root/app/views/entry/note.phtml
blob: 061060106afed17b646c10bcf72a6fc6f183e904 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php $this->partial ('aside_flux'); ?>

<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 ('entry', 'note', 'id', $this->entry->id ()); ?>">
		<legend><?php echo Translate::t ('note'); ?></legend>

		<div class="form-group">
			<label class="group-name" for="note"><?php echo Translate::t ('add_note'); ?></label>
			<div class="group-controls">
				<textarea rows="5" cols="80" name="note" id="note"><?php echo $this->entry->notes (); ?></textarea>
			</div>
		</div>
		<div class="form-group">
			<label class="group-name" for="public_note"><?php echo Translate::t ('ask_public_article'); ?></label>
			<div class="group-controls">
				<label class="checkbox" for="public">
					<input type="checkbox" name="public" id="public" value="yes"<?php echo $this->entry->isPublic () ? ' checked="checked"' : ''; ?> /> <?php echo Translate::t ('yes'); ?>
				</label>
			</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>

		<legend><?php echo Translate::t ('article'); ?></legend>

		<div class="form-group">
			<label class="group-name"><?php echo Translate::t ('title'); ?></label>
			<div class="group-controls">
				<span class="control"><a href="<?php echo $this->entry->link (); ?>"><?php echo $this->entry->title (); ?></a></span>
			</div>
		</div>

		<?php
		$author = $this->entry->author ();
		if ($author) { ?>
		<div class="form-group">
			<label class="group-name"><?php echo Translate::t ('author'); ?></label>
			<div class="group-controls">
				<span class="control"><?php echo $author; ?></span>
			</div>
		</div>
		<?php } ?>

		<div class="form-group">
			<label class="group-name"><?php echo Translate::t ('publication_date'); ?></label>
			<div class="group-controls">
				<span class="control"><?php echo $this->entry->date (); ?></span>
			</div>
		</div>

		<div class="form-group">
			<label class="group-name"><?php echo Translate::t ('article'); ?></label>
			<div class="group-controls">
				<span class="control"><?php echo $this->entry->content (); ?></span>
			</div>
		</div>
	</form>
</div>