diff --git a/resources/templates/provision/cisco/spa303/{$mac}.xml b/resources/templates/provision/cisco/spa303/{$mac}.xml
index d1d5c702f7..260491b108 100644
--- a/resources/templates/provision/cisco/spa303/{$mac}.xml
+++ b/resources/templates/provision/cisco/spa303/{$mac}.xml
@@ -1628,7 +1628,7 @@
{$display_name_1}
-
+*97
@@ -1638,44 +1638,21 @@
300
Background Picture
-
-{if $key_type_1 == 'line'}
- {$key_value_1}
- {$key_label_1}
- private
-
+{foreach $keys as $row}
+{if $row.device_key_category == "line"}
+
+{$row.device_key_value}
+{$row.device_key_label}
+private
+
{else}
- Disabled
- {$key_label_1}
- private
- {$key_value_1}
+Disabled
+{$row.device_key_label}
+private
+{$row.device_key_value}
{/if}
-
-{if $key_type_2 == 'line'}
- {$key_value_2}
- {$key_label_2}
- private
-
-{else}
- Disabled
- {$key_label_2}
- private
- {$key_value_2}
-{/if}
-
-
-{if $key_type_3 == 'line'}
- {$key_value_3}
- {$key_label_3}
- private
-
-{else}
- Disabled
- {$key_label_3}
- private
- {$key_value_3}
-{/if}
+{/foreach}
Vertical First
@@ -1920,10 +1897,10 @@
-GMT{$v_time_zone_offset}
+{$time_zone}
Yes
-
+start=3/8/7/02:0:0;end=11/1/7/02:0:0;save=1
No
-16
.1