summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-05-23 11:48:37 +0200
committerPeter Kozak <spag@golwen.net>2013-05-23 11:48:37 +0200
commit8e239c856f6100d89611fca00a507499a342858e (patch)
treea7883659d26d599233dcbfeda6cc1f94c06858a2
parent5a89a4dca6b51154611dbdfc6c7619ae4c68976d (diff)
Route XML interpreter added
-rw-r--r--app/controllers/call_routes_controller.rb2
-rw-r--r--app/views/call_routes/_form_core.html.haml7
-rw-r--r--config/locales/views/call_routes/de.yml4
-rw-r--r--config/locales/views/call_routes/en.yml4
4 files changed, 15 insertions, 2 deletions
diff --git a/app/controllers/call_routes_controller.rb b/app/controllers/call_routes_controller.rb
index 528081a..dc0d175 100644
--- a/app/controllers/call_routes_controller.rb
+++ b/app/controllers/call_routes_controller.rb
@@ -113,7 +113,7 @@ class CallRoutesController < ApplicationController
private
def call_route_parameter_params
- params.require(:call_route).permit(:routing_table, :name, :endpoint_type, :endpoint_id, :position)
+ params.require(:call_route).permit(:routing_table, :name, :endpoint_type, :endpoint_id, :position, :xml)
end
def spread_breadcrumbs
diff --git a/app/views/call_routes/_form_core.html.haml b/app/views/call_routes/_form_core.html.haml
index 926c985..73b6338 100644
--- a/app/views/call_routes/_form_core.html.haml
+++ b/app/views/call_routes/_form_core.html.haml
@@ -2,4 +2,9 @@
= f.input :routing_table, :collection => CallRoute::ROUTING_TABLES, :label => t('call_routes.form.table.label'), :hint => conditional_hint('call_routes.form.table.hint'), :include_blank => false, :autofocus => true
= f.input :name, :label => t('call_routes.form.name.label'), :hint => conditional_hint('call_routes.form.name.hint')
= f.input :endpoint_str, :collection => @endpoints, :label => t('call_routes.form.endpoint.label'), :hint => conditional_hint('call_routes.form.endpoint.hint'), :include_blank => false
- = f.input :position, :label => t('call_routes.form.position.label'), :hint => conditional_hint('call_routes.form.position.hint') \ No newline at end of file
+ = f.input :position, :label => t('call_routes.form.position.label'), :hint => conditional_hint('call_routes.form.position.hint')
+
+ - if @call_route.new_record?
+ %p
+ %strong= t('call_routes.form.xml.separator')
+ = f.input :xml, :as => 'text', :label => t('call_routes.form.xml.label'), :hint => conditional_hint('call_routes.form.xml.hint') \ No newline at end of file
diff --git a/config/locales/views/call_routes/de.yml b/config/locales/views/call_routes/de.yml
index c9df1c2..d47c730 100644
--- a/config/locales/views/call_routes/de.yml
+++ b/config/locales/views/call_routes/de.yml
@@ -52,4 +52,8 @@ de:
position:
label: 'Position'
hint: ''
+ xml:
+ separator: 'oder als XML definieren'
+ label: 'XML'
+ hint: 'Route als XML eingeben'
submit: 'Absenden' \ No newline at end of file
diff --git a/config/locales/views/call_routes/en.yml b/config/locales/views/call_routes/en.yml
index c37773d..6194c9a 100644
--- a/config/locales/views/call_routes/en.yml
+++ b/config/locales/views/call_routes/en.yml
@@ -52,4 +52,8 @@ en:
position:
label: 'Position'
hint: ''
+ xml:
+ separator: 'or define as XML'
+ label: 'XML'
+ hint: 'Enter XML route'
submit: 'Submit' \ No newline at end of file