Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c7c4cf
commit a8da00f
Showing
28 changed files
with
632 additions
and
576 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,40 @@ | ||
<div id="adv_search_content"> | ||
Título: <%= text_field_tag :title_filter, params[:title_filter], :size => 30 %><br/> | ||
Autor: <%= text_field_tag :author_filter, params[:author_filter], :size => 30 %><br/> | ||
Editor: <%= text_field_tag :editor_filter, params[:editor_filter], :size => 30 %><br/> | ||
Língua: <%= select "language_filter", "", Book.languages, {:include_blank => true} %> <br/> | ||
PDF: <%= check_box_tag :pdf_filter %><br/> | ||
|
||
<%= link_to "esconder busca avançada", books_path, :remote => true, :id => :adv_search_hide %> | ||
</div> | ||
<fieldset> | ||
<br/> | ||
<legend>Busca Avançada</legend> | ||
<%= form_tag books_path, :method => :get, :id => 'advanced_search' do %> | ||
<div class="control-group"> | ||
Título | ||
<div class="controls"> | ||
<%= text_field_tag :title_filter, params[:title_filter] %> | ||
</div> | ||
</div> | ||
<div class="control-group"> | ||
Autor | ||
<div class="controls"> | ||
<%= text_field_tag :author_filter, params[:author_filter] %> | ||
</div> | ||
</div> | ||
<div class="control-group"> | ||
Editor | ||
<div class="controls"> | ||
<%= text_field_tag :editor_filter, params[:editor_filter] %> | ||
</div> | ||
</div> | ||
<div class="control-group"> | ||
Língua | ||
<div class="controls"> | ||
<%= select "language_filter", "", Book.languages, {:include_blank => true} %> | ||
</div> | ||
</div> | ||
<div class="control-group"> | ||
<div class="controls"> | ||
<%= check_box_tag :pdf_filter %> | ||
</div> | ||
</div> | ||
|
||
<div class="form-actions"> | ||
<%= submit_tag "Busca", :class => 'btn btn-primary'%> | ||
</div> | ||
<% end %> | ||
</fieldset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
<p class="fields"> | ||
<%= f.label :name, "Autor" %><br /> | ||
<% if name %> | ||
<%= f.autocomplete_field :name, autocomplete_author_name_books_path, :class => "book_author", :value => name %> | ||
<% else %> | ||
<%= f.autocomplete_field :name, autocomplete_author_name_books_path, :class => "book_author"%> | ||
<% end %> | ||
<%= link_to_remove_fields "remove", f %> | ||
</p> | ||
<div class="control-group"> | ||
<%= f.label :name, "Autor", :class => 'control-label' %> | ||
<div class="controls"> | ||
<%= f.text_field :name, :class => "book_authors text_field" %> | ||
<span class="help-inline"><%= link_to_remove_fields raw("×"), f %></span> | ||
</div> | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<p class="fields"> | ||
<%= f.label :title, "Palavra Chave" %><br /> | ||
<%= f.autocomplete_field :title, autocomplete_tag_title_books_path %> | ||
<%= link_to_remove_fields "remove", f %> | ||
</p> | ||
<div class="control-group"> | ||
<%= f.label :title, "Palavra Chave", :class => 'control-label' %> | ||
<div class="controls"> | ||
<%= f.text_field :title, :class => "book_tags text_field" %> | ||
<span class="help-inline"><%= link_to_remove_fields raw("×"), f %></span> | ||
</div> | ||
</div> |
Oops, something went wrong.