summaryrefslogtreecommitdiffstats
path: root/apps/contacts/templates/part.selectaddressbook.php
blob: c54ddaf2e67e33cffa2d94e3837aeee8331ce3a6 (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
<div id="selectaddressbook_dialog" title="<?php echo $l->t("Select Address Books"); ?>">
<form>
<table style="width: 100%">
	<?php foreach($_['addressbooks'] as $idx => $addressbook) { ?>
	<tr>
		<td>
			<input id="book_<?php echo $addressbook['id']; ?>" name="book" type="radio" value="<?php echo $addressbook['id']; ?>" <?php echo ($idx==0?'checked="checked"':'')?>>
		</td>
		<td>
			<label for="book_<?php echo $addressbook['id']; ?>"><?php echo $addressbook['displayname']; ?></label>
		</td>
		<td><?php echo $addressbook['description']; ?></td>
	</tr>
	<?php } ?>
	<tr>
		<td>
			<input id="book_new" name="book" type="radio" value="new">
		</td>
		<th>
			<input type="text" class="name" name="displayname" placeholder="<?php echo $l->t("Enter name"); ?>" />
		</th>
		<td><input type="text" class="desc" name="description" placeholder="<?php echo $l->t("Enter description"); ?>" /></td>
	</tr>
</table>
</form>
</div>