beautiful_scaffold 0.3.6 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (200) hide show
  1. checksums.yaml +7 -0
  2. data/.gitattributes +2 -0
  3. data/.gitignore +2 -0
  4. data/CHANGELOG +68 -1
  5. data/Gemfile +24 -17
  6. data/README.rdoc +56 -44
  7. data/Rakefile +29 -0
  8. data/beautiful_scaffold.gemspec +8 -7
  9. data/lib/beautiful_scaffold/version.rb +3 -0
  10. data/lib/generators/beautiful_devisecancan_generator.rb +1 -1
  11. data/lib/generators/beautiful_jointable_generator.rb +40 -7
  12. data/lib/generators/beautiful_locale_generator.rb +102 -80
  13. data/lib/generators/beautiful_migration_generator.rb +14 -20
  14. data/lib/generators/beautiful_scaffold_common_methods.rb +88 -29
  15. data/lib/generators/beautiful_scaffold_generator.rb +166 -111
  16. data/lib/generators/templates/app/assets/javascripts/application-bs.js +11 -19
  17. data/lib/generators/templates/app/assets/javascripts/beautiful_scaffold.js +68 -78
  18. data/lib/generators/templates/app/assets/javascripts/bootstrap-datetimepicker-for-beautiful-scaffold.js +23 -42
  19. data/lib/generators/templates/app/assets/javascripts/fixed_menu.js +3 -1
  20. data/lib/generators/templates/app/assets/javascripts/jstree.min.js +6 -0
  21. data/lib/generators/templates/app/assets/stylesheets/application-bs.css +14 -12
  22. data/lib/generators/templates/app/assets/stylesheets/beautiful-scaffold.css.scss +38 -3
  23. data/lib/generators/templates/app/assets/stylesheets/themes/default-dark/32px.png +0 -0
  24. data/lib/generators/templates/app/assets/stylesheets/themes/default-dark/40px.png +0 -0
  25. data/lib/generators/templates/app/assets/stylesheets/themes/default-dark/style.scss +1146 -0
  26. data/lib/generators/templates/app/assets/stylesheets/themes/default-dark/throbber.gif +0 -0
  27. data/lib/generators/templates/app/assets/stylesheets/themes/default/32px.png +0 -0
  28. data/lib/generators/templates/app/assets/stylesheets/themes/default/40px.png +0 -0
  29. data/lib/generators/templates/app/assets/stylesheets/themes/default/style.scss +1102 -0
  30. data/lib/generators/templates/app/assets/stylesheets/themes/default/throbber.gif +0 -0
  31. data/lib/generators/templates/app/controllers/base.rb +31 -14
  32. data/lib/generators/templates/app/controllers/master_base.rb +55 -47
  33. data/lib/generators/templates/app/helpers/beautiful_helper.rb +123 -72
  34. data/lib/generators/templates/app/helpers/model_helper.rb +14 -3
  35. data/lib/generators/templates/app/initializers/link_renderer.rb +24 -17
  36. data/lib/generators/templates/app/initializers/ransack.rb +16 -0
  37. data/lib/generators/templates/app/locales/beautiful_scaffold.ja.yml +50 -0
  38. data/lib/generators/templates/app/models/concerns/fulltext_concern.rb +10 -10
  39. data/lib/generators/templates/app/views/_form.html.erb +4 -1
  40. data/lib/generators/templates/app/views/_form_habtm_tag.html.erb +6 -2
  41. data/lib/generators/templates/app/views/_mass_inserting.html.erb +40 -31
  42. data/lib/generators/templates/app/views/_modal_columns.html.erb +4 -4
  43. data/lib/generators/templates/app/views/edit.html.erb +1 -3
  44. data/lib/generators/templates/app/views/index.html.erb +84 -58
  45. data/lib/generators/templates/app/views/layout.html.erb +29 -47
  46. data/lib/generators/templates/app/views/new.html.erb +0 -2
  47. data/lib/generators/templates/app/views/partials/_forget_password.html.erb +2 -2
  48. data/lib/generators/templates/app/views/partials/_form_field.html.erb +7 -33
  49. data/lib/generators/templates/app/views/partials/_index_batch.html.erb +1 -1
  50. data/lib/generators/templates/app/views/partials/_index_column.html.erb +4 -6
  51. data/lib/generators/templates/app/views/partials/_index_header.html.erb +1 -1
  52. data/lib/generators/templates/app/views/partials/_index_search.html.erb +2 -4
  53. data/lib/generators/templates/app/views/partials/_index_search_default_fields.html.erb +1 -1
  54. data/lib/generators/templates/app/views/partials/_register_form.html.erb +2 -2
  55. data/lib/generators/templates/app/views/partials/_show_field.html.erb +3 -3
  56. data/lib/generators/templates/app/views/partials/_sign_in_form.html.erb +1 -1
  57. data/lib/generators/templates/app/views/partials/_sign_in_sign_out.html.erb +2 -2
  58. data/lib/generators/templates/app/views/show.html.erb +2 -2
  59. data/lib/generators/templates/app/views/treeview.html.erb +8 -5
  60. metadata +41 -187
  61. data/lib/generators/templates/app/assets/javascripts/bootstrap-datepicker.js +0 -834
  62. data/lib/generators/templates/app/assets/javascripts/bootstrap-timepicker.js +0 -797
  63. data/lib/generators/templates/app/assets/javascripts/jquery.jstree.js +0 -4551
  64. data/lib/generators/templates/app/assets/javascripts/jquery.livequery.js +0 -226
  65. data/lib/generators/templates/app/assets/stylesheets/bootstrap_and_overrides.css.less +0 -40
  66. data/lib/generators/templates/app/assets/stylesheets/datepicker.css +0 -224
  67. data/lib/generators/templates/app/assets/stylesheets/reset.css +0 -48
  68. data/lib/generators/templates/app/assets/stylesheets/themes/default/d.gif +0 -0
  69. data/lib/generators/templates/app/assets/stylesheets/themes/default/d.png +0 -0
  70. data/lib/generators/templates/app/assets/stylesheets/themes/default/style.css +0 -74
  71. data/lib/generators/templates/app/assets/stylesheets/timepicker.css +0 -89
  72. data/lib/generators/templates/markitup/jquery.markitup.js +0 -593
  73. data/lib/generators/templates/markitup/sets/bbcode/images/bold.png +0 -0
  74. data/lib/generators/templates/markitup/sets/bbcode/images/clean.png +0 -0
  75. data/lib/generators/templates/markitup/sets/bbcode/images/code.png +0 -0
  76. data/lib/generators/templates/markitup/sets/bbcode/images/fonts.png +0 -0
  77. data/lib/generators/templates/markitup/sets/bbcode/images/italic.png +0 -0
  78. data/lib/generators/templates/markitup/sets/bbcode/images/link.png +0 -0
  79. data/lib/generators/templates/markitup/sets/bbcode/images/list-bullet.png +0 -0
  80. data/lib/generators/templates/markitup/sets/bbcode/images/list-item.png +0 -0
  81. data/lib/generators/templates/markitup/sets/bbcode/images/list-numeric.png +0 -0
  82. data/lib/generators/templates/markitup/sets/bbcode/images/picture.png +0 -0
  83. data/lib/generators/templates/markitup/sets/bbcode/images/preview.png +0 -0
  84. data/lib/generators/templates/markitup/sets/bbcode/images/quotes.png +0 -0
  85. data/lib/generators/templates/markitup/sets/bbcode/images/stroke.png +0 -0
  86. data/lib/generators/templates/markitup/sets/bbcode/images/underline.png +0 -0
  87. data/lib/generators/templates/markitup/sets/bbcode/readme.txt +0 -11
  88. data/lib/generators/templates/markitup/sets/bbcode/set.js +0 -39
  89. data/lib/generators/templates/markitup/sets/bbcode/style.css +0 -47
  90. data/lib/generators/templates/markitup/sets/default/images/bold.png +0 -0
  91. data/lib/generators/templates/markitup/sets/default/images/clean.png +0 -0
  92. data/lib/generators/templates/markitup/sets/default/images/image.png +0 -0
  93. data/lib/generators/templates/markitup/sets/default/images/italic.png +0 -0
  94. data/lib/generators/templates/markitup/sets/default/images/link.png +0 -0
  95. data/lib/generators/templates/markitup/sets/default/images/list-bullet.png +0 -0
  96. data/lib/generators/templates/markitup/sets/default/images/list-numeric.png +0 -0
  97. data/lib/generators/templates/markitup/sets/default/images/picture.png +0 -0
  98. data/lib/generators/templates/markitup/sets/default/images/preview.png +0 -0
  99. data/lib/generators/templates/markitup/sets/default/images/stroke.png +0 -0
  100. data/lib/generators/templates/markitup/sets/default/set.js +0 -30
  101. data/lib/generators/templates/markitup/sets/default/style.css +0 -34
  102. data/lib/generators/templates/markitup/sets/html/images/bold.png +0 -0
  103. data/lib/generators/templates/markitup/sets/html/images/clean.png +0 -0
  104. data/lib/generators/templates/markitup/sets/html/images/h1.png +0 -0
  105. data/lib/generators/templates/markitup/sets/html/images/h2.png +0 -0
  106. data/lib/generators/templates/markitup/sets/html/images/h3.png +0 -0
  107. data/lib/generators/templates/markitup/sets/html/images/h4.png +0 -0
  108. data/lib/generators/templates/markitup/sets/html/images/h5.png +0 -0
  109. data/lib/generators/templates/markitup/sets/html/images/h6.png +0 -0
  110. data/lib/generators/templates/markitup/sets/html/images/image.png +0 -0
  111. data/lib/generators/templates/markitup/sets/html/images/italic.png +0 -0
  112. data/lib/generators/templates/markitup/sets/html/images/link.png +0 -0
  113. data/lib/generators/templates/markitup/sets/html/images/list-bullet.png +0 -0
  114. data/lib/generators/templates/markitup/sets/html/images/list-item.png +0 -0
  115. data/lib/generators/templates/markitup/sets/html/images/list-numeric.png +0 -0
  116. data/lib/generators/templates/markitup/sets/html/images/paragraph.png +0 -0
  117. data/lib/generators/templates/markitup/sets/html/images/picture.png +0 -0
  118. data/lib/generators/templates/markitup/sets/html/images/preview.png +0 -0
  119. data/lib/generators/templates/markitup/sets/html/images/stroke.png +0 -0
  120. data/lib/generators/templates/markitup/sets/html/readme.txt +0 -11
  121. data/lib/generators/templates/markitup/sets/html/set.js +0 -39
  122. data/lib/generators/templates/markitup/sets/html/style.css +0 -59
  123. data/lib/generators/templates/markitup/sets/markdown/images/bold.png +0 -0
  124. data/lib/generators/templates/markitup/sets/markdown/images/code.png +0 -0
  125. data/lib/generators/templates/markitup/sets/markdown/images/h1.png +0 -0
  126. data/lib/generators/templates/markitup/sets/markdown/images/h2.png +0 -0
  127. data/lib/generators/templates/markitup/sets/markdown/images/h3.png +0 -0
  128. data/lib/generators/templates/markitup/sets/markdown/images/h4.png +0 -0
  129. data/lib/generators/templates/markitup/sets/markdown/images/h5.png +0 -0
  130. data/lib/generators/templates/markitup/sets/markdown/images/h6.png +0 -0
  131. data/lib/generators/templates/markitup/sets/markdown/images/italic.png +0 -0
  132. data/lib/generators/templates/markitup/sets/markdown/images/link.png +0 -0
  133. data/lib/generators/templates/markitup/sets/markdown/images/list-bullet.png +0 -0
  134. data/lib/generators/templates/markitup/sets/markdown/images/list-numeric.png +0 -0
  135. data/lib/generators/templates/markitup/sets/markdown/images/picture.png +0 -0
  136. data/lib/generators/templates/markitup/sets/markdown/images/preview.png +0 -0
  137. data/lib/generators/templates/markitup/sets/markdown/images/quotes.png +0 -0
  138. data/lib/generators/templates/markitup/sets/markdown/readme.txt +0 -11
  139. data/lib/generators/templates/markitup/sets/markdown/set.js +0 -52
  140. data/lib/generators/templates/markitup/sets/markdown/style.css +0 -54
  141. data/lib/generators/templates/markitup/sets/textile/images/bold.png +0 -0
  142. data/lib/generators/templates/markitup/sets/textile/images/code.png +0 -0
  143. data/lib/generators/templates/markitup/sets/textile/images/h1.png +0 -0
  144. data/lib/generators/templates/markitup/sets/textile/images/h2.png +0 -0
  145. data/lib/generators/templates/markitup/sets/textile/images/h3.png +0 -0
  146. data/lib/generators/templates/markitup/sets/textile/images/h4.png +0 -0
  147. data/lib/generators/templates/markitup/sets/textile/images/h5.png +0 -0
  148. data/lib/generators/templates/markitup/sets/textile/images/h6.png +0 -0
  149. data/lib/generators/templates/markitup/sets/textile/images/italic.png +0 -0
  150. data/lib/generators/templates/markitup/sets/textile/images/link.png +0 -0
  151. data/lib/generators/templates/markitup/sets/textile/images/list-bullet.png +0 -0
  152. data/lib/generators/templates/markitup/sets/textile/images/list-numeric.png +0 -0
  153. data/lib/generators/templates/markitup/sets/textile/images/paragraph.png +0 -0
  154. data/lib/generators/templates/markitup/sets/textile/images/picture.png +0 -0
  155. data/lib/generators/templates/markitup/sets/textile/images/preview.png +0 -0
  156. data/lib/generators/templates/markitup/sets/textile/images/quotes.png +0 -0
  157. data/lib/generators/templates/markitup/sets/textile/images/stroke.png +0 -0
  158. data/lib/generators/templates/markitup/sets/textile/readme.txt +0 -11
  159. data/lib/generators/templates/markitup/sets/textile/set.js +0 -40
  160. data/lib/generators/templates/markitup/sets/textile/style.css +0 -60
  161. data/lib/generators/templates/markitup/sets/wiki/images/bold.png +0 -0
  162. data/lib/generators/templates/markitup/sets/wiki/images/code.png +0 -0
  163. data/lib/generators/templates/markitup/sets/wiki/images/h1.png +0 -0
  164. data/lib/generators/templates/markitup/sets/wiki/images/h2.png +0 -0
  165. data/lib/generators/templates/markitup/sets/wiki/images/h3.png +0 -0
  166. data/lib/generators/templates/markitup/sets/wiki/images/h4.png +0 -0
  167. data/lib/generators/templates/markitup/sets/wiki/images/h5.png +0 -0
  168. data/lib/generators/templates/markitup/sets/wiki/images/h6.png +0 -0
  169. data/lib/generators/templates/markitup/sets/wiki/images/italic.png +0 -0
  170. data/lib/generators/templates/markitup/sets/wiki/images/link.png +0 -0
  171. data/lib/generators/templates/markitup/sets/wiki/images/list-bullet.png +0 -0
  172. data/lib/generators/templates/markitup/sets/wiki/images/list-numeric.png +0 -0
  173. data/lib/generators/templates/markitup/sets/wiki/images/picture.png +0 -0
  174. data/lib/generators/templates/markitup/sets/wiki/images/preview.png +0 -0
  175. data/lib/generators/templates/markitup/sets/wiki/images/quotes.png +0 -0
  176. data/lib/generators/templates/markitup/sets/wiki/images/stroke.png +0 -0
  177. data/lib/generators/templates/markitup/sets/wiki/images/url.png +0 -0
  178. data/lib/generators/templates/markitup/sets/wiki/readme.txt +0 -11
  179. data/lib/generators/templates/markitup/sets/wiki/set.js +0 -37
  180. data/lib/generators/templates/markitup/sets/wiki/style.css +0 -57
  181. data/lib/generators/templates/markitup/skins/markitup/images/bg-container.png +0 -0
  182. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-bbcode.png +0 -0
  183. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-dotclear.png +0 -0
  184. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-html.png +0 -0
  185. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-json.png +0 -0
  186. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-markdown.png +0 -0
  187. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-textile.png +0 -0
  188. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-wiki.png +0 -0
  189. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-xml.png +0 -0
  190. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor.png +0 -0
  191. data/lib/generators/templates/markitup/skins/markitup/images/handle.png +0 -0
  192. data/lib/generators/templates/markitup/skins/markitup/images/menu.png +0 -0
  193. data/lib/generators/templates/markitup/skins/markitup/images/submenu.png +0 -0
  194. data/lib/generators/templates/markitup/skins/markitup/style.css +0 -147
  195. data/lib/generators/templates/markitup/skins/simple/images/handle.png +0 -0
  196. data/lib/generators/templates/markitup/skins/simple/images/menu.png +0 -0
  197. data/lib/generators/templates/markitup/skins/simple/images/submenu.png +0 -0
  198. data/lib/generators/templates/markitup/skins/simple/style.css +0 -118
  199. data/lib/generators/templates/markitup/templates/preview.css +0 -5
  200. data/lib/generators/templates/markitup/templates/preview.html +0 -11
@@ -1,226 +0,0 @@
1
- /*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
2
- * Dual licensed under the MIT (MIT_LICENSE.txt)
3
- * and GPL Version 2 (GPL_LICENSE.txt) licenses.
4
- *
5
- * Version: 1.1.1
6
- * Requires jQuery 1.3+
7
- * Docs: http://docs.jquery.com/Plugins/livequery
8
- */
9
-
10
- (function($) {
11
-
12
- $.extend($.fn, {
13
- livequery: function(type, fn, fn2) {
14
- var self = this, q;
15
-
16
- // Handle different call patterns
17
- if ($.isFunction(type))
18
- fn2 = fn, fn = type, type = undefined;
19
-
20
- // See if Live Query already exists
21
- $.each( $.livequery.queries, function(i, query) {
22
- if ( self.selector == query.selector && self.context == query.context &&
23
- type == query.type && (!fn || fn.$lqguid == query.fn.$lqguid) && (!fn2 || fn2.$lqguid == query.fn2.$lqguid) )
24
- // Found the query, exit the each loop
25
- return (q = query) && false;
26
- });
27
-
28
- // Create new Live Query if it wasn't found
29
- q = q || new $.livequery(this.selector, this.context, type, fn, fn2);
30
-
31
- // Make sure it is running
32
- q.stopped = false;
33
-
34
- // Run it immediately for the first time
35
- q.run();
36
-
37
- // Contnue the chain
38
- return this;
39
- },
40
-
41
- expire: function(type, fn, fn2) {
42
- var self = this;
43
-
44
- // Handle different call patterns
45
- if ($.isFunction(type))
46
- fn2 = fn, fn = type, type = undefined;
47
-
48
- // Find the Live Query based on arguments and stop it
49
- $.each( $.livequery.queries, function(i, query) {
50
- if ( self.selector == query.selector && self.context == query.context &&
51
- (!type || type == query.type) && (!fn || fn.$lqguid == query.fn.$lqguid) && (!fn2 || fn2.$lqguid == query.fn2.$lqguid) && !this.stopped )
52
- $.livequery.stop(query.id);
53
- });
54
-
55
- // Continue the chain
56
- return this;
57
- }
58
- });
59
-
60
- $.livequery = function(selector, context, type, fn, fn2) {
61
- this.selector = selector;
62
- this.context = context;
63
- this.type = type;
64
- this.fn = fn;
65
- this.fn2 = fn2;
66
- this.elements = [];
67
- this.stopped = false;
68
-
69
- // The id is the index of the Live Query in $.livequery.queries
70
- this.id = $.livequery.queries.push(this)-1;
71
-
72
- // Mark the functions for matching later on
73
- fn.$lqguid = fn.$lqguid || $.livequery.guid++;
74
- if (fn2) fn2.$lqguid = fn2.$lqguid || $.livequery.guid++;
75
-
76
- // Return the Live Query
77
- return this;
78
- };
79
-
80
- $.livequery.prototype = {
81
- stop: function() {
82
- var query = this;
83
-
84
- if ( this.type )
85
- // Unbind all bound events
86
- this.elements.unbind(this.type, this.fn);
87
- else if (this.fn2)
88
- // Call the second function for all matched elements
89
- this.elements.each(function(i, el) {
90
- query.fn2.apply(el);
91
- });
92
-
93
- // Clear out matched elements
94
- this.elements = [];
95
-
96
- // Stop the Live Query from running until restarted
97
- this.stopped = true;
98
- },
99
-
100
- run: function() {
101
- // Short-circuit if stopped
102
- if ( this.stopped ) return;
103
- var query = this;
104
-
105
- var oEls = this.elements,
106
- els = $(this.selector, this.context),
107
- nEls = els.not(oEls);
108
-
109
- // Set elements to the latest set of matched elements
110
- this.elements = els;
111
-
112
- if (this.type) {
113
- // Bind events to newly matched elements
114
- nEls.bind(this.type, this.fn);
115
-
116
- // Unbind events to elements no longer matched
117
- if (oEls.length > 0)
118
- $.each(oEls, function(i, el) {
119
- if ( $.inArray(el, els) < 0 )
120
- $.event.remove(el, query.type, query.fn);
121
- });
122
- }
123
- else {
124
- // Call the first function for newly matched elements
125
- nEls.each(function() {
126
- query.fn.apply(this);
127
- });
128
-
129
- // Call the second function for elements no longer matched
130
- if ( this.fn2 && oEls.length > 0 )
131
- $.each(oEls, function(i, el) {
132
- if ( $.inArray(el, els) < 0 )
133
- query.fn2.apply(el);
134
- });
135
- }
136
- }
137
- };
138
-
139
- $.extend($.livequery, {
140
- guid: 0,
141
- queries: [],
142
- queue: [],
143
- running: false,
144
- timeout: null,
145
-
146
- checkQueue: function() {
147
- if ( $.livequery.running && $.livequery.queue.length ) {
148
- var length = $.livequery.queue.length;
149
- // Run each Live Query currently in the queue
150
- while ( length-- )
151
- $.livequery.queries[ $.livequery.queue.shift() ].run();
152
- }
153
- },
154
-
155
- pause: function() {
156
- // Don't run anymore Live Queries until restarted
157
- $.livequery.running = false;
158
- },
159
-
160
- play: function() {
161
- // Restart Live Queries
162
- $.livequery.running = true;
163
- // Request a run of the Live Queries
164
- $.livequery.run();
165
- },
166
-
167
- registerPlugin: function() {
168
- $.each( arguments, function(i,n) {
169
- // Short-circuit if the method doesn't exist
170
- if (!$.fn[n]) return;
171
-
172
- // Save a reference to the original method
173
- var old = $.fn[n];
174
-
175
- // Create a new method
176
- $.fn[n] = function() {
177
- // Call the original method
178
- var r = old.apply(this, arguments);
179
-
180
- // Request a run of the Live Queries
181
- $.livequery.run();
182
-
183
- // Return the original methods result
184
- return r;
185
- }
186
- });
187
- },
188
-
189
- run: function(id) {
190
- if (id != undefined) {
191
- // Put the particular Live Query in the queue if it doesn't already exist
192
- if ( $.inArray(id, $.livequery.queue) < 0 )
193
- $.livequery.queue.push( id );
194
- }
195
- else
196
- // Put each Live Query in the queue if it doesn't already exist
197
- $.each( $.livequery.queries, function(id) {
198
- if ( $.inArray(id, $.livequery.queue) < 0 )
199
- $.livequery.queue.push( id );
200
- });
201
-
202
- // Clear timeout if it already exists
203
- if ($.livequery.timeout) clearTimeout($.livequery.timeout);
204
- // Create a timeout to check the queue and actually run the Live Queries
205
- $.livequery.timeout = setTimeout($.livequery.checkQueue, 20);
206
- },
207
-
208
- stop: function(id) {
209
- if (id != undefined)
210
- // Stop are particular Live Query
211
- $.livequery.queries[ id ].stop();
212
- else
213
- // Stop all Live Queries
214
- $.each( $.livequery.queries, function(id) {
215
- $.livequery.queries[ id ].stop();
216
- });
217
- }
218
- });
219
-
220
- // Register core DOM manipulation methods
221
- $.livequery.registerPlugin('append', 'prepend', 'after', 'before', 'wrap', 'attr', 'removeAttr', 'addClass', 'removeClass', 'toggleClass', 'empty', 'remove', 'html');
222
-
223
- // Run Live Queries when the Document is ready
224
- $(function() { $.livequery.play(); });
225
-
226
- })(jQuery);
@@ -1,40 +0,0 @@
1
- //= depend_on_asset "glyphicons-halflings-regular.eot"
2
- //= depend_on_asset "glyphicons-halflings-regular.woff"
3
- //= depend_on_asset "glyphicons-halflings-regular.ttf"
4
- //= depend_on_asset "glyphicons-halflings-regular.svg"
5
- //= depend_on_asset "twitter/bootstrap/glyphicons-halflings.png"
6
- //= depend_on_asset "twitter/bootstrap/glyphicons-halflings-white.png"
7
- //= depend_on_asset "fontawesome-webfont.eot"
8
- //= depend_on_asset "fontawesome-webfont.woff"
9
- //= depend_on_asset "fontawesome-webfont.ttf"
10
- //= depend_on_asset "fontawesome-webfont.svg"
11
-
12
- @import "twitter/bootstrap/bootstrap";
13
-
14
- // Set the correct sprite paths
15
- @iconSpritePath: image-url("twitter/bootstrap/glyphicons-halflings.png");
16
- @iconWhiteSpritePath: image-url("twitter/bootstrap/glyphicons-halflings-white.png");
17
-
18
- // Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
19
- @fontAwesomeEotPath: asset-url("fontawesome-webfont.eot");
20
- @fontAwesomeEotPath_iefix: asset-url("fontawesome-webfont.eot?#iefix");
21
- @fontAwesomeWoffPath: asset-url("fontawesome-webfont.woff");
22
- @fontAwesomeTtfPath: asset-url("fontawesome-webfont.ttf");
23
- @fontAwesomeSvgPath: asset-url("fontawesome-webfont.svg#fontawesomeregular");
24
-
25
- // Font Awesome
26
- @import "fontawesome/font-awesome";
27
-
28
- // Glyphicons
29
- //@import "twitter/bootstrap/sprites.less";
30
-
31
- // Your custom LESS stylesheets goes here
32
- //
33
- // Since bootstrap was imported above you have access to its mixins which
34
- // you may use and inherit here
35
- //
36
- // If you'd like to override bootstrap's own variables, you can do so here as well
37
- // See http://twitter.github.com/bootstrap/customize.html#variables for their names and documentation
38
- //
39
- // Example:
40
- // @linkColor: #ff0000;
@@ -1,224 +0,0 @@
1
- /*!
2
- * Datepicker for Bootstrap
3
- *
4
- * Copyright 2012 Stefan Petre
5
- * Improvements by Andrew Rowls
6
- * Licensed under the Apache License v2.0
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- */
10
- .datepicker {
11
- top: 0;
12
- left: 0;
13
- padding: 4px;
14
- margin-top: 1px;
15
- -webkit-border-radius: 4px;
16
- -moz-border-radius: 4px;
17
- border-radius: 4px;
18
- /*.dow {
19
- border-top: 1px solid #ddd !important;
20
- }*/
21
-
22
- }
23
- .datepicker:before {
24
- content: '';
25
- display: inline-block;
26
- border-left: 7px solid transparent;
27
- border-right: 7px solid transparent;
28
- border-bottom: 7px solid #ccc;
29
- border-bottom-color: rgba(0, 0, 0, 0.2);
30
- position: absolute;
31
- top: -7px;
32
- left: 6px;
33
- }
34
- .datepicker:after {
35
- content: '';
36
- display: inline-block;
37
- border-left: 6px solid transparent;
38
- border-right: 6px solid transparent;
39
- border-bottom: 6px solid #ffffff;
40
- position: absolute;
41
- top: -6px;
42
- left: 7px;
43
- }
44
- .datepicker > div {
45
- display: none;
46
- }
47
- .datepicker.days div.datepicker-days {
48
- display: block;
49
- }
50
- .datepicker.months div.datepicker-months {
51
- display: block;
52
- }
53
- .datepicker.years div.datepicker-years {
54
- display: block;
55
- }
56
- .datepicker table {
57
- width: 100%;
58
- margin: 0;
59
- }
60
- .datepicker td,
61
- .datepicker th {
62
- text-align: center;
63
- width: 20px;
64
- height: 20px;
65
- -webkit-border-radius: 4px;
66
- -moz-border-radius: 4px;
67
- border-radius: 4px;
68
- }
69
- .datepicker td.day:hover {
70
- background: #eeeeee;
71
- cursor: pointer;
72
- }
73
- .datepicker td.old,
74
- .datepicker td.new {
75
- color: #999999;
76
- }
77
- .datepicker td.disabled,
78
- .datepicker td.disabled:hover {
79
- background: none;
80
- color: #999999;
81
- cursor: default;
82
- }
83
- .datepicker td.active,
84
- .datepicker td.active:hover,
85
- .datepicker td.active.disabled,
86
- .datepicker td.active.disabled:hover {
87
- background-color: #006dcc;
88
- background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
89
- background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
90
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
91
- background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
92
- background-image: -o-linear-gradient(top, #0088cc, #0044cc);
93
- background-image: linear-gradient(top, #0088cc, #0044cc);
94
- background-repeat: repeat-x;
95
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
96
- border-color: #0044cc #0044cc #002a80;
97
- border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
98
- filter: progid:dximagetransform.microsoft.gradient(enabled=false);
99
- color: #fff;
100
- text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
101
- }
102
- .datepicker td.active:hover,
103
- .datepicker td.active:hover:hover,
104
- .datepicker td.active.disabled:hover,
105
- .datepicker td.active.disabled:hover:hover,
106
- .datepicker td.active:active,
107
- .datepicker td.active:hover:active,
108
- .datepicker td.active.disabled:active,
109
- .datepicker td.active.disabled:hover:active,
110
- .datepicker td.active.active,
111
- .datepicker td.active:hover.active,
112
- .datepicker td.active.disabled.active,
113
- .datepicker td.active.disabled:hover.active,
114
- .datepicker td.active.disabled,
115
- .datepicker td.active:hover.disabled,
116
- .datepicker td.active.disabled.disabled,
117
- .datepicker td.active.disabled:hover.disabled,
118
- .datepicker td.active[disabled],
119
- .datepicker td.active:hover[disabled],
120
- .datepicker td.active.disabled[disabled],
121
- .datepicker td.active.disabled:hover[disabled] {
122
- background-color: #0044cc;
123
- }
124
- .datepicker td.active:active,
125
- .datepicker td.active:hover:active,
126
- .datepicker td.active.disabled:active,
127
- .datepicker td.active.disabled:hover:active,
128
- .datepicker td.active.active,
129
- .datepicker td.active:hover.active,
130
- .datepicker td.active.disabled.active,
131
- .datepicker td.active.disabled:hover.active {
132
- background-color: #003399 \9;
133
- }
134
- .datepicker td span {
135
- display: block;
136
- width: 47px;
137
- height: 54px;
138
- line-height: 54px;
139
- float: left;
140
- margin: 2px;
141
- cursor: pointer;
142
- -webkit-border-radius: 4px;
143
- -moz-border-radius: 4px;
144
- border-radius: 4px;
145
- }
146
- .datepicker td span:hover {
147
- background: #eeeeee;
148
- }
149
- .datepicker td span.disabled,
150
- .datepicker td span.disabled:hover {
151
- background: none;
152
- color: #999999;
153
- cursor: default;
154
- }
155
- .datepicker td span.active,
156
- .datepicker td span.active:hover,
157
- .datepicker td span.active.disabled,
158
- .datepicker td span.active.disabled:hover {
159
- background-color: #006dcc;
160
- background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
161
- background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
162
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
163
- background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
164
- background-image: -o-linear-gradient(top, #0088cc, #0044cc);
165
- background-image: linear-gradient(top, #0088cc, #0044cc);
166
- background-repeat: repeat-x;
167
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
168
- border-color: #0044cc #0044cc #002a80;
169
- border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
170
- filter: progid:dximagetransform.microsoft.gradient(enabled=false);
171
- color: #fff;
172
- text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
173
- }
174
- .datepicker td span.active:hover,
175
- .datepicker td span.active:hover:hover,
176
- .datepicker td span.active.disabled:hover,
177
- .datepicker td span.active.disabled:hover:hover,
178
- .datepicker td span.active:active,
179
- .datepicker td span.active:hover:active,
180
- .datepicker td span.active.disabled:active,
181
- .datepicker td span.active.disabled:hover:active,
182
- .datepicker td span.active.active,
183
- .datepicker td span.active:hover.active,
184
- .datepicker td span.active.disabled.active,
185
- .datepicker td span.active.disabled:hover.active,
186
- .datepicker td span.active.disabled,
187
- .datepicker td span.active:hover.disabled,
188
- .datepicker td span.active.disabled.disabled,
189
- .datepicker td span.active.disabled:hover.disabled,
190
- .datepicker td span.active[disabled],
191
- .datepicker td span.active:hover[disabled],
192
- .datepicker td span.active.disabled[disabled],
193
- .datepicker td span.active.disabled:hover[disabled] {
194
- background-color: #0044cc;
195
- }
196
- .datepicker td span.active:active,
197
- .datepicker td span.active:hover:active,
198
- .datepicker td span.active.disabled:active,
199
- .datepicker td span.active.disabled:hover:active,
200
- .datepicker td span.active.active,
201
- .datepicker td span.active:hover.active,
202
- .datepicker td span.active.disabled.active,
203
- .datepicker td span.active.disabled:hover.active {
204
- background-color: #003399 \9;
205
- }
206
- .datepicker td span.old {
207
- color: #999999;
208
- }
209
- .datepicker th.switch {
210
- width: 145px;
211
- }
212
- .datepicker thead tr:first-child th {
213
- cursor: pointer;
214
- }
215
- .datepicker thead tr:first-child th:hover {
216
- background: #eeeeee;
217
- }
218
- .input-group.date .input-group-addon i,
219
- .input-group.date .input-group-addon i {
220
- display: block;
221
- cursor: pointer;
222
- width: 16px;
223
- height: 16px;
224
- }