<form action="{site_url url="mobile/open/mobile_persapp/save_appoint/"}" method="post" id="appointform" data-ajax="false">
    
    {include file='r/hidden.tpl' name="personalapp_edit" default='add'}{* What entry do we edit - If empty = add *}
    {include file='r/hidden.tpl' name="personalapp_staff" default=$appoint_staff}
    {include file='r/hidden.tpl' name="allow_all_datetime_collision" default=1}
    
    <div data-role="fieldcontain">
        <label for="personalapp_multistaff">{$i.personalapp_staff}:<br /></label>
        {include file='r/select-only.tpl' name="personalapp_multistaff" default=$personalapp->staff_id
            noempty=1 filter_extra="required data-native-menu='false'" class="required" multiple="4"
            list=$appoint_staff_list id="id" text="staff_name"}
    </div>

    {include file='Mobile/persapp/appoint_edit_only.tpl'}
        
    <fieldset data-role="controlgroup" id="appointform_submit">
        <button data-icon="check" type="submit">{$i.basic_save}</button>
        
        <a href="{site_url url="mobile/open/mobile_persapp/index/"}" data-role="button"
            data-icon="delete" data-dom-cache="false"
            data-transition="pop">{$i.basic_cancel}</a>
    </fieldset>
</form>
