summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2012-12-31 08:47:23 +0100
committerspag <spag@golwen.net>2012-12-31 08:47:23 +0100
commitc24bd3a8212e85894b2f7c26e190fe5e89fbaaf2 (patch)
tree1bc42ccc321ca66eb6e46b184b5371e4e3c94e6b /app/views
parent5cf46b6467679ea0367cc0c00787f6f1c86560e4 (diff)
hide hotdeskable check box for tenant sip accounts
Diffstat (limited to 'app/views')
-rw-r--r--app/views/sip_accounts/_form_core.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/sip_accounts/_form_core.html.haml b/app/views/sip_accounts/_form_core.html.haml
index dbd27fe..bb70edb 100644
--- a/app/views/sip_accounts/_form_core.html.haml
+++ b/app/views/sip_accounts/_form_core.html.haml
@@ -6,7 +6,8 @@
= f.input :call_waiting, :label => t('sip_accounts.form.call_waiting.label'), :hint => conditional_hint('sip_accounts.form.call_waiting.hint')
= f.input :clir, :label => t('sip_accounts.form.clir.label'), :hint => conditional_hint('sip_accounts.form.clir.hint')
= f.input :clip, :label => t('sip_accounts.form.clip.label'), :hint => conditional_hint('sip_accounts.form.clip.hint')
- = f.input :hotdeskable, :label => t('sip_accounts.form.hotdeskable.label'), :hint => conditional_hint('sip_accounts.form.hotdeskable.hint')
+ - if @sip_account.sip_accountable_type == 'User'
+ = f.input :hotdeskable, :label => t('sip_accounts.form.hotdeskable.label'), :hint => conditional_hint('sip_accounts.form.hotdeskable.hint')
= f.input :clip_no_screening, :label => t('sip_accounts.form.clip_no_screening.label'), :hint => conditional_hint('sip_accounts.form.clip_no_screening.hint')
- if CallForward.where(:phone_number_id => @sip_account.phone_number_ids).count == 0 || @sip_account.callforward_rules_act_per_sip_account == true
= f.input :callforward_rules_act_per_sip_account, :label => t('sip_accounts.form.callforward_rules_act_per_sip_account.label'), :hint => conditional_hint('sip_accounts.form.callforward_rules_act_per_sip_account.hint')