summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-09-06 21:50:42 +0200
committerhukl <contact@smyck.org>2009-09-06 21:50:42 +0200
commitd555e1b27df1096e8899f2e50c8d6421f4c1cca3 (patch)
tree2a2c0a51aada911aa4955bf9e242300b9a35e3ed
parentf90dca555247651c580f879a22d932f378a34ce9 (diff)
search field now at the right position with image button and image textfield
-rw-r--r--app/views/layouts/application.html.erb10
-rw-r--r--app/views/search/index.html.erb4
-rw-r--r--public/images/search_button.pngbin0 -> 4272 bytes
-rw-r--r--public/images/search_field.pngbin0 -> 2941 bytes
-rw-r--r--public/stylesheets/ccc.css30
5 files changed, 39 insertions, 5 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 69db939..0b32673 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -14,6 +14,16 @@
14 <div id="header"> 14 <div id="header">
15 <%= image_tag "header.png" %> 15 <%= image_tag "header.png" %>
16 </div> 16 </div>
17 <div id="search">
18 <table>
19 <% form_tag search_path, :method => 'get' do %>
20 <tr>
21 <td><%= text_field_tag :search_term %></td>
22 <td style="padding-top: 2px"><%= image_submit_tag("search_button.png") %></td>
23 </tr>
24 <% end %>
25 </table>
26 </div>
17 <div id="left_column"> 27 <div id="left_column">
18 <%= main_menu %> 28 <%= main_menu %>
19 29
diff --git a/app/views/search/index.html.erb b/app/views/search/index.html.erb
index 2e46d20..28764bf 100644
--- a/app/views/search/index.html.erb
+++ b/app/views/search/index.html.erb
@@ -1,9 +1,5 @@
1<h2>Suche</h2> 1<h2>Suche</h2>
2 2
3<% form_tag search_path, :method => 'get' do %>
4 <%= text_field_tag :search_term %>
5 <%= submit_tag "Suchen" %>
6<% end %>
7 3
8 4
9<% if params[:search_term] %> 5<% if params[:search_term] %>
diff --git a/public/images/search_button.png b/public/images/search_button.png
new file mode 100644
index 0000000..9a59f04
--- /dev/null
+++ b/public/images/search_button.png
Binary files differ
diff --git a/public/images/search_field.png b/public/images/search_field.png
new file mode 100644
index 0000000..1ee523d
--- /dev/null
+++ b/public/images/search_field.png
Binary files differ
diff --git a/public/stylesheets/ccc.css b/public/stylesheets/ccc.css
index 3ef7975..3417fef 100644
--- a/public/stylesheets/ccc.css
+++ b/public/stylesheets/ccc.css
@@ -107,7 +107,7 @@ div#left_column {
107div#center_column { 107div#center_column {
108 position: absolute; 108 position: absolute;
109 background-color: #ffffff; 109 background-color: #ffffff;
110 left: 185px; 110 left: 200px;
111 width: 460px; 111 width: 460px;
112 padding-left: 15px; 112 padding-left: 15px;
113 padding-right: 15px; 113 padding-right: 15px;
@@ -139,4 +139,32 @@ div.article_partial h2 a {
139 139
140div.article_partial p.excerpt { 140div.article_partial p.excerpt {
141 color: #404040; 141 color: #404040;
142}
143
144div#search {
145 position: absolute;
146 top: 145px;
147 left: 676px;
148 height: 1000px;
149 vertical-align: top;
150}
151
152div#search input[type=button] {
153 display: block;
154 height: 20px;
155}
156
157div#search input[type=text] {
158 display: block;
159 padding: 0px;
160 margin: 0px;
161 height: 20px;
162 width: 132px;
163 line-height: 20px;
164 border: none;
165 background-image: url(/images/search_field.png);
166 background-repeat:no-repeat;
167 padding-right: 5px;
168 margin-right: 5px;
169 background-position: top top;
142} \ No newline at end of file 170} \ No newline at end of file