mirror of https://github.com/movim/movim
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.4 KiB
45 lines
1.4 KiB
<section>
|
|
<h3>{$c->__('edit.title')}</h3>
|
|
<form name="manage">
|
|
<div>
|
|
<input
|
|
name="alias"
|
|
id="alias"
|
|
placeholder="{$c->__('edit.alias')}"
|
|
{if="$contact->name"}
|
|
value="{$contact->name}"
|
|
{else}
|
|
value="{$contact->truename}"
|
|
{/if}"/>
|
|
<label for="alias">{$c->__('edit.alias')}</label>
|
|
</div>
|
|
<div>
|
|
<datalist id="group_list" style="display: none;">
|
|
{if="is_array($groups)"}
|
|
{loop="$groups"}
|
|
<option value="{$value ?? ''}"/>
|
|
{/loop}
|
|
{/if}
|
|
</datalist>
|
|
<input
|
|
name="group"
|
|
list="group_list"
|
|
id="group"
|
|
placeholder="{$c->__('edit.group')}"
|
|
value="{$contact->group ?? ''}"/>
|
|
<label for="group">{$c->__('edit.group')}</label>
|
|
</div>
|
|
<input type="hidden" name="jid" value="{$contact->jid}"/>
|
|
</form>
|
|
</section>
|
|
<div class="no_bar">
|
|
<button onclick="Dialog_ajaxClear()" class="button flat">
|
|
{$c->__('button.cancel')}
|
|
</button>
|
|
<button
|
|
name="submit"
|
|
class="button flat"
|
|
onclick="ContactHeader_ajaxEditSubmit(MovimUtils.formToJson('manage')); Dialog_ajaxClear()">
|
|
{$c->__('button.save')}
|
|
</button>
|
|
</div>
|