Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

mysql update

  • Loading branch information...
commit cbc61eb341195f70a81e60cf3ec91c788765266f 1 parent 588f4a7
@sunnyboy authored
View
2  Gemfile
@@ -8,4 +8,4 @@ gem 'dropbox'
gem 'nifty-generators'
gem 'simple_form'
#gem 'jquery-rails'
-gem 'wice_grid', '3.0.0.pre2'
+gem 'wice_grid', '3.0.0.pre3'
View
4 Gemfile.lock
@@ -77,7 +77,7 @@ GEM
treetop (1.4.9)
polyglot (>= 0.3.1)
tzinfo (0.3.23)
- wice_grid (3.0.0.pre2)
+ wice_grid (3.0.0.pre3)
will_paginate (3.0.pre2)
PLATFORMS
@@ -89,5 +89,5 @@ DEPENDENCIES
nifty-generators
rails
simple_form
- wice_grid (= 3.0.0.pre2)
+ wice_grid (= 3.0.0.pre3)
will_paginate
View
5 config/initializers/wice_grid_config.rb
@@ -67,6 +67,11 @@
# A boolean value specifying if a change in a filter triggers reloading of the grid.
Wice::Defaults::AUTO_RELOAD = false
+ # If set to an integer (including 0), in integer and float filters the second field will be
+ # dynamically updated when the first field is updated
+ Wice::Defaults::SECOND_RANGE_VALUE_FOLLOWING_THE_FIRST = false
+ # Wice::Defaults::SECOND_RANGE_VALUE_FOLLOWING_THE_FIRST = 1
+
# SQL operator used for matching strings in string filters.
Wice::Defaults::STRING_MATCHING_OPERATOR = 'LIKE'
View
135 config/locales/wice_grid.yml
@@ -274,6 +274,135 @@ pt:
validates_presence_error: Queira indicar o nome da query que deseja gravar
query_deleted_message: A query foi apagada.
query_saved_message: A query foi gravada.
- # To do: translate
- select_all: Select all
- deselect_all: Remove selection
+ select_all: Selecionar todos
+ deselect_all: Remover seleção
+
+pt-BR:
+ date:
+ order:
+ - :year
+ - :month
+ - :day
+ wice_grid:
+ show_filter_tooltip: Mostrar o filtro
+ hide_filter_tooltip: Esconder o filtro
+ csv_export_tooltip: Exportar em CSV
+ filter_tooltip: Filtrar
+ reset_filter_tooltip: Reinicializar
+ boolean_filter_true_label: sim
+ boolean_filter_false_label: não
+ previous_label: « Anterior
+ next_label: Próximo »
+ date_selector_tooltip_from: De
+ date_selector_tooltip_to: a
+ negation_checkbox_title: Excluir
+ show_all_records_label: Ver todos
+ show_all_records_tooltip: Ver todos os registos
+ all_queries_warning: Tem certeza que gostaria de visualizar todos os registos?
+ switch_back_to_paginated_mode_label: Voltar à lista paginada
+ switch_back_to_paginated_mode_tooltip: Voltar à lista por página
+ date_string_tooltip: Clique para apagar
+ saved_query_panel_title: Filtros gravados
+ save_query_button_label: Gravar o estado dos filtros
+ saved_query_deletion_confirmation: Tem certeza?
+ saved_query_deletion_link_title: Apagar o filtro
+ saved_query_link_title: Carregar o filtro
+ validates_uniqueness_error: Já existe um filtro com o mesmo nome
+ validates_presence_error: Indique o nome do filtro que deseja gravar
+ query_deleted_message: O filtro foi apagado.
+ query_saved_message: O filtro foi gravado.
+ select_all: Selecionar todos
+ deselect_all: Remover seleção
+
+
+sk:
+ date:
+ order:
+ - :year
+ - :month
+ - :day
+ wice_grid:
+ show_filter_tooltip: Zobraziť filter
+ hide_filter_tooltip: Skryť filter
+ csv_export_tooltip: Exportovať do CSV
+ filter_tooltip: Filter
+ reset_filter_tooltip: Zrušiť filtre
+ boolean_filter_true_label: "áno"
+ boolean_filter_false_label: "nie"
+ previous_label: « Predchádzajúci
+ next_label: Následujúci »
+ # Title of the icon clicking on which will show the calendar to set the FROM date.
+ date_selector_tooltip_from: Dátum od
+ # Title of the icon clicking on which will show the calendar to set the TO date.
+ date_selector_tooltip_to: Dátum do
+ # The title of the checkox to turn on negation
+ negation_checkbox_title: Inverzný výber
+ # link to switch to show all records
+ show_all_records_label: Zobraziť všetko
+ # tooltip for the link to switch to show all records
+ show_all_records_tooltip: Zobrazí všetky záznamy v databáze
+ # Warning message shown when the user wants to switch to all-records mode
+ all_queries_warning: Určite chceš zobraziť všetky záznamy v databáze?
+ # link to paginated view
+ switch_back_to_paginated_mode_label: späť na stránkové zobrazenie
+ # tooltip for the link to paginated view
+ switch_back_to_paginated_mode_tooltip: Prepnúť do stránkového zobrazenia
+ # Title of the date string.
+ date_string_tooltip: Kliknutím zmažeš
+ saved_query_panel_title: Uložené filtre/výsledky
+ save_query_button_label: Uložiť stav filtrov
+ saved_query_deletion_confirmation: Si si istý?
+ saved_query_deletion_link_title: Vymazať uložený filter
+ saved_query_link_title: Nahrať uložený filter
+ validates_uniqueness_error: Filter s uvedeným názvom už existuje.
+ validates_presence_error: Prosím zadaj názov uloženého filtra.
+ query_deleted_message: Uložený filter bol vymazaný.
+ query_saved_message: Filter bol uložený.
+ select_all: Vyber všetko
+ deselect_all: Zrušiť výber
+
+cz:
+ date:
+ order:
+ - :year
+ - :month
+ - :day
+ wice_grid:
+ show_filter_tooltip: Zobrazit filtr
+ hide_filter_tooltip: Skrýt filtr
+ csv_export_tooltip: Exportovat do CSV
+ filter_tooltip: Filtr
+ reset_filter_tooltip: Zrušit filtr
+ boolean_filter_true_label: "áno"
+ boolean_filter_false_label: "ne"
+ previous_label: « Předešlý
+ next_label: Následující »
+ # Title of the icon clicking on which will show the calendar to set the FROM date.
+ date_selector_tooltip_from: Dátum od
+ # Title of the icon clicking on which will show the calendar to set the TO date.
+ date_selector_tooltip_to: Dátum do
+ # The title of the checkox to turn on negation
+ negation_checkbox_title: Inverzní výběr
+ # link to switch to show all records
+ show_all_records_label: Zobrazit všechno
+ # tooltip for the link to switch to show all records
+ show_all_records_tooltip: Zobrazí všechny záznamy v databáze
+ # Warning message shown when the user wants to switch to all-records mode
+ all_queries_warning: Určitě chceš zobrazit všechny záznamy v databáze?
+ # link to paginated view
+ switch_back_to_paginated_mode_label: zpět na stránkové zobrazení
+ # tooltip for the link to paginated view
+ switch_back_to_paginated_mode_tooltip: Přepnout do stránkového zobrazení
+ # Title of the date string.
+ date_string_tooltip: Kliknutím zmažeš
+ saved_query_panel_title: Uložené filtry
+ save_query_button_label: Uložit aktuálni stav filtrů
+ saved_query_deletion_confirmation: Seš si jistej?
+ saved_query_deletion_link_title: Smazat uloženej filtr
+ saved_query_link_title: Použít uloženej filtr
+ validates_uniqueness_error: Filtr už existuje.
+ validates_presence_error: Prosím zadej název filtru.
+ query_deleted_message: Uložený filtr byl smazán.
+ query_saved_message: Filtr byl uložen.
+ select_all: Vyber všechno
+ deselect_all: Zrušit výběr
View
341 dbname110309.sql
341 additions, 0 deletions not shown
View
4 public/stylesheets/admin.css
@@ -37,7 +37,7 @@ a:hover { text-decoration: underline; }
/* Large action buttons */
a.action { float: right; padding: 2px 5px; margin: 0 0 1em 1em;
background: pink; color: #4C2516; border: 0px solid #4C2516; }
-a.action:hover { backgrounf: #B6D492; }
+a.action:hover { background: #B6D492; }
/* Small action buttons */
.actions { width: 200px; }
@@ -65,7 +65,7 @@ a.action:hover { backgrounf: #B6D492; }
background-image: url(/images/down_arrow.gif);
background-color: lightgrey;
}*/
-.show table { clear: both; margin: 0 200px; width: 300px; }*/
+.show table { clear: both; margin: 0 200px; width: 300px; }
.show table.wide { width: 600px; margin: 0 50px; }
.show table tr th { white-space: nowrap; padding-right: 5px; }
.show table tr td { border: 1px solid #666666; }
View
223 public/stylesheets/jquery-ui.css 100644 → 100755
@@ -1,7 +1,7 @@
/*
- * jQuery UI CSS Framework 1.8.7
+ * jQuery UI CSS Framework 1.8.9
*
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -42,9 +42,9 @@
/*
- * jQuery UI CSS Framework 1.8.7
+ * jQuery UI CSS Framework 1.8.9
*
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -293,12 +293,213 @@
/* Overlays */
.ui-widget-overlay { background: #666666 url(images/ui-bg_diagonals-thick_20_666666_40x40.png) 50% 50% repeat; opacity: .50;filter:Alpha(Opacity=50); }
.ui-widget-shadow { margin: -5px 0 0 -5px; padding: 5px; background: #000000 url(images/ui-bg_flat_10_000000_40x100.png) 50% 50% repeat-x; opacity: .20;filter:Alpha(Opacity=20); -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }/*
- * jQuery UI Datepicker 1.8.7
+ * jQuery UI Resizable 1.8.9
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Resizable#theming
+ */
+.ui-resizable { position: relative;}
+.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;}
+.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
+.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
+.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
+.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
+.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
+.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
+.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
+.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
+.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/*
+ * jQuery UI Selectable 1.8.9
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Selectable#theming
+ */
+.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
+/*
+ * jQuery UI Accordion 1.8.9
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Accordion#theming
+ */
+/* IE/Win - Fix animation bug - #4615 */
+.ui-accordion { width: 100%; }
+.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
+.ui-accordion .ui-accordion-li-fix { display: inline; }
+.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
+.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
+.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
+.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
+.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
+.ui-accordion .ui-accordion-content-active { display: block; }
+/*
+ * jQuery UI Autocomplete 1.8.9
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Autocomplete#theming
+ */
+.ui-autocomplete { position: absolute; cursor: default; }
+
+/* workarounds */
+* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
+
+/*
+ * jQuery UI Menu 1.8.9
*
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
+ * http://docs.jquery.com/UI/Menu#theming
+ */
+.ui-menu {
+ list-style:none;
+ padding: 2px;
+ margin: 0;
+ display:block;
+ float: left;
+}
+.ui-menu .ui-menu {
+ margin-top: -3px;
+}
+.ui-menu .ui-menu-item {
+ margin:0;
+ padding: 0;
+ zoom: 1;
+ float: left;
+ clear: left;
+ width: 100%;
+}
+.ui-menu .ui-menu-item a {
+ text-decoration:none;
+ display:block;
+ padding:.2em .4em;
+ line-height:1.5;
+ zoom:1;
+}
+.ui-menu .ui-menu-item a.ui-state-hover,
+.ui-menu .ui-menu-item a.ui-state-active {
+ font-weight: normal;
+ margin: -1px;
+}
+/*
+ * jQuery UI Button 1.8.9
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Button#theming
+ */
+.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
+.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
+button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
+.ui-button-icons-only { width: 3.4em; }
+button.ui-button-icons-only { width: 3.7em; }
+
+/*button text element */
+.ui-button .ui-button-text { display: block; line-height: 1.4; }
+.ui-button-text-only .ui-button-text { padding: .4em 1em; }
+.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
+.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
+.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
+.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
+/* no icon support for input elements, provide padding by default */
+input.ui-button { padding: .4em 1em; }
+
+/*button icon element(s) */
+.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
+.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
+.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
+.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
+.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
+
+/*button sets*/
+.ui-buttonset { margin-right: 7px; }
+.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
+
+/* workarounds */
+button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
+/*
+ * jQuery UI Dialog 1.8.9
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Dialog#theming
+ */
+.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
+.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
+.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
+.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
+.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
+.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
+.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
+.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
+.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
+.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
+.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
+.ui-draggable .ui-dialog-titlebar { cursor: move; }
+/*
+ * jQuery UI Slider 1.8.9
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Slider#theming
+ */
+.ui-slider { position: relative; text-align: left; }
+.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
+.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
+
+.ui-slider-horizontal { height: .8em; }
+.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
+.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
+.ui-slider-horizontal .ui-slider-range-min { left: 0; }
+.ui-slider-horizontal .ui-slider-range-max { right: 0; }
+
+.ui-slider-vertical { width: .8em; height: 100px; }
+.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
+.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
+.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
+.ui-slider-vertical .ui-slider-range-max { top: 0; }/*
+ * jQuery UI Tabs 1.8.9
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Tabs#theming
+ */
+.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
+.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
+.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
+.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
+.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
+.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
+.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
+.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
+.ui-tabs .ui-tabs-hide { display: none !important; }
+/*
+ * jQuery UI Datepicker 1.8.9
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
* http://docs.jquery.com/UI/Datepicker#theming
*/
.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
@@ -359,4 +560,14 @@
left: -4px; /*must have*/
width: 200px; /*must have*/
height: 200px; /*must have*/
-}
+}/*
+ * jQuery UI Progressbar 1.8.9
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Progressbar#theming
+ */
+.ui-progressbar { height:2em; text-align: left; }
+.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
View
5 public/stylesheets/public.css
@@ -22,7 +22,7 @@ table tr th, table tr td
a, a:visited
{ color: #993120; }
a:hover { }
-.clear: { clear: both; }
+.clear { clear: both; }
.center { text-align: center; }
/* Structure */
@@ -59,6 +59,5 @@ span.status.false { background: red; color: red; }
/* Round corners */
.round { -moz-border-radius: 10px;
- -webkit-border-radius: 10px;
- border-radius: 10px; }
+ -webkit-border-radius: 10px; }
Please sign in to comment.
Something went wrong with that request. Please try again.