summaryrefslogtreecommitdiff
path: root/app/views/gateway_settings
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/gateway_settings')
-rw-r--r--app/views/gateway_settings/_form.html.haml7
-rw-r--r--app/views/gateway_settings/_form_core.html.haml4
-rw-r--r--app/views/gateway_settings/_index_core.html.haml13
-rw-r--r--app/views/gateway_settings/edit.html.haml3
-rw-r--r--app/views/gateway_settings/index.html.haml6
-rw-r--r--app/views/gateway_settings/new.html.haml3
-rw-r--r--app/views/gateway_settings/show.html.haml19
7 files changed, 55 insertions, 0 deletions
diff --git a/app/views/gateway_settings/_form.html.haml b/app/views/gateway_settings/_form.html.haml
new file mode 100644
index 0000000..af26d2a
--- /dev/null
+++ b/app/views/gateway_settings/_form.html.haml
@@ -0,0 +1,7 @@
+= simple_form_for([@gateway, @gateway_setting]) do |f|
+ = f.error_notification
+
+ = render "form_core", :f => f
+
+ .actions
+ = f.button :submit, conditional_t('gateway_settings.form.submit')
diff --git a/app/views/gateway_settings/_form_core.html.haml b/app/views/gateway_settings/_form_core.html.haml
new file mode 100644
index 0000000..3e7dc49
--- /dev/null
+++ b/app/views/gateway_settings/_form_core.html.haml
@@ -0,0 +1,4 @@
+.inputs
+ = f.input :name, :collection => GatewaySetting::GATEWAY_SETTINGS['sip'].keys, :label => t('gateway_settings.form.name.label'), :hint => conditional_hint('gateway_settings.form.name.hint'), :autofocus => true, :include_blank => false
+ = f.input :value, :label => t('gateway_settings.form.value.label'), :hint => conditional_hint('gateway_settings.form.value.hint')
+ = f.input :description, :label => t('gateway_settings.form.description.label'), :hint => conditional_hint('gateway_settings.form.description.hint')
diff --git a/app/views/gateway_settings/_index_core.html.haml b/app/views/gateway_settings/_index_core.html.haml
new file mode 100644
index 0000000..ded7eb8
--- /dev/null
+++ b/app/views/gateway_settings/_index_core.html.haml
@@ -0,0 +1,13 @@
+%table{:class => 'table table-striped'}
+ %tr
+ %th= t('gateway_settings.index.name')
+ %th= t('gateway_settings.index.value')
+ %th= t('gateway_settings.index.description')
+
+
+ - for gateway_setting in gateway_settings
+ %tr
+ %td= gateway_setting.name
+ %td= gateway_setting.value
+ %td= gateway_setting.description
+ =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => gateway_setting.gateway, :child => gateway_setting}
diff --git a/app/views/gateway_settings/edit.html.haml b/app/views/gateway_settings/edit.html.haml
new file mode 100644
index 0000000..464c36e
--- /dev/null
+++ b/app/views/gateway_settings/edit.html.haml
@@ -0,0 +1,3 @@
+- content_for :title, t("gateway_settings.edit.page_title")
+
+= render "form" \ No newline at end of file
diff --git a/app/views/gateway_settings/index.html.haml b/app/views/gateway_settings/index.html.haml
new file mode 100644
index 0000000..3f1400e
--- /dev/null
+++ b/app/views/gateway_settings/index.html.haml
@@ -0,0 +1,6 @@
+- content_for :title, t("gateway_settings.index.page_title")
+
+- if @gateway_settings && @gateway_settings.count > 0
+ = render "index_core", :gateway_settings => @gateway_settings
+
+= render :partial => 'shared/create_link', :locals => {:parent => @gateway, :child_class => GatewaySetting}
diff --git a/app/views/gateway_settings/new.html.haml b/app/views/gateway_settings/new.html.haml
new file mode 100644
index 0000000..ec8c346
--- /dev/null
+++ b/app/views/gateway_settings/new.html.haml
@@ -0,0 +1,3 @@
+- content_for :title, t("gateway_settings.new.page_title")
+
+= render "form" \ No newline at end of file
diff --git a/app/views/gateway_settings/show.html.haml b/app/views/gateway_settings/show.html.haml
new file mode 100644
index 0000000..019aec4
--- /dev/null
+++ b/app/views/gateway_settings/show.html.haml
@@ -0,0 +1,19 @@
+- content_for :title, t("gateway_settings.show.page_title")
+
+%p
+ %strong= t('gateway_settings.show.gateway_id') + ":"
+ = @gateway_setting.gateway
+%p
+ %strong= t('gateway_settings.show.name') + ":"
+ = @gateway_setting.name
+%p
+ %strong= t('gateway_settings.show.value') + ":"
+ = @gateway_setting.value
+%p
+ %strong= t('gateway_settings.show.class_type') + ":"
+ = @gateway_setting.class_type
+%p
+ %strong= t('gateway_settings.show.description') + ":"
+ = @gateway_setting.description
+
+= render :partial => 'shared/show_edit_destroy_part', :locals => {:parent => @gateway_setting.gateway, :child => @gateway_setting} \ No newline at end of file