diff options
-rw-r--r-- | app/views/gateway_headers/_form.html.haml | 7 | ||||
-rw-r--r-- | app/views/gateway_headers/_form_core.html.haml | 8 | ||||
-rw-r--r-- | app/views/gateway_headers/_index_core.html.haml | 20 | ||||
-rw-r--r-- | app/views/gateway_headers/edit.html.haml | 3 | ||||
-rw-r--r-- | app/views/gateway_headers/index.html.haml | 6 | ||||
-rw-r--r-- | app/views/gateway_headers/new.html.haml | 3 | ||||
-rw-r--r-- | app/views/gateway_headers/show.html.haml | 19 |
7 files changed, 66 insertions, 0 deletions
diff --git a/app/views/gateway_headers/_form.html.haml b/app/views/gateway_headers/_form.html.haml new file mode 100644 index 0000000..0bd8f31 --- /dev/null +++ b/app/views/gateway_headers/_form.html.haml @@ -0,0 +1,7 @@ += simple_form_for([@gateway, @gateway_header]) do |f| + = f.error_notification + + = render "form_core", :f => f + + .form-actions + = f.button :submit, conditional_t('gateway_headers.form.submit') diff --git a/app/views/gateway_headers/_form_core.html.haml b/app/views/gateway_headers/_form_core.html.haml new file mode 100644 index 0000000..2fcb70b --- /dev/null +++ b/app/views/gateway_headers/_form_core.html.haml @@ -0,0 +1,8 @@ +.inputs + = f.input :header_type, :collection => GatewayHeader::HEADER_TYPES, :label => t('gateway_headers.form.header_type.label'), :hint => conditional_hint('gateway_headers.form.header_type.hint'), :include_blank => false + = f.input :constraint_source, :label => t('gateway_headers.form.constraint_source.label'), :hint => conditional_hint('gateway_headers.form.constraint_source.hint') + = f.input :constraint_value, :label => t('gateway_headers.form.constraint_value.label'), :hint => conditional_hint('gateway_headers.form.constraint_value.hint') + = f.input :name, :label => t('gateway_headers.form.name.label'), :hint => conditional_hint('gateway_headers.form.name.hint'), :autofocus => true + = f.input :value, :label => t('gateway_headers.form.value.label'), :hint => conditional_hint('gateway_headers.form.value.hint') + + = f.input :description, :label => t('gateway_headers.form.description.label'), :hint => conditional_hint('gateway_headers.form.description.hint') diff --git a/app/views/gateway_headers/_index_core.html.haml b/app/views/gateway_headers/_index_core.html.haml new file mode 100644 index 0000000..b468026 --- /dev/null +++ b/app/views/gateway_headers/_index_core.html.haml @@ -0,0 +1,20 @@ +%table.table.table-striped + %thead + %tr + %th= t('gateway_headers.index.header_type') + %th= t('gateway_headers.index.constraint') + %th= t('gateway_headers.index.name') + %th= t('gateway_headers.index.value') + + %tbody + - for gateway_header in gateway_headers + %tr + %td= gateway_header.header_type + %td + = gateway_header.constraint_source + - if !gateway_header.constraint_source.blank? + %strong ~= + = gateway_header.constraint_value + %td= gateway_header.name + %td= gateway_header.value + =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => gateway_header.gateway, :child => gateway_header} diff --git a/app/views/gateway_headers/edit.html.haml b/app/views/gateway_headers/edit.html.haml new file mode 100644 index 0000000..461ee17 --- /dev/null +++ b/app/views/gateway_headers/edit.html.haml @@ -0,0 +1,3 @@ +- content_for :title, t("gateway_headers.edit.page_title") + += render "form"
\ No newline at end of file diff --git a/app/views/gateway_headers/index.html.haml b/app/views/gateway_headers/index.html.haml new file mode 100644 index 0000000..8760b5e --- /dev/null +++ b/app/views/gateway_headers/index.html.haml @@ -0,0 +1,6 @@ +- content_for :title, t("gateway_headers.index.page_title") + +- if @gateway_headers && @gateway_headers.count > 0 + = render "index_core", :gateway_headers => @gateway_headers + += render :partial => 'shared/create_link', :locals => {:parent => @gateway, :child_class => GatewayHeader}
\ No newline at end of file diff --git a/app/views/gateway_headers/new.html.haml b/app/views/gateway_headers/new.html.haml new file mode 100644 index 0000000..3f6ea8e --- /dev/null +++ b/app/views/gateway_headers/new.html.haml @@ -0,0 +1,3 @@ +- content_for :title, t("gateway_headers.new.page_title") + += render "form"
\ No newline at end of file diff --git a/app/views/gateway_headers/show.html.haml b/app/views/gateway_headers/show.html.haml new file mode 100644 index 0000000..4f1af49 --- /dev/null +++ b/app/views/gateway_headers/show.html.haml @@ -0,0 +1,19 @@ +- content_for :title, t("gateway_headers.show.page_title") + +%p + %strong= t('gateway_headers.show.gateway') + ":" + = @gateway_header.gateway +%p + %strong= t('gateway_headers.show.name') + ":" + = @gateway_header.name +%p + %strong= t('gateway_headers.show.value') + ":" + = @gateway_header.value +%p + %strong= t('gateway_headers.show.class_type') + ":" + = @gateway_header.class_type +%p + %strong= t('gateway_headers.show.description') + ":" + = @gateway_header.description + += render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @gateway, :child => @gateway_header }
\ No newline at end of file |