From a3ec7b5661f53f69064ca345703461155752fa17 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 19 May 2015 00:38:01 +0000 Subject: [PATCH] Add a file to the template. --- .../polycom/4.x/{$mac}-directory.xml | 28 +++++++++++++++++++ .../polycom/5.x/{$mac}-directory.xml | 28 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 resources/templates/provision/polycom/4.x/{$mac}-directory.xml create mode 100644 resources/templates/provision/polycom/5.x/{$mac}-directory.xml diff --git a/resources/templates/provision/polycom/4.x/{$mac}-directory.xml b/resources/templates/provision/polycom/4.x/{$mac}-directory.xml new file mode 100644 index 0000000000..682c175c05 --- /dev/null +++ b/resources/templates/provision/polycom/4.x/{$mac}-directory.xml @@ -0,0 +1,28 @@ + + + + + {foreach $contacts as $row} + + {if $row.contact_name_given != ""} + {$row.contact_name_family} + {$row.contact_name_given} + {else} + {$row.contact_organization} + {/if} + {if $row.phone_number != ""} + {$row.phone_number} + {else} + {$row.phone_extension} + {/if} + 1 + 7 + + 0 + 0 + 0 + 0 + + {/foreach} + + \ No newline at end of file diff --git a/resources/templates/provision/polycom/5.x/{$mac}-directory.xml b/resources/templates/provision/polycom/5.x/{$mac}-directory.xml new file mode 100644 index 0000000000..682c175c05 --- /dev/null +++ b/resources/templates/provision/polycom/5.x/{$mac}-directory.xml @@ -0,0 +1,28 @@ + + + + + {foreach $contacts as $row} + + {if $row.contact_name_given != ""} + {$row.contact_name_family} + {$row.contact_name_given} + {else} + {$row.contact_organization} + {/if} + {if $row.phone_number != ""} + {$row.phone_number} + {else} + {$row.phone_extension} + {/if} + 1 + 7 + + 0 + 0 + 0 + 0 + + {/foreach} + + \ No newline at end of file