summaryrefslogtreecommitdiff
path: root/app/views/sip_domains
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/sip_domains')
-rw-r--r--app/views/sip_domains/_form.html.haml7
-rw-r--r--app/views/sip_domains/_form_core.html.haml3
-rw-r--r--app/views/sip_domains/_index_core.html.haml11
-rw-r--r--app/views/sip_domains/edit.html.haml3
-rw-r--r--app/views/sip_domains/index.html.haml6
-rw-r--r--app/views/sip_domains/new.html.haml3
-rw-r--r--app/views/sip_domains/show.html.haml10
7 files changed, 43 insertions, 0 deletions
diff --git a/app/views/sip_domains/_form.html.haml b/app/views/sip_domains/_form.html.haml
new file mode 100644
index 0000000..2d662af
--- /dev/null
+++ b/app/views/sip_domains/_form.html.haml
@@ -0,0 +1,7 @@
+= simple_form_for(@sip_domain) do |f|
+ = f.error_notification
+
+ = render "form_core", :f => f
+
+ .actions
+ = f.button :submit, conditional_t('sip_domains.form.submit') \ No newline at end of file
diff --git a/app/views/sip_domains/_form_core.html.haml b/app/views/sip_domains/_form_core.html.haml
new file mode 100644
index 0000000..a7f024f
--- /dev/null
+++ b/app/views/sip_domains/_form_core.html.haml
@@ -0,0 +1,3 @@
+.inputs
+ = f.input :host, :label => t('sip_domains.form.host.label'), :hint => conditional_hint('sip_domains.form.host.hint')
+ = f.input :realm, :label => t('sip_domains.form.realm.label'), :hint => conditional_hint('sip_domains.form.realm.hint')
diff --git a/app/views/sip_domains/_index_core.html.haml b/app/views/sip_domains/_index_core.html.haml
new file mode 100644
index 0000000..37374f2
--- /dev/null
+++ b/app/views/sip_domains/_index_core.html.haml
@@ -0,0 +1,11 @@
+%table
+ %tr
+ %th= t('sip_domains.index.host')
+ %th= t('sip_domains.index.realm')
+
+ - reset_cycle
+ - for sip_domain in sip_domains
+ %tr{:class => cycle('odd', 'even')}
+ %td= sip_domain.host
+ %td= sip_domain.realm
+ =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:child => sip_domain} \ No newline at end of file
diff --git a/app/views/sip_domains/edit.html.haml b/app/views/sip_domains/edit.html.haml
new file mode 100644
index 0000000..dcf8d6b
--- /dev/null
+++ b/app/views/sip_domains/edit.html.haml
@@ -0,0 +1,3 @@
+- title t("sip_domains.edit.page_title")
+
+= render "form"
diff --git a/app/views/sip_domains/index.html.haml b/app/views/sip_domains/index.html.haml
new file mode 100644
index 0000000..6de7f42
--- /dev/null
+++ b/app/views/sip_domains/index.html.haml
@@ -0,0 +1,6 @@
+- title t("sip_domains.index.page_title")
+
+- if @sip_domains.count > 0
+ = render "index_core", :sip_domains => @sip_domains
+
+= render :partial => 'shared/create_link', :locals => {:child_class => SipDomain} \ No newline at end of file
diff --git a/app/views/sip_domains/new.html.haml b/app/views/sip_domains/new.html.haml
new file mode 100644
index 0000000..12ff340
--- /dev/null
+++ b/app/views/sip_domains/new.html.haml
@@ -0,0 +1,3 @@
+- title t("sip_domains.new.page_title")
+
+= render "form"
diff --git a/app/views/sip_domains/show.html.haml b/app/views/sip_domains/show.html.haml
new file mode 100644
index 0000000..e136eaf
--- /dev/null
+++ b/app/views/sip_domains/show.html.haml
@@ -0,0 +1,10 @@
+- title t("sip_domains.show.page_title")
+
+%p
+ %strong= t('sip_domains.show.host') + ":"
+ = @sip_domain.host
+%p
+ %strong= t('sip_domains.show.realm') + ":"
+ = @sip_domain.realm
+
+= render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @sip_domain } \ No newline at end of file