<form zender-form>
    <div class="modal-content">
        <div class="modal-header">
            <h3 class="modal-title">
                <i class="la la-address-book la-lg"></i> {$title}
            </h3>

            <button type="button" class="close" data-dismiss="modal">
                <span aria-hidden="true">&times;</span>
            </button>
        </div>
        
        <div class="modal-body">
            <div class="form-row">
                <div class="form-group col-12">
                    <label>{lang_form_name}</label>
                    <input type="text" name="name" class="form-control" placeholder="eg. Michael" value="{$data.contact.name}">
                </div>

                <div class="form-group col-12">
                    <label>{lang_form_number}</label>
                    <input type="text" name="phone" class="form-control" placeholder="eg. +639123456789" value="{$data.contact.phone}">
                </div>
                
                <div class="form-group col-12">
                    <label>{lang_form_group}</label>
                    <select name="group" class="form-control" data-live-search="true">
                        {foreach $data.groups as $group}
                        <option value="{$group@key}" data-tokens="{$group.token}" {if $group@key eq $data.contact.gid}selected{/if}>{$group.name}</option>
                        {/foreach}
                    </select>
                </div>

                <input type="hidden" name="current_phone" value="{$data.contact.phone}">
            </div>
        </div>

        <div class="modal-footer">
            <button type="submit" class="btn btn-lg btn-primary">
                <i class="la la-check-circle la-lg"></i> {lang_btn_submit}
            </button>
        </div>
    </div>
</form>