From 1ddeac8a2d7066323dc388bfbdf31a005d4e562f Mon Sep 17 00:00:00 2001 From: spag Date: Sun, 13 Jan 2013 23:45:21 +0100 Subject: gateway view display settings/parameters --- app/views/gateways/show.html.haml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'app/views/gateways/show.html.haml') diff --git a/app/views/gateways/show.html.haml b/app/views/gateways/show.html.haml index c9942dd..3460c58 100644 --- a/app/views/gateways/show.html.haml +++ b/app/views/gateways/show.html.haml @@ -16,4 +16,17 @@ %strong= t('gateways.show.description') + ":" = @gateway.description -= render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @gateway } \ No newline at end of file += render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @gateway } + + +%h2= t('gateway_settings.index.page_title') +- if @gateway.gateway_settings.any? + = render "gateway_settings/index_core", :gateway_settings => @gateway.gateway_settings + %br += render :partial => 'shared/create_link', :locals => { :parent => @gateway, :child_class => GatewaySetting } + +%h2= t('gateway_parameters.index.page_title') +- if @gateway.gateway_parameters.any? + = render "gateway_parameters/index_core", :gateway_parameters => @gateway.gateway_parameters + %br += render :partial => 'shared/create_link', :locals => { :parent => @gateway, :child_class => GatewayParameter } -- cgit v1.2.3