From d6c0c58f1c8ebb1fd2e7825db2b4623a1f2521eb Mon Sep 17 00:00:00 2001 From: Alan Fung-Schwarz Date: Sun, 8 Feb 2015 20:27:15 -0800 Subject: [PATCH] Styling with Bootstrap table & search --- app/views/poems/index.html.slim | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/poems/index.html.slim b/app/views/poems/index.html.slim index aadd83e..ba7c8c8 100644 --- a/app/views/poems/index.html.slim +++ b/app/views/poems/index.html.slim @@ -4,11 +4,11 @@ .row .span12 h2.search-query Search by text in poem - = search_form_for q, html: { class: 'form-horizontal search-query \ - input-append' } do |f| - = f.label :text_cont - => f.text_field :text_cont - = f.submit 'Search', class: 'btn btn-default' + = search_form_for q, html: { class: 'form-horizontal search-query input-append navbar-form navbar-left' } do |f| + .form-group + = f.label :text_cont, class: "sr-only" + => f.text_field :text_cont, placeholder: "Text contains", class: "form-control" + = f.submit 'Search', class: 'btn btn-default' .row .span12#paginator @@ -16,15 +16,15 @@ .row .span16 - table + table.table.table-condensed.table-hover + caption List of Poems thead tr th Johnson th Title tfoot tr - th Johnson - th Title + th(colspan=2) List of Poems tbody#poems-list - cache cache_key_for_poems, expires_in: 1.hour do = render @poems