summaryrefslogtreecommitdiff
path: root/app/views/phones/_form_core.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-12 11:53:21 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-12 11:53:21 +0100
commitec342d3d91d2cfa8c210722354353cfe8a90a8bc (patch)
treefa554d5db15f60abafe0e3da806da756114e5e4b /app/views/phones/_form_core.html.haml
parent2e3bddd415f03aa15cd2759d7c18f64d5545ea80 (diff)
Add PROVISIONING_KEY_LENGTH as a GsParameter value. #73
Diffstat (limited to 'app/views/phones/_form_core.html.haml')
-rw-r--r--app/views/phones/_form_core.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/phones/_form_core.html.haml b/app/views/phones/_form_core.html.haml
index b09ee35..17b9ca8 100644
--- a/app/views/phones/_form_core.html.haml
+++ b/app/views/phones/_form_core.html.haml
@@ -11,5 +11,5 @@
- if defined? GsParameter.get('NIGHTLY_REBOOT_OF_PHONES') && GsParameter.get('NIGHTLY_REBOOT_OF_PHONES') == true
= f.input :nightly_reboot, :label => t('phones.form.nightly_reboot.label'), :hint => conditional_hint('phones.form.nightly_reboot.hint')
- - if defined? PROVISIONING_KEY_LENGTH && PROVISIONING_KEY_LENGTH > 0
+ - if !GsParameter.get('PROVISIONING_KEY_LENGTH').nil? && GsParameter.get('PROVISIONING_KEY_LENGTH') > 0
= f.input :provisioning_key_active, :label => t('phones.form.provisioning_key_active.label'), :hint => conditional_hint('phones.form.provisioning_key_active.hint')