From aad51572a6c75a4cbd2d44804b82f634a4ddd732 Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Thu, 27 Jun 2013 20:58:33 +0200 Subject: Add the possiblity to search the phone_books in the Switchboard#view --- app/views/switchboards/_form_core.html.haml | 1 + app/views/switchboards/show.html.erb | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) (limited to 'app/views') diff --git a/app/views/switchboards/_form_core.html.haml b/app/views/switchboards/_form_core.html.haml index a4fd15f..0bfcb86 100644 --- a/app/views/switchboards/_form_core.html.haml +++ b/app/views/switchboards/_form_core.html.haml @@ -6,3 +6,4 @@ = f.input :amount_of_displayed_phone_numbers, :label => t('switchboards.form.amount_of_displayed_phone_numbers.label'), :hint => conditional_hint('switchboards.form.amount_of_displayed_phone_numbers.hint') = f.input :blind_transfer_activated, :label => t('switchboards.form.blind_transfer_activated.label'), :hint => conditional_hint('switchboards.form.blind_transfer_activated.hint') = f.input :attended_transfer_activated, :label => t('switchboards.form.attended_transfer_activated.label'), :hint => conditional_hint('switchboards.form.attended_transfer_activated.hint') + = f.input :search_activated, :label => t('switchboards.form.search_activated.label'), :hint => conditional_hint('switchboards.form.search_activated.hint') \ No newline at end of file diff --git a/app/views/switchboards/show.html.erb b/app/views/switchboards/show.html.erb index 3bc4da4..b2cdbd4 100644 --- a/app/views/switchboards/show.html.erb +++ b/app/views/switchboards/show.html.erb @@ -26,6 +26,35 @@ {{/each}} {{/if}} + {{#if search_activated}} +
+

+ {{input type="text" value=searchText size="10" placeholder="Suchen..."}} +

+ +
+ {{/if}} {{#if switchboardEntrys.length}}