summaryrefslogtreecommitdiff
path: root/app/views/gateways
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/gateways')
-rw-r--r--app/views/gateways/_form.html.haml7
-rw-r--r--app/views/gateways/_form_core.html.haml6
-rw-r--r--app/views/gateways/_index_core.html.haml17
-rw-r--r--app/views/gateways/edit.html.haml3
-rw-r--r--app/views/gateways/index.html.haml6
-rw-r--r--app/views/gateways/new.html.haml3
-rw-r--r--app/views/gateways/show.html.haml19
7 files changed, 61 insertions, 0 deletions
diff --git a/app/views/gateways/_form.html.haml b/app/views/gateways/_form.html.haml
new file mode 100644
index 0000000..5f6d5dd
--- /dev/null
+++ b/app/views/gateways/_form.html.haml
@@ -0,0 +1,7 @@
+= simple_form_for(@gateway) do |f|
+ = f.error_notification
+
+ = render "form_core", :f => f
+
+ .actions
+ = f.button :submit, conditional_t('gateways.form.submit') \ No newline at end of file
diff --git a/app/views/gateways/_form_core.html.haml b/app/views/gateways/_form_core.html.haml
new file mode 100644
index 0000000..3545772
--- /dev/null
+++ b/app/views/gateways/_form_core.html.haml
@@ -0,0 +1,6 @@
+.inputs
+ = f.input :name, :label => t('gateways.form.name.label'), :hint => conditional_hint('gateways.form.name.hint')
+ = f.input :technology, :label => t('gateways.form.technology.label'), :hint => conditional_hint('gateways.form.technology.hint')
+ = f.input :inbound, :label => t('gateways.form.inbound.label'), :hint => conditional_hint('gateways.form.inbound.hint')
+ = f.input :outbound, :label => t('gateways.form.outbound.label'), :hint => conditional_hint('gateways.form.outbound.hint')
+ = f.input :description, :label => t('gateways.form.description.label'), :hint => conditional_hint('gateways.form.description.hint')
diff --git a/app/views/gateways/_index_core.html.haml b/app/views/gateways/_index_core.html.haml
new file mode 100644
index 0000000..21414c3
--- /dev/null
+++ b/app/views/gateways/_index_core.html.haml
@@ -0,0 +1,17 @@
+%table
+ %tr
+ %th= t('gateways.index.name')
+ %th= t('gateways.index.technology')
+ %th= t('gateways.index.inbound')
+ %th= t('gateways.index.outbound')
+ %th= t('gateways.index.description')
+
+ - reset_cycle
+ - for gateway in gateways
+ %tr{:class => cycle('odd', 'even')}
+ %td= gateway.name
+ %td= gateway.technology
+ %td= gateway.inbound
+ %td= gateway.outbound
+ %td= gateway.description
+ =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:child => gateway} \ No newline at end of file
diff --git a/app/views/gateways/edit.html.haml b/app/views/gateways/edit.html.haml
new file mode 100644
index 0000000..417dd09
--- /dev/null
+++ b/app/views/gateways/edit.html.haml
@@ -0,0 +1,3 @@
+- title t("gateways.edit.page_title")
+
+= render "form" \ No newline at end of file
diff --git a/app/views/gateways/index.html.haml b/app/views/gateways/index.html.haml
new file mode 100644
index 0000000..cec9cd1
--- /dev/null
+++ b/app/views/gateways/index.html.haml
@@ -0,0 +1,6 @@
+- title t("gateways.index.page_title")
+
+- if @gateways && @gateways.count > 0
+ = render "index_core", :gateways => @gateways
+
+= render :partial => 'shared/create_link', :locals => {:child_class => Gateway} \ No newline at end of file
diff --git a/app/views/gateways/new.html.haml b/app/views/gateways/new.html.haml
new file mode 100644
index 0000000..a2609f3
--- /dev/null
+++ b/app/views/gateways/new.html.haml
@@ -0,0 +1,3 @@
+- title t("gateways.new.page_title")
+
+= render "form" \ No newline at end of file
diff --git a/app/views/gateways/show.html.haml b/app/views/gateways/show.html.haml
new file mode 100644
index 0000000..c9942dd
--- /dev/null
+++ b/app/views/gateways/show.html.haml
@@ -0,0 +1,19 @@
+- title t("gateways.show.page_title")
+
+%p
+ %strong= t('gateways.show.name') + ":"
+ = @gateway.name
+%p
+ %strong= t('gateways.show.technology') + ":"
+ = @gateway.technology
+%p
+ %strong= t('gateways.show.inbound') + ":"
+ = @gateway.inbound
+%p
+ %strong= t('gateways.show.outbound') + ":"
+ = @gateway.outbound
+%p
+ %strong= t('gateways.show.description') + ":"
+ = @gateway.description
+
+= render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @gateway } \ No newline at end of file