diff options
| author | hukl <contact@smyck.org> | 2009-06-13 15:42:13 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-06-13 15:42:13 +0200 |
| commit | edd450502f74dcbe8175dfddee8b50d14424a390 (patch) | |
| tree | c5b8c1b9b4ba57151cc72a6235e10807916ddeb4 /app/views/layouts/admin.html.erb | |
| parent | 4b60f3637c63c40f7b542bcb89cc48f0a6315e0b (diff) | |
added js search widget with clickable results that will take the user to the brand new "show" version of the page. so the user doesn't create new revisions and locks all the time when he / she only wants to take a look at it.
Diffstat (limited to 'app/views/layouts/admin.html.erb')
| -rw-r--r-- | app/views/layouts/admin.html.erb | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb index fea6b5a..1c985d9 100644 --- a/app/views/layouts/admin.html.erb +++ b/app/views/layouts/admin.html.erb | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | <%= javascript_include_tag 'tiny_mce/tiny_mce.js' %> | 11 | <%= javascript_include_tag 'tiny_mce/tiny_mce.js' %> |
| 12 | <%= javascript_include_tag 'admin_search.js' %> | 12 | <%= javascript_include_tag 'admin_search.js' %> |
| 13 | <%= javascript_include_tag 'admin_interface.js' %> | 13 | <%= javascript_include_tag 'admin_interface.js' %> |
| 14 | <%= javascript_include_tag 'jquery.hotkeys' %> | ||
| 14 | 15 | ||
| 15 | <script type="text/javascript"> | 16 | <script type="text/javascript"> |
| 16 | tinyMCE.init({ | 17 | tinyMCE.init({ |
| @@ -34,17 +35,14 @@ | |||
| 34 | <body> | 35 | <body> |
| 35 | <div id="wrapper"> | 36 | <div id="wrapper"> |
| 36 | <div id="navigation"> | 37 | <div id="navigation"> |
| 37 | <%= render :partial => 'admin/menu' if current_user %> | 38 | <div id="main_navigation"> |
| 39 | <%= render :partial => 'admin/menu' if current_user %> | ||
| 40 | </div> | ||
| 41 | <div id="sub_navigation"> | ||
| 42 | <%= yield :subnavigation %> | ||
| 43 | </div> | ||
| 38 | </div> | 44 | </div> |
| 39 | <div id="subnavigation"> | 45 | <div style="clear: both;"></div> |
| 40 | <%= yield :subnavigation %> | ||
| 41 | </div> | ||
| 42 | <div id="admin_search"> | ||
| 43 | <% form_tag admin_search_path do %> | ||
| 44 | <%= text_field_tag :search_term %> | ||
| 45 | <% end %> | ||
| 46 | </div> | ||
| 47 | <div style="clear: both"></div> | ||
| 48 | <div id="flash"> | 46 | <div id="flash"> |
| 49 | <%= flash[:notice] %> | 47 | <%= flash[:notice] %> |
| 50 | </div> | 48 | </div> |
| @@ -54,5 +52,16 @@ | |||
| 54 | 52 | ||
| 55 | <div id="results"></div> | 53 | <div id="results"></div> |
| 56 | </div> | 54 | </div> |
| 55 | |||
| 56 | <div id="search_widget"> | ||
| 57 | <div> | ||
| 58 | <% form_tag admin_search_path do %> | ||
| 59 | <span>Search: </span><%= text_field_tag :search_term %> | ||
| 60 | <% end %> | ||
| 61 | </div> | ||
| 62 | <div id="search_results" style="display: none"> | ||
| 63 | |||
| 64 | </div> | ||
| 65 | </div> | ||
| 57 | </body> | 66 | </body> |
| 58 | </html> | 67 | </html> |
