summaryrefslogtreecommitdiffstats
path: root/apps/contacts/templates/part.addcardform.php
blob: 8e482cc4ebaa5e4a50f16356789c133686327482 (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<form class="formtastic" id="contacts_addcardform">
	<?php if(count($_['addressbooks'])==1): ?>
		<input type="hidden" name="id" value="<?php echo $_['addressbooks'][0]['id']; ?>">
	<?php else: ?>
		<fieldset class="inputs">
			<ol>
				<li class="input stringish">
					<label class="label" for="id"><?php echo $l->t('Group'); ?></label>
					<select name="id" size="1">
						<?php foreach($_['addressbooks'] as $addressbook): ?>
							<option value="<?php echo $addressbook['id']; ?>"><?php echo $addressbook['displayname']; ?></option>
						<?php endforeach; ?>
					</select>
				</li>
			</ol>
		</fieldset>
	<?php endif; ?>
	<fieldset class="inputs">
		<ol>
			<li class="input stringish">
				<label class="label" for="fn"><?php echo $l->t('Name'); ?></label>
				<input type="text" name="fn" value=""><br>
			</li>
			<li class="input stringish">
				<label class="label" for="org"><?php echo $l->t('Organization'); ?></label>
				<input id="org" type="text" name="value[ORG]" value="">
			</li>
		</ol>
	</fieldset>
	<fieldset class="inputs">
		<ol>
			<li class="input stringish">
				<label class="label" for="email"><?php echo $l->t('Email'); ?></label>
				<input id="email" type="text" name="value[EMAIL]" value="">
			</li>
			<li class="input">
				<fieldset class="fragments">
					<legend class="label">
						<label for="tel"><?php echo $l->t('Telephone'); ?></label>
					</legend>
					<ol class="fragments-group">
						<li class="fragment">
							<label for="tel"><?php echo $l->t('Number'); ?></label>
							<input type="phone" id="tel" name="value[TEL]" value="">
						</li>
						<li class="fragment">
							<label for="tel_type"><?php echo $l->t('Type'); ?></label>
							<select id="TEL" name="parameters[TEL][TYPE]" size="1">
								<option value="home"><?php echo $l->t('Home'); ?></option>
								<option value="cell" selected="selected"><?php echo $l->t('Mobile'); ?></option>
								<option value="work"><?php echo $l->t('Work'); ?></option>
								<option value="text"><?php echo $l->t('Text'); ?></option>
								<option value="voice"><?php echo $l->t('Voice'); ?></option>
								<option value="fax"><?php echo $l->t('Fax'); ?></option>
								<option value="video"><?php echo $l->t('Video'); ?></option>
								<option value="pager"><?php echo $l->t('Pager'); ?></option>
							</select>
						</li>
					</ol>
				</fieldset>
			</li>
		</ol>
	</fieldset>
	<fieldset class="inputs">
		<legend><?php echo $l->t('Address'); ?></legend>
		<ol>
			<li class="input">
				<label class="label" for="adr_type"><?php echo $l->t('Type'); ?></label>
				<select id="adr_type" name="parameters[ADR][TYPE]" size="1">
					<option value="work"><?php echo $l->t('Work'); ?></option>
					<option value="home" selected="selected"><?php echo $l->t('Home'); ?></option>
				</select>
			</li>
			<li class="input stringish">
				<label class="label" for="adr_pobox"><?php echo $l->t('PO Box'); ?></label>
				<input type="text" id="adr_pobox" name="value[ADR][0]" value="">
			</li>
			<li class="input stringish">
				<label class="label" for="adr_extended"><?php echo $l->t('Extended'); ?></label>
				<input type="text" id="adr_extended" name="value[ADR][1]" value="">
			</li>
			<li class="input stringish">
				<label class="label" for="adr_street"><?php echo $l->t('Street'); ?></label>
				<input type="text" for="adr_street" name="value[ADR][2]" value="">
			</li>
			<li class="input stringish">
				<label class="label" for="adr_city"><?php echo $l->t('City'); ?></label>
				<input type="text" for="adr_city" name="value[ADR][3]" value="">
			</li>
			<li class="input stringish">
				<label class="label" for="adr_region"><?php echo $l->t('Region'); ?></label>
				<input type="text" for="adr_region" name="value[ADR][4]" value="">
			</li>
			<li class="input stringish">
				<label class="label" for="adr_zipcode"><?php echo $l->t('Zipcode'); ?></label>
				<input type="text" for="adr_zipcode" name="value[ADR][5]" value="">
			</li>
			<li class="input stringish">
				<label class="label" for="adr_country"><?php echo $l->t('Country'); ?></label>
				<input type="text" id="adr_country" name="value[ADR][6]" value="">
			</li>
		</ol>
	</fieldset>
	<fieldset class="buttons">
		<ol>
			<li class="commit button">
				<input class="create" type="submit" name="submit" value="<?php echo $l->t('Create Contact'); ?>">
			</li>
		</ol>
	</fieldset>
</form>