summaryrefslogtreecommitdiffstatshomepage
path: root/data/templates/minimal/bookmarkcommondescriptionedit.tpl.php
blob: b1114d725693a2bf6699623c68ccd3a3f7fd9a78 (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
<?php

$this->includeTemplate($GLOBALS['top_include']);

list ($url, $hash) = explode('/', $_SERVER['PATH_INFO']);


?>
<script type="text/javascript">
window.onload = function() {
    document.getElementById("title").focus();
}
</script>

<div class="container-full">
	<div class="row">
		<div class="col-12 col-xs-12 col-sm-12 col-lg-12">
			<form action="<?php echo $formaction; ?>" method="post">
			<table title="<?php echo T_('Collaborative description: these fields can be viewed and modified by every users') ?>">
			<tr>
					<th align="left"><?php echo T_('Title'); ?></th>
					<td><input class="form-control" type="text" id="title" name="title" size="75" maxlength="255" value="<?php echo $description['cdTitle']; ?>" onkeypress="this.style.backgroundImage = 'none';" /></td>
					<td></td>
			</tr>
			<tr>
					<th align="left"><?php echo T_('Description'); ?></th>
					<td><textarea class="form-control" name="description" cols="75" rows="10"><?php echo $description['cdDescription']; ?></textarea></td>
			</tr>
			<tr>
					<td></td>
					<td>
				<?php
				if(strlen($description['cdDatetime'])>0) {
					echo T_('Last modification:').' '.$description['cdDatetime'].', ';
					$lastUser = $userservice->getUser($description['uId']);
					echo  '<a href="'.createURL('profile', $lastUser['username']).'">'
								. SemanticScuttle_Model_UserArray::getName($lastUser) . '</a>';
				}
				?>
					</td>
					<td></td>
			</tr>
			<tr>
					<td></td>
					<td>
					<input class="btn btn-default" type="submit" name="confirm" value="<?php echo T_('Update'); ?>" />
					<input class="btn btn-default" type="submit" name="cancel" value="<?php echo T_('Cancel'); ?>" />
					</td>
					<td></td>
			</tr>
			</table>

			<?php if (isset($referrer)): ?>
			<div><input type="hidden" name="referrer" value="<?php echo $referrer; ?>" /></div>
			<?php endif; ?>
			<div><input type="hidden" name="hash" value="<?php echo $hash; ?>" /></div>
			</form>
		</div>
	</div>
</div>

<?php
$this->includeTemplate($GLOBALS['bottom_include']); 
?>