Commit f3225d397c7d33f9b6dd218a4ada202f8d5953a4
1 parent
fa9507d6
Exists in
master
and in
28 other branches
ActionItem152: enhancing search templates
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1215 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
4 changed files
with
10 additions
and
9 deletions
Show diff stats
app/views/search/_article.rhtml
app/views/search/_product.rhtml
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | <%# FIXME add more information %> |
3 | 3 | |
4 | 4 | <div> |
5 | - <%= icon('product') %> | |
5 | + <%= icon('product', :style => 'float: left') %> | |
6 | 6 | <div class='search-result-text'> |
7 | 7 | <%= image_tag(hit.image.public_filename(:minor), :style => 'float:right;') if hit.image %> |
8 | 8 | <strong> | ... | ... |
app/views/search/_profile.rhtml
app/views/search/popup.rhtml
1 | 1 | <h2><%= _('Search %s') % @environment.name %></h2> |
2 | 2 | |
3 | 3 | <% form_tag(:action => 'index') do%> |
4 | - <div id='search-' style='text-align: center;'> | |
5 | - <%= text_field_tag('query', '', :style => 'width: 70%;') %> | |
6 | - <%= submit_tag(_('Search')) %> | |
4 | + | |
5 | + <div id='search-field' style='text-align: center;'> | |
6 | + <%= text_field_tag('query', '', :size => 50) %> | |
7 | + <%= submit_button(:search, _('Search')) %> | |
7 | 8 | </div> |
8 | 9 | |
9 | 10 | <h3><%= _('Search options') %></h3> |
10 | 11 | |
11 | 12 | |
12 | - <div> | |
13 | - <%= submit_tag(_('Search')) %> | |
13 | + <% button_bar do %> | |
14 | + <%= submit_button(:search, _('Search')) %> | |
14 | 15 | <%= lightbox_close_button(_('Close')) %> |
15 | - </div> | |
16 | + <% end %> | |
16 | 17 | |
17 | 18 | <% end %> |
18 | 19 | ... | ... |