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.
- data/README +3 -28
- data/Rakefile +18 -10
- data/init.rb +1 -0
- data/install.rb +5 -1
- data/lib/admin_assistant/active_record_column.rb +211 -0
- data/lib/admin_assistant/association_target.rb +35 -0
- data/lib/admin_assistant/belongs_to_column.rb +186 -0
- data/lib/admin_assistant/builder.rb +222 -35
- data/lib/admin_assistant/column.rb +266 -297
- data/lib/admin_assistant/default_search_column.rb +41 -0
- data/lib/admin_assistant/file_column_column.rb +73 -0
- data/lib/admin_assistant/form_view.rb +7 -68
- data/lib/admin_assistant/helper.rb +4 -2
- data/lib/admin_assistant/index.rb +101 -81
- data/lib/admin_assistant/paperclip_column.rb +45 -0
- data/lib/admin_assistant/polymorphic_belongs_to_column.rb +102 -0
- data/lib/admin_assistant/request/autocomplete.rb +47 -0
- data/lib/admin_assistant/request/base.rb +176 -0
- data/lib/admin_assistant/request/create.rb +27 -0
- data/lib/admin_assistant/request/destroy.rb +15 -0
- data/lib/admin_assistant/request/edit.rb +11 -0
- data/lib/admin_assistant/request/index.rb +26 -0
- data/lib/admin_assistant/request/new.rb +19 -0
- data/lib/admin_assistant/request/show.rb +24 -0
- data/lib/admin_assistant/request/update.rb +44 -0
- data/lib/admin_assistant/search.rb +82 -0
- data/lib/admin_assistant/show_view.rb +20 -0
- data/lib/admin_assistant/virtual_column.rb +61 -0
- data/lib/admin_assistant.rb +190 -85
- data/lib/javascripts/admin_assistant.js +253 -0
- data/lib/stylesheets/activescaffold.css +219 -0
- data/lib/stylesheets/default.css +119 -0
- data/lib/views/_polymorphic_field_search.html.erb +89 -0
- data/lib/views/_restricted_autocompleter.html.erb +53 -0
- data/lib/views/autocomplete.html.erb +11 -0
- data/lib/views/form.html.erb +6 -3
- data/lib/views/index.html.erb +53 -46
- data/lib/views/show.html.erb +19 -0
- data/vendor/ar_query/MIT-LICENSE +20 -0
- data/vendor/ar_query/README +0 -0
- data/vendor/ar_query/init.rb +1 -0
- data/vendor/ar_query/install.rb +1 -0
- data/vendor/ar_query/lib/ar_query.rb +137 -0
- data/vendor/ar_query/spec/ar_query_spec.rb +253 -0
- data/vendor/ar_query/tasks/ar_query_tasks.rake +0 -0
- data/vendor/ar_query/uninstall.rb +1 -0
- metadata +39 -16
- data/lib/admin_assistant/request.rb +0 -183
- 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
|
-
|