customize_admin 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/images/customize_admin/down_arrow.gif +0 -0
- data/app/assets/images/customize_admin/up_arrow.gif +0 -0
- data/app/assets/stylesheets/customize_admin/application.css +151 -0
- data/app/controllers/customize_admin/base_controller.rb +2 -2
- data/app/views/customize_admin/base/_form.html.erb +1 -1
- data/app/views/customize_admin/base/edit.html.erb +2 -2
- data/app/views/customize_admin/base/index.html.erb +5 -5
- data/app/views/layouts/customize_admin/application.html.erb +1 -1
- data/lib/customize_admin/version.rb +1 -1
- metadata +7 -17
- data/app/views/customize_admin/base/_form (kopia).html.erb +0 -13
Binary file
|
Binary file
|
@@ -30,8 +30,159 @@ form .input {
|
|
30
30
|
margin-left: -150px;
|
31
31
|
|
32
32
|
}
|
33
|
+
.select_box{
|
34
|
+
height: 600px;
|
35
|
+
}
|
36
|
+
.right{
|
37
|
+
margin-left:auto;
|
38
|
+
margin-right:auto;
|
39
|
+
}
|
40
|
+
#search{
|
41
|
+
width: 400px;
|
42
|
+
}
|
43
|
+
.search{
|
44
|
+
margin-left:auto;
|
45
|
+
margin-right:auto;
|
46
|
+
}
|
47
|
+
|
48
|
+
th .current {
|
49
|
+
padding-right: 12px;
|
50
|
+
background-repeat: no-repeat;
|
51
|
+
background-position: right center;
|
52
|
+
}
|
53
|
+
|
54
|
+
th .asc {
|
55
|
+
background-image: url(/images/up_arrow.gif);
|
56
|
+
}
|
57
|
+
|
58
|
+
th .desc {
|
59
|
+
background-image: url(/images/down_arrow.gif);
|
60
|
+
}
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
.digg_pagination {
|
65
|
+
background: white;
|
66
|
+
cursor: default;
|
67
|
+
|
68
|
+
|
69
|
+
/* self-clearing method: */ }
|
70
|
+
.digg_pagination a, .digg_pagination span, .digg_pagination em {
|
71
|
+
line-height:34px;
|
72
|
+
|
73
|
+
display: block;
|
74
|
+
float: left;
|
75
|
+
margin-right: 1px; }
|
76
|
+
.digg_pagination .disabled {
|
77
|
+
line-height:34px;
|
78
|
+
color: #999999;
|
79
|
+
border: 1px solid #dddddd; }
|
80
|
+
.digg_pagination .current {
|
81
|
+
line-height:34px;
|
82
|
+
padding: 0 14px;
|
83
|
+
text-decoration: none;
|
84
|
+
font-style: normal;
|
85
|
+
font-weight: bold;
|
86
|
+
background: #2e6ab1;
|
87
|
+
color: white;
|
88
|
+
border: 1px solid #2e6ab1; }
|
89
|
+
.digg_pagination a {
|
90
|
+
line-height:34px;
|
91
|
+
|
92
|
+
color: #105cb6;
|
93
|
+
border: 1px solid #9aafe5; }
|
94
|
+
.digg_pagination a:hover, .digg_pagination a:focus {
|
95
|
+
line-height:34px;
|
96
|
+
color: #000033;
|
97
|
+
border-color: #000033; }
|
98
|
+
.digg_pagination .page_info {
|
99
|
+
line-height:34px;
|
100
|
+
background: #2e6ab1;
|
101
|
+
color: white;
|
102
|
+
padding: 0.4em 0.6em;
|
103
|
+
width: 22em;
|
104
|
+
margin-bottom: 0.3em;
|
105
|
+
text-align: center; }
|
106
|
+
.digg_pagination .page_info b {
|
107
|
+
line-height:34px;
|
108
|
+
color: #000033;
|
109
|
+
background: #6aa6ed;
|
110
|
+
padding: 0.1em 0.25em; }
|
111
|
+
.digg_pagination:after {
|
112
|
+
line-height:34px;
|
113
|
+
content: ".";
|
114
|
+
display: block;
|
115
|
+
height: 0;
|
116
|
+
clear: both;
|
117
|
+
visibility: hidden; }
|
118
|
+
* html .digg_pagination {
|
119
|
+
line-height:34px;
|
120
|
+
height: 1%; }
|
121
|
+
*:first-child + html .digg_pagination {
|
122
|
+
line-height:34px;
|
123
|
+
overflow: hidden; }
|
124
|
+
|
125
|
+
.apple_pagination {
|
126
|
+
background: #f1f1f1;
|
127
|
+
border: 1px solid #e5e5e5;
|
128
|
+
text-align: center;
|
129
|
+
padding: 1em;
|
130
|
+
cursor: default; }
|
131
|
+
.apple_pagination a, .apple_pagination span {
|
132
|
+
padding: 0.2em 0.3em; }
|
133
|
+
.apple_pagination .disabled {
|
134
|
+
color: #aaaaaa; }
|
135
|
+
.apple_pagination .current {
|
136
|
+
font-style: normal;
|
137
|
+
font-weight: bold;
|
138
|
+
background-color: #bebebe;
|
139
|
+
display: inline-block;
|
140
|
+
width: 1.4em;
|
141
|
+
height: 1.4em;
|
142
|
+
line-height: 1.5;
|
143
|
+
-moz-border-radius: 1em;
|
144
|
+
-webkit-border-radius: 1em;
|
145
|
+
border-radius: 1em;
|
146
|
+
text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; }
|
147
|
+
.apple_pagination a {
|
148
|
+
text-decoration: none;
|
149
|
+
color: black; }
|
150
|
+
.apple_pagination a:hover, .apple_pagination a:focus {
|
151
|
+
text-decoration: underline; }
|
152
|
+
|
153
|
+
.flickr_pagination {
|
154
|
+
text-align: center;
|
155
|
+
padding: 0.3em;
|
156
|
+
cursor: default; }
|
157
|
+
.flickr_pagination a, .flickr_pagination span, .flickr_pagination em {
|
158
|
+
padding: 0.2em 0.5em; }
|
159
|
+
.flickr_pagination .disabled {
|
160
|
+
color: #aaaaaa; }
|
161
|
+
.flickr_pagination .current {
|
162
|
+
font-style: normal;
|
163
|
+
font-weight: bold;
|
164
|
+
color: #ff0084; }
|
165
|
+
.flickr_pagination a {
|
166
|
+
border: 1px solid #dddddd;
|
167
|
+
color: #0063dc;
|
168
|
+
text-decoration: none; }
|
169
|
+
.flickr_pagination a:hover, .flickr_pagination a:focus {
|
170
|
+
border-color: #003366;
|
171
|
+
background: #0063dc;
|
172
|
+
color: white; }
|
173
|
+
.flickr_pagination .page_info {
|
174
|
+
color: #aaaaaa;
|
175
|
+
padding-top: 0.8em; }
|
176
|
+
.flickr_pagination .previous_page, .flickr_pagination .next_page {
|
177
|
+
border-width: 2px; }
|
178
|
+
.flickr_pagination .previous_page {
|
179
|
+
margin-right: 1em; }
|
180
|
+
.flickr_pagination .next_page {
|
181
|
+
margin-left: 1em; }
|
182
|
+
|
33
183
|
|
34
184
|
/*
|
185
|
+
|
35
186
|
It's *strongly* suggested that you don't modify this file. Instead, load a new stylesheet after
|
36
187
|
this one in your layouts (eg formtastic_changes.css) and override the styles to suit your needs.
|
37
188
|
This will allow you to update formtastic.css with new releases without clobbering your own changes.
|
@@ -3,6 +3,7 @@ module CustomizeAdmin
|
|
3
3
|
inherit_resources
|
4
4
|
helper_method :sort_column, :sort_direction, :string_filter
|
5
5
|
before_filter :authenticate_admin_user!
|
6
|
+
SEARCH_QUERY = "name LIKE ?"
|
6
7
|
# defaults :route_prefix => 'admin'
|
7
8
|
|
8
9
|
protected
|
@@ -30,12 +31,11 @@ module CustomizeAdmin
|
|
30
31
|
def search( s )
|
31
32
|
|
32
33
|
if s
|
33
|
-
end_of_association_chain.where(
|
34
|
+
end_of_association_chain.where( "#{SEARCH_QUERY} ", "%#{s}%" )
|
34
35
|
else
|
35
36
|
end_of_association_chain
|
36
37
|
end
|
37
38
|
end
|
38
39
|
|
39
|
-
|
40
40
|
end
|
41
41
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%= semantic_form_for([:admin, resource]) do |f| %>
|
2
2
|
<%= render :partial => "all_form_inputs", :locals => { :f => f } %>
|
3
3
|
<%= render :partial => "more_form_inputs", :locals => { :f => f } %>
|
4
|
-
|
4
|
+
<div class="right"><%= f.submit "Save", :class => "btn large primary" %> </div>
|
5
5
|
|
6
6
|
<% end %>
|
7
7
|
|
@@ -1,23 +1,21 @@
|
|
1
1
|
|
2
2
|
<div class="page-header">
|
3
3
|
<h1>
|
4
|
-
|
5
|
-
a a a Base b b bjjjkkk
|
4
|
+
<%=resource_class.model_name.human%>
|
6
5
|
<div class="pull-right">
|
7
6
|
<%= button_to 'New', new_resource_path, :method => :get, :class => "btn primary" %>
|
8
7
|
</div>
|
9
8
|
</h1>
|
10
9
|
|
11
10
|
</div>
|
12
|
-
|
11
|
+
<div class="search">
|
13
12
|
<%= form_tag collection_path, :method => 'get' do %>
|
14
13
|
<p>
|
15
14
|
<%= text_field_tag :search, params[:search] %>
|
16
15
|
<%= submit_tag "Search", :name => nil %>
|
17
16
|
</p>
|
18
|
-
|
17
|
+
</div>
|
19
18
|
<% end %>
|
20
|
-
<%#= test %>
|
21
19
|
</br>
|
22
20
|
<table class="zebra-striped">
|
23
21
|
<tr>
|
@@ -43,6 +41,8 @@ Kuba <%=resource_class.model_name.human%>
|
|
43
41
|
</tr>
|
44
42
|
<% end %>
|
45
43
|
</table>
|
44
|
+
<div class="digg_pagination">
|
46
45
|
<%= will_paginate collection %>
|
46
|
+
</div>
|
47
47
|
<br />
|
48
48
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<div class="container">
|
15
15
|
<%= render "admin_menu" %>
|
16
16
|
<div class="pull-right">
|
17
|
-
<%= link_to('
|
17
|
+
<%= link_to('Logout', destroy_admin_user_session_path, :method => :delete) %>
|
18
18
|
</div>
|
19
19
|
</div>
|
20
20
|
</div>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: customize_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-02-
|
12
|
+
date: 2012-02-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &13317000 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,18 +21,7 @@ dependencies:
|
|
21
21
|
version: 3.1.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: pg
|
27
|
-
requirement: &7754640 !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
|
-
requirements:
|
30
|
-
- - ! '>='
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '0'
|
33
|
-
type: :development
|
34
|
-
prerelease: false
|
35
|
-
version_requirements: *7754640
|
24
|
+
version_requirements: *13317000
|
36
25
|
description: CustomizeAdmin.
|
37
26
|
email:
|
38
27
|
- cieslar.jakub@gmail.com
|
@@ -49,7 +38,6 @@ files:
|
|
49
38
|
- app/views/customize_admin/base/_more_index_action.html.erb
|
50
39
|
- app/views/customize_admin/base/_index_action.html.erb
|
51
40
|
- app/views/customize_admin/base/_more_show_action.html.erb
|
52
|
-
- app/views/customize_admin/base/_form (kopia).html.erb
|
53
41
|
- app/views/customize_admin/base/_more_form_inputs.html.erb
|
54
42
|
- app/views/customize_admin/base/index.html.erb
|
55
43
|
- app/views/customize_admin/base/_all_form_inputs.html.erb
|
@@ -61,6 +49,8 @@ files:
|
|
61
49
|
- app/assets/javascripts/customize_admin/application.js
|
62
50
|
- app/assets/javascripts/customize_admin/admin/base.js
|
63
51
|
- app/assets/javascripts/customize_admin/admin/application.js
|
52
|
+
- app/assets/images/customize_admin/down_arrow.gif
|
53
|
+
- app/assets/images/customize_admin/up_arrow.gif
|
64
54
|
- app/assets/stylesheets/customize_admin/application.css
|
65
55
|
- app/assets/stylesheets/customize_admin/bootstrap.css.less
|
66
56
|
- config/routes.rb
|
@@ -138,7 +128,7 @@ rubyforge_project:
|
|
138
128
|
rubygems_version: 1.8.15
|
139
129
|
signing_key:
|
140
130
|
specification_version: 3
|
141
|
-
summary: CustomizeAdmin
|
131
|
+
summary: CustomizeAdmin.
|
142
132
|
test_files:
|
143
133
|
- test/customize_admin_test.rb
|
144
134
|
- test/integration/navigation_test.rb
|