admin_assistant 0.0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/README +3 -28
  2. data/Rakefile +18 -10
  3. data/init.rb +1 -0
  4. data/install.rb +5 -1
  5. data/lib/admin_assistant/active_record_column.rb +211 -0
  6. data/lib/admin_assistant/association_target.rb +35 -0
  7. data/lib/admin_assistant/belongs_to_column.rb +186 -0
  8. data/lib/admin_assistant/builder.rb +222 -35
  9. data/lib/admin_assistant/column.rb +266 -297
  10. data/lib/admin_assistant/default_search_column.rb +41 -0
  11. data/lib/admin_assistant/file_column_column.rb +73 -0
  12. data/lib/admin_assistant/form_view.rb +7 -68
  13. data/lib/admin_assistant/helper.rb +4 -2
  14. data/lib/admin_assistant/index.rb +101 -81
  15. data/lib/admin_assistant/paperclip_column.rb +45 -0
  16. data/lib/admin_assistant/polymorphic_belongs_to_column.rb +102 -0
  17. data/lib/admin_assistant/request/autocomplete.rb +47 -0
  18. data/lib/admin_assistant/request/base.rb +176 -0
  19. data/lib/admin_assistant/request/create.rb +27 -0
  20. data/lib/admin_assistant/request/destroy.rb +15 -0
  21. data/lib/admin_assistant/request/edit.rb +11 -0
  22. data/lib/admin_assistant/request/index.rb +26 -0
  23. data/lib/admin_assistant/request/new.rb +19 -0
  24. data/lib/admin_assistant/request/show.rb +24 -0
  25. data/lib/admin_assistant/request/update.rb +44 -0
  26. data/lib/admin_assistant/search.rb +82 -0
  27. data/lib/admin_assistant/show_view.rb +20 -0
  28. data/lib/admin_assistant/virtual_column.rb +61 -0
  29. data/lib/admin_assistant.rb +190 -85
  30. data/lib/javascripts/admin_assistant.js +253 -0
  31. data/lib/stylesheets/activescaffold.css +219 -0
  32. data/lib/stylesheets/default.css +119 -0
  33. data/lib/views/_polymorphic_field_search.html.erb +89 -0
  34. data/lib/views/_restricted_autocompleter.html.erb +53 -0
  35. data/lib/views/autocomplete.html.erb +11 -0
  36. data/lib/views/form.html.erb +6 -3
  37. data/lib/views/index.html.erb +53 -46
  38. data/lib/views/show.html.erb +19 -0
  39. data/vendor/ar_query/MIT-LICENSE +20 -0
  40. data/vendor/ar_query/README +0 -0
  41. data/vendor/ar_query/init.rb +1 -0
  42. data/vendor/ar_query/install.rb +1 -0
  43. data/vendor/ar_query/lib/ar_query.rb +137 -0
  44. data/vendor/ar_query/spec/ar_query_spec.rb +253 -0
  45. data/vendor/ar_query/tasks/ar_query_tasks.rake +0 -0
  46. data/vendor/ar_query/uninstall.rb +1 -0
  47. metadata +39 -16
  48. data/lib/admin_assistant/request.rb +0 -183
  49. data/lib/stylesheets/admin_assistant.css +0 -75
@@ -1,75 +0,0 @@
1
- /******************************************************************************
2
- Don't edit this file: It gets re-copied every time the server starts.
3
- ******************************************************************************/
4
-
5
- #admin_assistant { font-family: "Verdana","Arial", sans-serif }
6
- #admin_assistant h2 { font-size: large; font-weight: bold }
7
- #admin_assistant .actions {
8
- position: absolute; right: 5px; top: 5px; text-align: right
9
- }
10
- #admin_assistant #header { position: relative }
11
-
12
- /***** Index stuff ***********************************************************/
13
-
14
- #admin_assistant.index table {
15
- width: 100%; margin: 0px 0px 10px 0px; padding: 0px
16
- }
17
- #admin_assistant.index th {
18
- background: #666; color: white; padding: 5px 20px 5px 5px
19
- }
20
- #admin_assistant.index th a {
21
- color: white
22
- }
23
- #admin_assistant.index th.sort.asc {
24
- background: #000 url(/images/admin_assistant/sort-asc.png) no-repeat right
25
- }
26
- #admin_assistant.index th.sort.desc {
27
- background: #000 url(/images/admin_assistant/sort-desc.png) no-repeat right
28
- }
29
- #admin_assistant.index td {
30
- background: white;
31
- border-bottom: 1px solid #ccc;
32
- border-right: 1px solid #ccc;
33
- padding: 5px
34
- }
35
- #admin_assistant.index tbody tr td:first-child {
36
- border-left: 1px solid #ccc;
37
- }
38
- #admin_assistant.index tbody tr.even td {
39
- background: #eee;
40
- }
41
-
42
- #admin_assistant.index tbody tr td.sort {
43
- background: #ddd
44
- }
45
- #admin_assistant.index tbody tr.even td.sort {
46
- background: #ccc
47
- }
48
-
49
- /***** Form stuff ************************************************************/
50
-
51
- #admin_assistant.form .column {
52
- margin-bottom: 10px;
53
- }
54
-
55
- #admin_assistant.form label {
56
- /* font-size: small;*/
57
- }
58
-
59
- #admin_assistant.form input {
60
- font-size: large
61
- }
62
-
63
- #admin_assistant.form input[type=text] {
64
- width: 100%
65
- }
66
-
67
- #admin_assistant.form select {
68
- font-size: large
69
- }
70
-
71
- #admin_assistant.form textarea {
72
- width: 100%;
73
- font-size: large
74
- }
75
-