summaryrefslogtreecommitdiff
path: root/app/views/voicemail_settings
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-04-25 12:13:12 +0200
committerPeter Kozak <spag@golwen.net>2013-04-25 12:13:12 +0200
commitebd0b70051c53d207ab21d9671944201894baea3 (patch)
tree3b7b1c313f1840cb9d02d35b4d6d1aea96c92012 /app/views/voicemail_settings
parentae05a20f5b474071dfa9b6c8760636304861a7d1 (diff)
form_core fixed
Diffstat (limited to 'app/views/voicemail_settings')
-rw-r--r--app/views/voicemail_settings/_form_core.html.haml12
1 files changed, 3 insertions, 9 deletions
diff --git a/app/views/voicemail_settings/_form_core.html.haml b/app/views/voicemail_settings/_form_core.html.haml
index 31c6bbf..00d2a9e 100644
--- a/app/views/voicemail_settings/_form_core.html.haml
+++ b/app/views/voicemail_settings/_form_core.html.haml
@@ -1,11 +1,5 @@
.inputs
- - if !@no_edit or !@no_edit[:name]
- = f.input :name, :collection => VoicemailSetting::VOICEMAIL_SETTINGS.keys.collect{|i, k| [t("voicemail_settings.settings.#{i}"), i]}, :label => t('voicemail_settings.form.name.label'), :hint => conditional_hint('voicemail_settings.form.name.hint'), :autofocus => true, :include_blank => false
- = f.input :value, :label => t('voicemail_settings.form.value.label'), :hint => conditional_hint('voicemail_settings.form.value.hint')
- - else
- = f.input :value, :label => t("voicemail_settings.settings.#{@no_edit[:name][:name]}"), :hint => conditional_hint('voicemail_settings.form.value.hint'), :as => @no_edit[:name][:input], input_html: @no_edit[:name][:html]
-
- - if !@no_edit or !@no_edit[:description]
- = f.input :description, :label => t('voicemail_settings.form.description.label'), :hint => conditional_hint('voicemail_settings.form.description.hint')
-
+ = f.input :name, :collection => @names_possible, :label => t('voicemail_settings.form.name.label'), :hint => conditional_hint('voicemail_settings.form.name.hint'), :autofocus => true, :include_blank => false
+ = f.input :value, :label => t('voicemail_settings.form.value.label'), :hint => conditional_hint('voicemail_settings.form.value.hint')
+ = f.input :description, :label => t('voicemail_settings.form.description.label'), :hint => conditional_hint('voicemail_settings.form.description.hint')