<?xml version="1.0" encoding="UTF-8" ?>
<SnomIPPhoneDirectory>
{% for result in results -%}
 <DirectoryEntry>
  <Name>{{ result.name|e }}</Name>
  <Telephone>{{ result.number|e }}</Telephone>
 </DirectoryEntry>
{% else -%}
 <DirectoryEntry>
  <Name>{{ gettext('No entries') }}</Name>
  <Telephone></Telephone>
 </DirectoryEntry>
{% endfor -%}

{% if offset_previous is not none -%}
<SoftKeyItem>
<Label>{{ gettext('PrevPage') }}</Label>
<URL>{{ base_url|e }}?xivo_user_uuid={{ user_uuid|e }}&amp;term={{ term|e }}&amp;limit={{ limit|e }}&amp;offset={{ offset_previous|e }}</URL>
<Name>F2</Name>
</SoftKeyItem>
{% endif -%}

{% if offset_next is not none -%}
<SoftKeyItem>
<Label>{{ gettext('NextPage') }}</Label>
<URL>{{ base_url|e }}?xivo_user_uuid={{ user_uuid|e }}&amp;term={{ term|e }}&amp;limit={{ limit|e }}&amp;offset={{ offset_next|e }}</URL>
<Name>F4</Name>
</SoftKeyItem>
{% endif -%}
</SnomIPPhoneDirectory>
