nextcloud/apps/contacts/templates/part.addcardform.php

16 lines
670 B
PHP
Raw Normal View History

2011-08-09 15:53:58 +04:00
<form id="contacts_addcardform">
<?php if(count($_['addressbooks'])==1): ?>
<input type="hidden" name="id" value="<?php echo $_['addressbooks'][0]['id']; ?>">
<?php else: ?>
2011-09-09 01:36:47 +04:00
<label for="id"><?php echo $l->t('Group'); ?></label>
2011-08-09 15:53:58 +04:00
<select name="id" size="1">
<?php foreach($_['addressbooks'] as $addressbook): ?>
<option value="<?php echo $addressbook['id']; ?>"><?php echo $addressbook['displayname']; ?></option>
<?php endforeach; ?>
</select>
<?php endif; ?>
2011-09-09 01:36:47 +04:00
<label for="fn"><?php echo $l->t('Name'); ?></label>
2011-08-09 15:53:58 +04:00
<input type="text" name="fn" value=""><br>
2011-09-09 01:36:47 +04:00
<input type="submit" name="submit" value="<?php echo $l->t('Create Contact'); ?>">
2011-08-09 15:53:58 +04:00
</form>