KITAITI Makoto
null+****@clear*****
Fri Dec 26 13:32:50 JST 2014
KITAITI Makoto 2014-12-26 13:32:50 +0900 (Fri, 26 Dec 2014) New Revision: 308cd1037928ee04ae256e78ed41c3fb46fd0c5c https://github.com/ranguba/epub-searcher/commit/308cd1037928ee04ae256e78ed41c3fb46fd0c5c Message: Add delete button to book list page Modified files: app/stylesheets/groonga.scss app/views/_book.haml Modified: app/stylesheets/groonga.scss (+4 -0) =================================================================== --- app/stylesheets/groonga.scss 2014-12-26 13:32:36 +0900 (831e9c3) +++ app/stylesheets/groonga.scss 2014-12-26 13:32:50 +0900 (da59428) @@ -10,3 +10,7 @@ form { .keyword { color: red; } + +form.form_delete_book { + text-align: right; +} Modified: app/views/_book.haml (+2 -0) =================================================================== --- app/views/_book.haml 2014-12-26 13:32:36 +0900 (958d42f) +++ app/views/_book.haml 2014-12-26 13:32:50 +0900 (7612cb8) @@ -2,3 +2,5 @@ %div{:class => 'media-body'} %h4{:class => 'media-heading'}== #{book['title']} - #{book['author']} = book['file_path'] + = form_for :books, url_for(:books, :id => book['_id']), :method => 'delete', :class => 'form_delete_book' do |f| + = f.submit 'Delete', :class => 'btn btn-danger' -------------- next part -------------- HTML����������������������������...Download