diff options
author | Peter Kozak <spag@golwen.net> | 2013-05-22 08:57:34 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-05-22 08:57:34 +0200 |
commit | fa23f9f9b364c120163b76ef84bec15346148e94 (patch) | |
tree | c66dfd27aff2867997cddcffceee11c57a6fe006 /app/views | |
parent | fdab546ae6710e8b870d4b7a46a4283e2f20d86c (diff) |
Form added to routing test view
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/call_routes/test.html.haml | 23 |
1 files changed, 23 insertions, 0 deletions
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' |