inline_forms 1.6.37 → 1.6.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/app/assets/javascripts/inline_forms.js +0 -28
- data/lib/app/assets/javascripts/inline_forms_application.js +1 -2
- data/lib/app/assets/stylesheets/inline_forms.css +23 -344
- data/lib/app/assets/stylesheets/inline_forms_application.css +1 -2
- data/lib/app/helpers/inline_forms_helper.rb +9 -8
- data/lib/app/views/inline_forms/_header.html.erb +37 -20
- data/lib/app/views/inline_forms/_list.html.erb +0 -2
- data/lib/app/views/inline_forms/_show.html.erb +7 -3
- data/lib/inline_forms/version.rb +1 -1
- metadata +2 -9
- data/lib/app/assets/images/add.png +0 -0
- data/lib/app/assets/images/tooltip-bubble-down-left.png +0 -0
- data/lib/app/assets/images/tooltip-bubble-down-right.png +0 -0
- data/lib/app/assets/images/tooltip-bubble-up-left.png +0 -0
- data/lib/app/assets/images/tooltip-bubble-up-right.png +0 -0
- data/lib/app/assets/javascripts/jquery.qtip.js +0 -3395
- data/lib/app/assets/stylesheets/jquery.qtip.css +0 -567
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NWQ0ZjllZjdlNTQzYjAwMWI5NmM2OWE1NGE1OTJmZjQ5NTI3NmI2OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWZjYjg5NjdiNTgyMzMxNGU3OTZkNmU4MTRlZjNhOWU1NzIzOGQwMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWVkMDM5ZjQyMzAzNmFjMzczNmE0MWFhMGZhZTIzZDQ4NzM1N2U0OGE5YTMw
|
10
|
+
YTFhMmFlMzk3ZTdhNGFmNzlkM2I0NTZiZjM2YWM2ZmJlMmY4MjA3NzlhOTlj
|
11
|
+
NThmNjVkNDNkZjcxYmM0OTAyN2E2Yzk5YzM1NjU1ZGMyOTM1ZWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGJlMjlkMTQ0NDk2MGMxMDY4ODFmZGU2YjZlOTJiY2Y2NDZiYjVlOWFhOWE2
|
14
|
+
MzNjODI0MWU4OGNmY2I1ZDU4M2FlZDNhMTg3OTk0MWFkZTEzYmZhODVkZGM5
|
15
|
+
NDliNzYwNTcwNTA2M2U4N2NiNWQ0ZWIwNWVhMjJiNmMyNTVjNjU=
|
@@ -2,33 +2,5 @@ $(document).ready(function() {
|
|
2
2
|
// get rid of translation_missing tooltips
|
3
3
|
$(this).on("mouseover", ".translation_missing", function() {
|
4
4
|
$(this).attr('title', '');
|
5
|
-
})
|
6
|
-
// qtips for validation hints
|
7
|
-
$(this).on("mouseover", ".has_validations", function() {
|
8
|
-
$(this).qtip({
|
9
|
-
content: {
|
10
|
-
text: function(api) {
|
11
|
-
// Retrieve content from custom attribute of the $('.selector') elements.
|
12
|
-
return $(this).attr('validation-hint');
|
13
|
-
}
|
14
|
-
},
|
15
|
-
show: {
|
16
|
-
ready: true // this took a loooooong time to find out...
|
17
|
-
},
|
18
|
-
position: {
|
19
|
-
my: 'left top',
|
20
|
-
at: 'top right',
|
21
|
-
adjust: {
|
22
|
-
y: +17
|
23
|
-
}
|
24
|
-
},
|
25
|
-
style: {
|
26
|
-
classes: 'ui-tooltip-jtools',
|
27
|
-
tip: {
|
28
|
-
corner: false
|
29
|
-
}
|
30
|
-
}
|
31
|
-
})
|
32
5
|
});
|
33
6
|
});
|
34
|
-
|
@@ -1,353 +1,11 @@
|
|
1
1
|
/*
|
2
2
|
Document : inline_forms
|
3
3
|
Created on : Feb 13, 2011, 10:00:55 AM
|
4
|
-
Author :
|
5
|
-
Description:
|
6
|
-
Purpose of the stylesheet follows.
|
4
|
+
Author : Ace Suares
|
5
|
+
Description: Stylessheet for inline_forms
|
7
6
|
*/
|
8
7
|
|
9
|
-
/*
|
10
|
-
TODO customize this sample style
|
11
|
-
Syntax recommendation http://www.w3.org/TR/REC-CSS2/
|
12
|
-
*/
|
13
|
-
#flash {
|
14
|
-
border: 4px solid white;
|
15
|
-
}
|
16
|
-
root {
|
17
|
-
display: block;
|
18
|
-
}
|
19
|
-
|
20
|
-
body {
|
21
|
-
background-color: #ffffff;
|
22
|
-
color: #887E42;
|
23
|
-
padding: 0;
|
24
|
-
margin: 0 auto;
|
25
|
-
font-family: sans-serif;
|
26
|
-
font-size: 11pt;
|
27
|
-
max-width: 1200px;
|
28
|
-
}
|
29
|
-
|
30
|
-
a {
|
31
|
-
text-decoration: none;
|
32
|
-
}
|
33
|
-
|
34
|
-
.inline_forms_list {
|
35
|
-
font-size: 100%;
|
36
|
-
font-weight: normal;
|
37
|
-
padding: 0;
|
38
|
-
padding-bottom: 8px;
|
39
|
-
margin: 0;
|
40
|
-
list-style-type: none;
|
41
|
-
-moz-border-radius: 10px;
|
42
|
-
-webkit-border-radius: 10px;
|
43
|
-
-webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
|
44
|
-
-moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
|
45
|
-
background-color: #F9EBAE;
|
46
|
-
}
|
47
|
-
|
48
|
-
.inline_forms_list ul {
|
49
|
-
list-style-type: none;
|
50
|
-
padding-left: 0;
|
51
|
-
}
|
52
|
-
|
53
|
-
.inline_forms_list .new_record_link {
|
54
|
-
background-color: transparent;
|
55
|
-
height: 25px;
|
56
|
-
padding-bottom: 0;
|
57
|
-
}
|
58
|
-
|
59
|
-
.inline_forms_list .new_record_link a {
|
60
|
-
float: right;
|
61
|
-
width: 24px;
|
62
|
-
height: 24px;
|
63
|
-
margin: 0;
|
64
|
-
padding: 0;
|
65
|
-
}
|
66
|
-
|
67
|
-
.inline_forms_list .new_record_link img {
|
68
|
-
width: 24px;
|
69
|
-
height: 24px;
|
70
|
-
border: 0;
|
71
|
-
}
|
72
|
-
|
73
|
-
.inline_forms_list li a {
|
74
|
-
color: #385B7B;
|
75
|
-
}
|
76
|
-
|
77
|
-
.inline_forms_list li {
|
78
|
-
padding: 0.5em;
|
79
|
-
margin-bottom: 0.3em;
|
80
|
-
}
|
81
|
-
|
82
|
-
.inline_forms_list li.odd {
|
83
|
-
background-color: #FFE58C;
|
84
|
-
}
|
85
|
-
|
86
|
-
.inline_forms_list li.even {
|
87
|
-
background-color: #FFEDB0;
|
88
|
-
}
|
89
|
-
|
90
|
-
.inline_forms_list li table {
|
91
|
-
border: 1px solid #EFCA4B;
|
92
|
-
margin: 0;
|
93
|
-
padding: 0;
|
94
|
-
}
|
95
|
-
|
96
|
-
.inline_forms_list table tr th {
|
97
|
-
padding: 0.2em 0.5em 0.2em 0.2em;
|
98
|
-
border-bottom: 1px dotted lightgrey;
|
99
|
-
font-weight: bold;
|
100
|
-
text-align: left;
|
101
|
-
background-color: #EFCA4B;
|
102
|
-
}
|
103
|
-
|
104
|
-
.inline_forms_list li table tr td {
|
105
|
-
padding: 0.2em 0.5em 0.2em 0.2em;
|
106
|
-
font-weight: normal;
|
107
|
-
background-color: #F9EBAE;
|
108
|
-
}
|
109
|
-
|
110
|
-
.inline_forms_list div.attribute_value {
|
111
|
-
margin: 0;
|
112
|
-
}
|
113
|
-
|
114
|
-
.inline_forms_list div.attribute_value a{
|
115
|
-
color: #385B7B;
|
116
|
-
}
|
117
|
-
.attribute_text_area {
|
118
|
-
width: 600px;
|
119
|
-
height: 4em;
|
120
|
-
padding: 0.2em;
|
121
|
-
background-color: #FFE58C;
|
122
|
-
border: 1px solid #eee;
|
123
|
-
-moz-border-radius: 5px;
|
124
|
-
-webkit-border-radius: 5px;
|
125
|
-
}
|
126
|
-
|
127
|
-
.header {
|
128
|
-
border-bottom: 1px solid #EFCA4B;
|
129
|
-
}
|
130
|
-
|
131
|
-
.form_element_header {
|
132
|
-
padding-top: 7px;
|
133
|
-
font-size: 120%;
|
134
|
-
font-weight: bolder;
|
135
|
-
}
|
136
|
-
|
137
|
-
.input_text_field {
|
138
|
-
width: 600px;
|
139
|
-
height: 1.5em;
|
140
|
-
padding: 0.2em;
|
141
|
-
background-color: #FFE58C;
|
142
|
-
border: 1px solid #eee;
|
143
|
-
-moz-border-radius: 5px;
|
144
|
-
-webkit-border-radius: 5px;
|
145
|
-
}
|
146
|
-
|
147
|
-
.edit_form_field {
|
148
|
-
position: relative;
|
149
|
-
}
|
150
|
-
|
151
|
-
.edit_form_checklist ul {
|
152
|
-
list-style-type: none;
|
153
|
-
}
|
154
|
-
|
155
|
-
ul.checklist {
|
156
|
-
list-style-type: none;
|
157
|
-
margin: 0;
|
158
|
-
padding: 0;
|
159
|
-
}
|
160
|
-
|
161
|
-
ul.checklist li {
|
162
|
-
margin: 0;
|
163
|
-
padding: 0;
|
164
|
-
}
|
165
|
-
|
166
|
-
|
167
|
-
.edit_form_checklist ul {
|
168
|
-
margin: 0;
|
169
|
-
padding: 0;
|
170
|
-
}
|
171
|
-
|
172
|
-
|
173
|
-
.inline_forms_list .edit_form_checklist ul li {
|
174
|
-
margin: 0;
|
175
|
-
padding: 0 0 0.3em 0;
|
176
|
-
}
|
177
|
-
|
178
|
-
.edit_form_checklist ul li .edit_form_checklist_text {
|
179
|
-
float: left;
|
180
|
-
padding: 0 0 0 0.2em;
|
181
|
-
}
|
182
8
|
|
183
|
-
.edit_form_checklist ul li input {
|
184
|
-
float: left;
|
185
|
-
padding: 0;
|
186
|
-
}
|
187
|
-
|
188
|
-
/* HEADER */
|
189
|
-
|
190
|
-
#inline_forms_application_header {
|
191
|
-
background-color: #B94C32;
|
192
|
-
color: #FFFFFF;
|
193
|
-
}
|
194
|
-
|
195
|
-
#logout, #logout a {
|
196
|
-
background-color: #B94C32;
|
197
|
-
color: #FFFFFF;
|
198
|
-
}
|
199
|
-
|
200
|
-
|
201
|
-
/* Deprecated by foundation
|
202
|
-
#Header {
|
203
|
-
background-color: #B94C32;
|
204
|
-
color: #FFFFFF;
|
205
|
-
font-weight: bold;
|
206
|
-
-moz-border-radius: 5px;
|
207
|
-
-webkit-border-radius: 5px;
|
208
|
-
-webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
|
209
|
-
-moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
|
210
|
-
/* border: 1px solid white; *\/
|
211
|
-
padding: 0.4em;
|
212
|
-
margin: 0.4em 0 0.3em 0;
|
213
|
-
}
|
214
|
-
#title {
|
215
|
-
float: left;
|
216
|
-
height: 1.5em;
|
217
|
-
}
|
218
|
-
#logout {
|
219
|
-
float:right;
|
220
|
-
height: 1.5em;
|
221
|
-
}
|
222
|
-
#logout a {
|
223
|
-
color: white;
|
224
|
-
}
|
225
|
-
#locales {
|
226
|
-
float: left;
|
227
|
-
height: 1.5em;
|
228
|
-
margin-left: 2em;
|
229
|
-
}
|
230
|
-
|
231
|
-
#locales ul {
|
232
|
-
list-style: none;
|
233
|
-
list-style-position: inside;
|
234
|
-
margin: 0;
|
235
|
-
padding: 0;
|
236
|
-
}
|
237
|
-
|
238
|
-
#locales li {
|
239
|
-
display: inline-block;
|
240
|
-
height: 1.5em;
|
241
|
-
}
|
242
|
-
|
243
|
-
#locales li a {
|
244
|
-
color: white;
|
245
|
-
}
|
246
|
-
|
247
|
-
#locales li .active_locale {
|
248
|
-
color: yellow;
|
249
|
-
}
|
250
|
-
*/
|
251
|
-
|
252
|
-
/* END HEADER */
|
253
|
-
|
254
|
-
|
255
|
-
#tabs {
|
256
|
-
background-color: #F9EBAE;
|
257
|
-
-moz-border-radius: 5px;
|
258
|
-
-webkit-border-radius: 5px;
|
259
|
-
-webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
|
260
|
-
-moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
|
261
|
-
background-image: -moz-linear-gradient(100% 100% 90deg, #F9EBAE, #EFCA4B);
|
262
|
-
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#F9EBAE), to(#F9EBAE));
|
263
|
-
padding: 0.4em;
|
264
|
-
margin: 0 0 0.4em 0;
|
265
|
-
font-size: 10pt;
|
266
|
-
}
|
267
|
-
|
268
|
-
#tabs li {
|
269
|
-
font-size: 110%;
|
270
|
-
font-weight: bold;
|
271
|
-
display: inline-block;
|
272
|
-
background-color: #EFE06C;
|
273
|
-
padding: 0.2em 0.3em;
|
274
|
-
border: 1px solid #385b7b;
|
275
|
-
-moz-border-radius: 5px;
|
276
|
-
-webkit-border-radius: 5px;
|
277
|
-
-webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
|
278
|
-
-moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
|
279
|
-
}
|
280
|
-
|
281
|
-
#tabs li:hover {
|
282
|
-
-webkit-transform: scale(1.2);
|
283
|
-
-moz-transform: scale(1.2);
|
284
|
-
-webkit-box-shadow: 0 2px 5px rgba(0,0,0, .5);
|
285
|
-
-moz-box-shadow: 0 2px 5px rgba(0,0,0, .5);
|
286
|
-
}
|
287
|
-
|
288
|
-
|
289
|
-
#tabs li a {
|
290
|
-
color: #887E42;
|
291
|
-
}
|
292
|
-
|
293
|
-
#tabs .current {
|
294
|
-
font-weight: bold;
|
295
|
-
color: #385B7B;
|
296
|
-
background-color: #FFECAB;
|
297
|
-
border: 2px solid #385b7b;
|
298
|
-
}
|
299
|
-
|
300
|
-
#admin_tabs {
|
301
|
-
background-color: #FFEBAE;
|
302
|
-
-moz-border-radius: 5px;
|
303
|
-
-webkit-border-radius: 5px;
|
304
|
-
-webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
|
305
|
-
-moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
|
306
|
-
background-image: -moz-linear-gradient(100% 100% 90deg, #FFEBAE, #E0CA4B);
|
307
|
-
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFEBAE), to(#FFEBAE));
|
308
|
-
padding: 0.4em;
|
309
|
-
margin: 0 0 0.4em 0;
|
310
|
-
font-size: 10pt;
|
311
|
-
}
|
312
|
-
|
313
|
-
#admin_tabs li {
|
314
|
-
font-size: 110%;
|
315
|
-
font-weight: bold;
|
316
|
-
display: inline-block;
|
317
|
-
background-color: #EFE06C;
|
318
|
-
padding: 0.2em 0.3em;
|
319
|
-
border: 1px solid #385b7b;
|
320
|
-
-moz-border-radius: 5px;
|
321
|
-
-webkit-border-radius: 5px;
|
322
|
-
-webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
|
323
|
-
-moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
|
324
|
-
}
|
325
|
-
|
326
|
-
#admin_tabs li:hover {
|
327
|
-
-webkit-transform: scale(1.2);
|
328
|
-
-moz-transform: scale(1.2);
|
329
|
-
-webkit-box-shadow: 0 2px 5px rgba(0,0,0, .5);
|
330
|
-
-moz-box-shadow: 0 2px 5px rgba(0,0,0, .5);
|
331
|
-
}
|
332
|
-
|
333
|
-
|
334
|
-
#admin_tabs li a {
|
335
|
-
color: #887E42;
|
336
|
-
}
|
337
|
-
|
338
|
-
#admin_tabs .current {
|
339
|
-
font-weight: bold;
|
340
|
-
color: #385B7B;
|
341
|
-
background-color: #FFECAB;
|
342
|
-
border: 2px solid #385b7b;
|
343
|
-
}
|
344
|
-
|
345
|
-
.close_icon {
|
346
|
-
border: 0;
|
347
|
-
margin: 1px;
|
348
|
-
padding: 0;
|
349
|
-
float:right;
|
350
|
-
}
|
351
9
|
|
352
10
|
.pagination {
|
353
11
|
padding: 0;
|
@@ -471,3 +129,24 @@ ul.checklist li {
|
|
471
129
|
{
|
472
130
|
margin-left: -20px;
|
473
131
|
}
|
132
|
+
|
133
|
+
|
134
|
+
/* LEFT */
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
#inline_forms_application_header {
|
139
|
+
background-color: #B94C32;
|
140
|
+
color: #FFFFFF;
|
141
|
+
}
|
142
|
+
|
143
|
+
#logout, #logout a {
|
144
|
+
background-color: #B94C32;
|
145
|
+
color: #FFFFFF;
|
146
|
+
}
|
147
|
+
|
148
|
+
|
149
|
+
#inline_forms_menu h1 {
|
150
|
+
color: #FFFFFF;
|
151
|
+
}
|
152
|
+
|