diff options
| author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-06-20 19:06:19 +0200 |
|---|---|---|
| committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-06-20 19:06:19 +0200 |
| commit | eb0e1cc5c26275ff3e5c341404e8bc558f8312b8 (patch) | |
| tree | 71f449ccd6f15422717de3ac24f87d5e888ddd79 /app/views/call_routes | |
| parent | df6e17e48995f25e72509986f30700d778b179b6 (diff) | |
| parent | 3b27a5d45b12f6bac65da2a8e17387bfda42a2f1 (diff) | |
Merge branch 'develop'
Diffstat (limited to 'app/views/call_routes')
| -rw-r--r-- | app/views/call_routes/_form_core.html.haml | 7 | ||||
| -rw-r--r-- | app/views/call_routes/test.html.haml | 23 |
2 files changed, 29 insertions, 1 deletions
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/app/views/call_routes/test.html.haml b/app/views/call_routes/test.html.haml index 0b0fba7..2183987 100644 --- a/app/views/call_routes/test.html.haml +++ b/app/views/call_routes/test.html.haml @@ -1,5 +1,28 @@ %h2= 'Routing Test' += form_tag('test', :method => "get") do |f| + %p + %strong Routing Table + = label_tag(:routing_table_outbound, "Outbound") + = radio_button_tag(:routing_table, "outbound") + = label_tag(:routing_table_inbound, "Inbound") + = radio_button_tag(:routing_table, "inbound") + = label_tag(:routing_table_prerouting, "Prerouting") + = radio_button_tag(:routing_table, "prerouting") + %p + %strong From + %br + = collection_select(nil, :sip_account_id, SipAccount.all, :id, :to_s, {:include_blank => false, :prompt => 'Select SIP Account'}) + = collection_select(nil, :fax_account_id, FaxAccount.all, :id, :to_s, {:include_blank => false, :prompt => 'Select Fax Account'}) + = collection_select(nil, :hunt_group_id, HuntGroup.all, :id, :to_s, {:include_blank => false, :prompt => 'Select Hunt Group'}) + + %p + %strong Number + %br + = text_field_tag(:destination_number) + + %p= submit_tag("Test Route") + - if @route_test - if @route_test['destination'] %h3= 'Destination' |
