summaryrefslogtreecommitdiff
path: root/app/views/phones/new.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-28 20:01:29 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-28 20:01:29 +0100
commit1985d77138ec8c3efe01673d019947a6cd3361af (patch)
tree09773fdb6fa83712579aaa46a2f330901db379af /app/views/phones/new.html.haml
parenta945a74ae1d0fbafb79c1f36f5cb3ec59970c6fe (diff)
Improved the UI for a new phone.
Diffstat (limited to 'app/views/phones/new.html.haml')
-rw-r--r--app/views/phones/new.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/phones/new.html.haml b/app/views/phones/new.html.haml
index 61923cc..ae0a539 100644
--- a/app/views/phones/new.html.haml
+++ b/app/views/phones/new.html.haml
@@ -1,3 +1,9 @@
- title t("phones.new.page_title")
+- if !@fallback_sip_accounts.any? && can?(:create, current_user.current_tenant.sip_accounts.build)
+ %p
+ = t("phones.new.you_need_to_have_at_least_one_available_fallback_sip_account_for_hotdesking")
+ = link_to t("sip_accounts.index.actions.create_for", :resource => current_user.current_tenant), new_tenant_sip_account_path(current_user.current_tenant)
+
= render "form"
+