2012-01-31 22:26:26 +04:00
|
|
|
<?php
|
|
|
|
$l=new OC_L10N('contacts');
|
|
|
|
?>
|
|
|
|
<form id="contacts_addcardform">
|
2011-08-09 15:53:58 +04:00
|
|
|
<?php if(count($_['addressbooks'])==1): ?>
|
|
|
|
<input type="hidden" name="id" value="<?php echo $_['addressbooks'][0]['id']; ?>">
|
|
|
|
<?php else: ?>
|
2011-10-22 21:22:01 +04:00
|
|
|
<fieldset class="inputs">
|
2012-01-11 06:56:53 +04:00
|
|
|
<dl class="form">
|
|
|
|
<dt>
|
2012-01-31 22:26:26 +04:00
|
|
|
<label for="id"><?php echo $l->t('Addressbook'); ?></label>
|
2012-01-11 06:56:53 +04:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2011-10-22 21:22:01 +04:00
|
|
|
<select name="id" size="1">
|
2011-11-05 23:33:42 +04:00
|
|
|
<?php echo html_select_options($_['addressbooks'], null, array('value'=>'id', 'label'=>'displayname')); ?>
|
2011-10-22 21:22:01 +04:00
|
|
|
</select>
|
2012-01-11 06:56:53 +04:00
|
|
|
</dd>
|
|
|
|
</dl>
|
2011-10-22 21:22:01 +04:00
|
|
|
</fieldset>
|
2011-08-09 15:53:58 +04:00
|
|
|
<?php endif; ?>
|
2011-10-22 21:22:01 +04:00
|
|
|
<fieldset class="inputs">
|
2012-01-11 06:56:53 +04:00
|
|
|
<dl class="form">
|
|
|
|
<dt>
|
2012-01-31 22:26:26 +04:00
|
|
|
<label for="n1"><?php echo $l->t('Given name'); ?></label>
|
2012-01-11 06:56:53 +04:00
|
|
|
</dd>
|
|
|
|
<dd>
|
2012-01-31 22:26:26 +04:00
|
|
|
<input id="n1" type="text" name="value[N][1]" value="">
|
2012-01-11 06:56:53 +04:00
|
|
|
</dd>
|
|
|
|
<dt>
|
2012-01-31 22:26:26 +04:00
|
|
|
<label for="n0"><?php echo $l->t('Family name'); ?></label>
|
|
|
|
</dd>
|
|
|
|
<dd>
|
|
|
|
<input id="n0" type="text" name="value[N][0]" value="">
|
|
|
|
</dd>
|
|
|
|
<dt>
|
|
|
|
<label for="n2"><?php echo $l->t('Additional names'); ?></label>
|
|
|
|
</dd>
|
|
|
|
<dd>
|
|
|
|
<input id="n2" type="text" name="value[N][2]" value="">
|
|
|
|
<input type="hidden" name="value[N][4]" value="">
|
|
|
|
<input type="hidden" name="value[N][5]" value="">
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset class="inputs">
|
|
|
|
<dl class="form">
|
|
|
|
<dt>
|
|
|
|
<label for="fn"><?php echo $l->t('Display name'); ?></label>
|
|
|
|
</dd>
|
|
|
|
<dd>
|
|
|
|
<input id="fn" type="text" name="fn" placeholder="<?php echo $l->t('How you want the name displayed in the list'); ?>" value="">
|
|
|
|
</dd>
|
|
|
|
<dt>
|
|
|
|
<label for="org"><?php echo $l->t('Organization'); ?></label>
|
2012-01-11 06:56:53 +04:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2011-10-22 21:22:01 +04:00
|
|
|
<input id="org" type="text" name="value[ORG]" value="">
|
2012-01-11 06:56:53 +04:00
|
|
|
</dd>
|
|
|
|
</dl>
|
2011-10-22 21:22:01 +04:00
|
|
|
</fieldset>
|
|
|
|
<fieldset class="inputs">
|
2012-01-11 06:56:53 +04:00
|
|
|
<dl class="form">
|
|
|
|
<dt>
|
2012-01-31 22:26:26 +04:00
|
|
|
<label for="email"><?php echo $l->t('Email'); ?></label>
|
2012-01-11 06:56:53 +04:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2012-01-31 22:26:26 +04:00
|
|
|
<input id="email" type="email" name="value[EMAIL]" value="">
|
2012-01-11 06:56:53 +04:00
|
|
|
</dd>
|
|
|
|
<dt>
|
|
|
|
<label for="tel"><?php echo $l->t('Telephone'); ?></label>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
2012-01-31 22:26:26 +04:00
|
|
|
<input type="tel" id="tel" name="value[TEL]" value="">
|
2012-01-11 06:56:53 +04:00
|
|
|
<select id="TEL" name="parameters[TEL][TYPE][]" multiple="multiple">
|
|
|
|
<?php echo html_select_options($_['phone_types'], 'CELL') ?>
|
|
|
|
</select>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
2011-10-22 21:22:01 +04:00
|
|
|
</fieldset>
|
|
|
|
<fieldset class="inputs">
|
|
|
|
<legend><?php echo $l->t('Address'); ?></legend>
|
2012-01-11 06:56:53 +04:00
|
|
|
<dl class="form">
|
|
|
|
<dt>
|
2012-01-31 22:26:26 +04:00
|
|
|
<label for="adr_type"><?php echo $l->t('Type'); ?></label>
|
2012-01-11 06:56:53 +04:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2011-10-22 21:22:01 +04:00
|
|
|
<select id="adr_type" name="parameters[ADR][TYPE]" size="1">
|
2011-11-05 23:33:42 +04:00
|
|
|
<?php echo html_select_options($_['adr_types'], 'HOME') ?>
|
2011-10-22 21:22:01 +04:00
|
|
|
</select>
|
2012-01-11 06:56:53 +04:00
|
|
|
</dd>
|
|
|
|
<dt>
|
2012-01-31 22:26:26 +04:00
|
|
|
<label for="adr_pobox"><?php echo $l->t('PO Box'); ?></label>
|
2012-01-11 06:56:53 +04:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2012-01-31 22:26:26 +04:00
|
|
|
<input type="text" id="adr_pobox" name="value[ADR][0]" placeholder="<?php echo $l->t('Post Office box'); ?>" value="">
|
2012-01-11 06:56:53 +04:00
|
|
|
</dd>
|
|
|
|
<dd>
|
2012-01-31 22:26:26 +04:00
|
|
|
<!-- dt>
|
2011-10-22 21:22:01 +04:00
|
|
|
<label class="label" for="adr_extended"><?php echo $l->t('Extended'); ?></label>
|
2012-01-11 06:56:53 +04:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2011-10-22 21:22:01 +04:00
|
|
|
<input type="text" id="adr_extended" name="value[ADR][1]" value="">
|
2012-01-31 22:26:26 +04:00
|
|
|
</dd -->
|
2012-01-11 06:56:53 +04:00
|
|
|
<dt>
|
2012-01-31 22:26:26 +04:00
|
|
|
<label for="adr_street"><?php echo $l->t('Street'); ?></label>
|
2012-01-11 06:56:53 +04:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2012-01-31 22:26:26 +04:00
|
|
|
<input style="width: 12em;" type="text" id="adr_street" name="value[ADR][2]" placeholder="<?php echo $l->t('Street name and no.'); ?>" value="">
|
|
|
|
<label for="adr_extended"><?php echo $l->t('Extended'); ?></label>
|
|
|
|
<input style="width: 7em;" type="text" id="adr_extended" name="value[ADR][1]" placeholder="<?php echo $l->t('Apart. no., floor'); ?>" value="">
|
2012-01-11 06:56:53 +04:00
|
|
|
</dd>
|
|
|
|
<dt>
|
2012-01-31 22:26:26 +04:00
|
|
|
<label for="adr_city"><?php echo $l->t('City'); ?></label>
|
2012-01-11 06:56:53 +04:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2012-01-31 22:26:26 +04:00
|
|
|
<input style="width: 12em;" type="text" id="adr_city" name="value[ADR][3]" value="">
|
|
|
|
<label for="adr_zipcode"><?php echo $l->t('Zipcode'); ?></label>
|
|
|
|
<input style="width: 5em;" type="text" id="adr_zipcode" name="value[ADR][5]" value="">
|
2012-01-11 06:56:53 +04:00
|
|
|
</dd>
|
|
|
|
<dt>
|
2012-01-31 22:26:26 +04:00
|
|
|
<label for="adr_region"><?php echo $l->t('Region'); ?></label>
|
2012-01-11 06:56:53 +04:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2012-01-31 22:26:26 +04:00
|
|
|
<input type="text" id="adr_region" name="value[ADR][4]" placeholder="<?php echo $l->t('E.g. state or province'); ?>" value="">
|
2012-01-11 06:56:53 +04:00
|
|
|
</dd>
|
2012-01-31 22:26:26 +04:00
|
|
|
<!-- dt>
|
2011-10-22 21:22:01 +04:00
|
|
|
<label class="label" for="adr_zipcode"><?php echo $l->t('Zipcode'); ?></label>
|
2012-01-19 19:04:39 +04:00
|
|
|
</dt>
|
2012-01-11 06:56:53 +04:00
|
|
|
<dd>
|
2011-10-28 00:47:56 +04:00
|
|
|
<input type="text" id="adr_zipcode" name="value[ADR][5]" value="">
|
2012-01-31 22:26:26 +04:00
|
|
|
</dd -->
|
2012-01-11 06:56:53 +04:00
|
|
|
<dt>
|
2012-01-31 22:26:26 +04:00
|
|
|
<label for="adr_country"><?php echo $l->t('Country'); ?></label>
|
2012-01-11 06:56:53 +04:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2011-10-22 21:22:01 +04:00
|
|
|
<input type="text" id="adr_country" name="value[ADR][6]" value="">
|
2012-01-11 06:56:53 +04:00
|
|
|
</dd>
|
|
|
|
</dl>
|
2011-10-22 21:22:01 +04:00
|
|
|
</fieldset>
|
2012-01-11 23:07:15 +04:00
|
|
|
<input class="create" type="submit" name="submit" value="<?php echo $l->t('Create Contact'); ?>">
|
2011-08-09 15:53:58 +04:00
|
|
|
</form>
|