diff options
author | Peter Kozak <spag@golwen.net> | 2013-03-07 03:44:36 -0500 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-03-07 03:44:36 -0500 |
commit | 1bcb85853b282606f28f1c9cd7f4e13d494a7290 (patch) | |
tree | f395fe0afd5f64cae4280951925b25c0b5ff95ef /app/views | |
parent | 2964ebf277568536ac215f3a651e1841a73d68f8 (diff) |
presence permissions for softkeys added
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/softkeys/_form_core.html.haml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/softkeys/_form_core.html.haml b/app/views/softkeys/_form_core.html.haml index 7c1dd4a..f447aa6 100644 --- a/app/views/softkeys/_form_core.html.haml +++ b/app/views/softkeys/_form_core.html.haml @@ -6,7 +6,8 @@ .inputs = f.input :softkey_function_id, :as => :select, :collection => @softkey_functions.map {|x| [I18n.t("softkeys.functions.#{x}"), x.id] }, :label => t('softkeys.form.function.label'), :hint => conditional_hint('softkeys.form.function.hint'), :include_blank => false - - if @softkey.possible_call_forwards && @softkey.possible_call_forwards.count > 0 - = f.association :softkeyable, :collection => @softkey.possible_call_forwards, :label => t('softkeys.form.call_forward.label'), :hint => conditional_hint('softkeys.form.call_forward.hint'), :include_blank => false + - call_forwards = @softkey.possible_call_forwards + - if call_forwards && call_forwards.count > 0 + = f.association :softkeyable, :collection => call_forwards, :label => t('softkeys.form.call_forward.label'), :hint => conditional_hint('softkeys.form.call_forward.hint'), :include_blank => false = f.input :number, :label => t('softkeys.form.number.label'), :hint => conditional_hint('softkeys.form.number.hint') = f.input :label, :label => t('softkeys.form.label.label'), :hint => conditional_hint('softkeys.form.label.hint') |