"),k=d.filter(":last").next().find("a")));k.click(function(c){c.preventDefault();c=b("#"+a.prefix+"-empty");
6 | var d=c.clone(!0);d.removeClass(a.emptyCssClass).addClass(a.formCssClass).attr("id",a.prefix+"-"+l);d.is("tr")?d.children(":last").append('
189 |
190 |
191 |
227 |
232 |
233 |
234 |
235 |
236 |
--------------------------------------------------------------------------------
/static/admin/css/forms.css:
--------------------------------------------------------------------------------
1 | @import url('widgets.css');
2 |
3 | /* FORM ROWS */
4 |
5 | .form-row {
6 | overflow: hidden;
7 | padding: 10px;
8 | font-size: 13px;
9 | border-bottom: 1px solid #eee;
10 | }
11 |
12 | .form-row img, .form-row input {
13 | vertical-align: middle;
14 | }
15 |
16 | .form-row label input[type="checkbox"] {
17 | margin-top: 0;
18 | vertical-align: 0;
19 | }
20 |
21 | form .form-row p {
22 | padding-left: 0;
23 | }
24 |
25 | .hidden {
26 | display: none;
27 | }
28 |
29 | /* FORM LABELS */
30 |
31 | label {
32 | font-weight: normal;
33 | color: #666;
34 | font-size: 13px;
35 | }
36 |
37 | .required label, label.required {
38 | font-weight: bold;
39 | color: #333;
40 | }
41 |
42 | /* RADIO BUTTONS */
43 |
44 | form ul.radiolist li {
45 | list-style-type: none;
46 | }
47 |
48 | form ul.radiolist label {
49 | float: none;
50 | display: inline;
51 | }
52 |
53 | form ul.radiolist input[type="radio"] {
54 | margin: -2px 4px 0 0;
55 | padding: 0;
56 | }
57 |
58 | form ul.inline {
59 | margin-left: 0;
60 | padding: 0;
61 | }
62 |
63 | form ul.inline li {
64 | float: left;
65 | padding-right: 7px;
66 | }
67 |
68 | /* ALIGNED FIELDSETS */
69 |
70 | .aligned label {
71 | display: block;
72 | padding: 4px 10px 0 0;
73 | float: left;
74 | width: 160px;
75 | word-wrap: break-word;
76 | line-height: 1;
77 | }
78 |
79 | .aligned label:not(.vCheckboxLabel):after {
80 | content: '';
81 | display: inline-block;
82 | vertical-align: middle;
83 | height: 26px;
84 | }
85 |
86 | .aligned label + p, .aligned label + div.help, .aligned label + div.readonly {
87 | padding: 6px 0;
88 | margin-top: 0;
89 | margin-bottom: 0;
90 | margin-left: 170px;
91 | }
92 |
93 | .aligned ul label {
94 | display: inline;
95 | float: none;
96 | width: auto;
97 | }
98 |
99 | .aligned .form-row input {
100 | margin-bottom: 0;
101 | }
102 |
103 | .colMS .aligned .vLargeTextField, .colMS .aligned .vXMLLargeTextField {
104 | width: 350px;
105 | }
106 |
107 | form .aligned ul {
108 | margin-left: 160px;
109 | padding-left: 10px;
110 | }
111 |
112 | form .aligned ul.radiolist {
113 | display: inline-block;
114 | margin: 0;
115 | padding: 0;
116 | }
117 |
118 | form .aligned p.help,
119 | form .aligned div.help {
120 | clear: left;
121 | margin-top: 0;
122 | margin-left: 160px;
123 | padding-left: 10px;
124 | }
125 |
126 | form .aligned label + p.help,
127 | form .aligned label + div.help {
128 | margin-left: 0;
129 | padding-left: 0;
130 | }
131 |
132 | form .aligned p.help:last-child,
133 | form .aligned div.help:last-child {
134 | margin-bottom: 0;
135 | padding-bottom: 0;
136 | }
137 |
138 | form .aligned input + p.help,
139 | form .aligned textarea + p.help,
140 | form .aligned select + p.help,
141 | form .aligned input + div.help,
142 | form .aligned textarea + div.help,
143 | form .aligned select + div.help {
144 | margin-left: 160px;
145 | padding-left: 10px;
146 | }
147 |
148 | form .aligned ul li {
149 | list-style: none;
150 | }
151 |
152 | form .aligned table p {
153 | margin-left: 0;
154 | padding-left: 0;
155 | }
156 |
157 | .aligned .vCheckboxLabel {
158 | float: none;
159 | width: auto;
160 | display: inline-block;
161 | vertical-align: -3px;
162 | padding: 0 0 5px 5px;
163 | }
164 |
165 | .aligned .vCheckboxLabel + p.help,
166 | .aligned .vCheckboxLabel + div.help {
167 | margin-top: -4px;
168 | }
169 |
170 | .colM .aligned .vLargeTextField, .colM .aligned .vXMLLargeTextField {
171 | width: 610px;
172 | }
173 |
174 | .checkbox-row p.help,
175 | .checkbox-row div.help {
176 | margin-left: 0;
177 | padding-left: 0;
178 | }
179 |
180 | fieldset .field-box {
181 | float: left;
182 | margin-right: 20px;
183 | }
184 |
185 | /* WIDE FIELDSETS */
186 |
187 | .wide label {
188 | width: 200px;
189 | }
190 |
191 | form .wide p,
192 | form .wide input + p.help,
193 | form .wide input + div.help {
194 | margin-left: 200px;
195 | }
196 |
197 | form .wide p.help,
198 | form .wide div.help {
199 | padding-left: 38px;
200 | }
201 |
202 | form div.help ul {
203 | padding-left: 0;
204 | margin-left: 0;
205 | }
206 |
207 | .colM fieldset.wide .vLargeTextField, .colM fieldset.wide .vXMLLargeTextField {
208 | width: 450px;
209 | }
210 |
211 | /* COLLAPSED FIELDSETS */
212 |
213 | fieldset.collapsed * {
214 | display: none;
215 | }
216 |
217 | fieldset.collapsed h2, fieldset.collapsed {
218 | display: block;
219 | }
220 |
221 | fieldset.collapsed {
222 | border: 1px solid #eee;
223 | border-radius: 4px;
224 | overflow: hidden;
225 | }
226 |
227 | fieldset.collapsed h2 {
228 | background: #f8f8f8;
229 | color: #666;
230 | }
231 |
232 | fieldset .collapse-toggle {
233 | color: #fff;
234 | }
235 |
236 | fieldset.collapsed .collapse-toggle {
237 | background: transparent;
238 | display: inline;
239 | color: #447e9b;
240 | }
241 |
242 | /* MONOSPACE TEXTAREAS */
243 |
244 | fieldset.monospace textarea {
245 | font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;
246 | }
247 |
248 | /* SUBMIT ROW */
249 |
250 | .submit-row {
251 | padding: 12px 14px;
252 | margin: 0 0 20px;
253 | background: #f8f8f8;
254 | border: 1px solid #eee;
255 | border-radius: 4px;
256 | text-align: right;
257 | overflow: hidden;
258 | }
259 |
260 | body.popup .submit-row {
261 | overflow: auto;
262 | }
263 |
264 | .submit-row input {
265 | height: 35px;
266 | line-height: 15px;
267 | margin: 0 0 0 5px;
268 | }
269 |
270 | .submit-row input.default {
271 | margin: 0 0 0 8px;
272 | text-transform: uppercase;
273 | }
274 |
275 | .submit-row p {
276 | margin: 0.3em;
277 | }
278 |
279 | .submit-row p.deletelink-box {
280 | float: left;
281 | margin: 0;
282 | }
283 |
284 | .submit-row a.deletelink {
285 | display: block;
286 | background: #ba2121;
287 | border-radius: 4px;
288 | padding: 10px 15px;
289 | height: 15px;
290 | line-height: 15px;
291 | color: #fff;
292 | }
293 |
294 | .submit-row a.deletelink:focus,
295 | .submit-row a.deletelink:hover,
296 | .submit-row a.deletelink:active {
297 | background: #a41515;
298 | }
299 |
300 | /* CUSTOM FORM FIELDS */
301 |
302 | .vSelectMultipleField {
303 | vertical-align: top;
304 | }
305 |
306 | .vCheckboxField {
307 | border: none;
308 | }
309 |
310 | .vDateField, .vTimeField {
311 | margin-right: 2px;
312 | margin-bottom: 4px;
313 | }
314 |
315 | .vDateField {
316 | min-width: 6.85em;
317 | }
318 |
319 | .vTimeField {
320 | min-width: 4.7em;
321 | }
322 |
323 | .vURLField {
324 | width: 30em;
325 | }
326 |
327 | .vLargeTextField, .vXMLLargeTextField {
328 | width: 48em;
329 | }
330 |
331 | .flatpages-flatpage #id_content {
332 | height: 40.2em;
333 | }
334 |
335 | .module table .vPositiveSmallIntegerField {
336 | width: 2.2em;
337 | }
338 |
339 | .vTextField {
340 | width: 20em;
341 | }
342 |
343 | .vIntegerField {
344 | width: 5em;
345 | }
346 |
347 | .vBigIntegerField {
348 | width: 10em;
349 | }
350 |
351 | .vForeignKeyRawIdAdminField {
352 | width: 5em;
353 | }
354 |
355 | /* INLINES */
356 |
357 | .inline-group {
358 | padding: 0;
359 | margin: 0 0 30px;
360 | }
361 |
362 | .inline-group thead th {
363 | padding: 8px 10px;
364 | }
365 |
366 | .inline-group .aligned label {
367 | width: 160px;
368 | }
369 |
370 | .inline-related {
371 | position: relative;
372 | }
373 |
374 | .inline-related h3 {
375 | margin: 0;
376 | color: #666;
377 | padding: 5px;
378 | font-size: 13px;
379 | background: #f8f8f8;
380 | border-top: 1px solid #eee;
381 | border-bottom: 1px solid #eee;
382 | }
383 |
384 | .inline-related h3 span.delete {
385 | float: right;
386 | }
387 |
388 | .inline-related h3 span.delete label {
389 | margin-left: 2px;
390 | font-size: 11px;
391 | }
392 |
393 | .inline-related fieldset {
394 | margin: 0;
395 | background: #fff;
396 | border: none;
397 | width: 100%;
398 | }
399 |
400 | .inline-related fieldset.module h3 {
401 | margin: 0;
402 | padding: 2px 5px 3px 5px;
403 | font-size: 11px;
404 | text-align: left;
405 | font-weight: bold;
406 | background: #bcd;
407 | color: #fff;
408 | }
409 |
410 | .inline-group .tabular fieldset.module {
411 | border: none;
412 | }
413 |
414 | .inline-related.tabular fieldset.module table {
415 | width: 100%;
416 | }
417 |
418 | .last-related fieldset {
419 | border: none;
420 | }
421 |
422 | .inline-group .tabular tr.has_original td {
423 | padding-top: 2em;
424 | }
425 |
426 | .inline-group .tabular tr td.original {
427 | padding: 2px 0 0 0;
428 | width: 0;
429 | _position: relative;
430 | }
431 |
432 | .inline-group .tabular th.original {
433 | width: 0px;
434 | padding: 0;
435 | }
436 |
437 | .inline-group .tabular td.original p {
438 | position: absolute;
439 | left: 0;
440 | height: 1.1em;
441 | padding: 2px 9px;
442 | overflow: hidden;
443 | font-size: 9px;
444 | font-weight: bold;
445 | color: #666;
446 | _width: 700px;
447 | }
448 |
449 | .inline-group ul.tools {
450 | padding: 0;
451 | margin: 0;
452 | list-style: none;
453 | }
454 |
455 | .inline-group ul.tools li {
456 | display: inline;
457 | padding: 0 5px;
458 | }
459 |
460 | .inline-group div.add-row,
461 | .inline-group .tabular tr.add-row td {
462 | color: #666;
463 | background: #f8f8f8;
464 | padding: 8px 10px;
465 | border-bottom: 1px solid #eee;
466 | }
467 |
468 | .inline-group .tabular tr.add-row td {
469 | padding: 8px 10px;
470 | border-bottom: 1px solid #eee;
471 | }
472 |
473 | .inline-group ul.tools a.add,
474 | .inline-group div.add-row a,
475 | .inline-group .tabular tr.add-row td a {
476 | background: url(../img/icon-addlink.svg) 0 1px no-repeat;
477 | padding-left: 16px;
478 | font-size: 12px;
479 | }
480 |
481 | .empty-form {
482 | display: none;
483 | }
484 |
485 | /* RELATED FIELD ADD ONE / LOOKUP */
486 |
487 | .add-another, .related-lookup {
488 | margin-left: 5px;
489 | display: inline-block;
490 | vertical-align: middle;
491 | background-repeat: no-repeat;
492 | background-size: 14px;
493 | }
494 |
495 | .add-another {
496 | width: 16px;
497 | height: 16px;
498 | background-image: url(../img/icon-addlink.svg);
499 | }
500 |
501 | .related-lookup {
502 | width: 16px;
503 | height: 16px;
504 | background-image: url(../img/search.svg);
505 | }
506 |
507 | form .related-widget-wrapper ul {
508 | display: inline-block;
509 | margin-left: 0;
510 | padding-left: 0;
511 | }
512 |
513 | .clearable-file-input input {
514 | margin-top: 0;
515 | }
516 |
--------------------------------------------------------------------------------
/static/admin/fonts/LICENSE.txt:
--------------------------------------------------------------------------------
1 |
2 | Apache License
3 | Version 2.0, January 2004
4 | http://www.apache.org/licenses/
5 |
6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7 |
8 | 1. Definitions.
9 |
10 | "License" shall mean the terms and conditions for use, reproduction,
11 | and distribution as defined by Sections 1 through 9 of this document.
12 |
13 | "Licensor" shall mean the copyright owner or entity authorized by
14 | the copyright owner that is granting the License.
15 |
16 | "Legal Entity" shall mean the union of the acting entity and all
17 | other entities that control, are controlled by, or are under common
18 | control with that entity. For the purposes of this definition,
19 | "control" means (i) the power, direct or indirect, to cause the
20 | direction or management of such entity, whether by contract or
21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
22 | outstanding shares, or (iii) beneficial ownership of such entity.
23 |
24 | "You" (or "Your") shall mean an individual or Legal Entity
25 | exercising permissions granted by this License.
26 |
27 | "Source" form shall mean the preferred form for making modifications,
28 | including but not limited to software source code, documentation
29 | source, and configuration files.
30 |
31 | "Object" form shall mean any form resulting from mechanical
32 | transformation or translation of a Source form, including but
33 | not limited to compiled object code, generated documentation,
34 | and conversions to other media types.
35 |
36 | "Work" shall mean the work of authorship, whether in Source or
37 | Object form, made available under the License, as indicated by a
38 | copyright notice that is included in or attached to the work
39 | (an example is provided in the Appendix below).
40 |
41 | "Derivative Works" shall mean any work, whether in Source or Object
42 | form, that is based on (or derived from) the Work and for which the
43 | editorial revisions, annotations, elaborations, or other modifications
44 | represent, as a whole, an original work of authorship. For the purposes
45 | of this License, Derivative Works shall not include works that remain
46 | separable from, or merely link (or bind by name) to the interfaces of,
47 | the Work and Derivative Works thereof.
48 |
49 | "Contribution" shall mean any work of authorship, including
50 | the original version of the Work and any modifications or additions
51 | to that Work or Derivative Works thereof, that is intentionally
52 | submitted to Licensor for inclusion in the Work by the copyright owner
53 | or by an individual or Legal Entity authorized to submit on behalf of
54 | the copyright owner. For the purposes of this definition, "submitted"
55 | means any form of electronic, verbal, or written communication sent
56 | to the Licensor or its representatives, including but not limited to
57 | communication on electronic mailing lists, source code control systems,
58 | and issue tracking systems that are managed by, or on behalf of, the
59 | Licensor for the purpose of discussing and improving the Work, but
60 | excluding communication that is conspicuously marked or otherwise
61 | designated in writing by the copyright owner as "Not a Contribution."
62 |
63 | "Contributor" shall mean Licensor and any individual or Legal Entity
64 | on behalf of whom a Contribution has been received by Licensor and
65 | subsequently incorporated within the Work.
66 |
67 | 2. Grant of Copyright License. Subject to the terms and conditions of
68 | this License, each Contributor hereby grants to You a perpetual,
69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70 | copyright license to reproduce, prepare Derivative Works of,
71 | publicly display, publicly perform, sublicense, and distribute the
72 | Work and such Derivative Works in Source or Object form.
73 |
74 | 3. Grant of Patent License. Subject to the terms and conditions of
75 | this License, each Contributor hereby grants to You a perpetual,
76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77 | (except as stated in this section) patent license to make, have made,
78 | use, offer to sell, sell, import, and otherwise transfer the Work,
79 | where such license applies only to those patent claims licensable
80 | by such Contributor that are necessarily infringed by their
81 | Contribution(s) alone or by combination of their Contribution(s)
82 | with the Work to which such Contribution(s) was submitted. If You
83 | institute patent litigation against any entity (including a
84 | cross-claim or counterclaim in a lawsuit) alleging that the Work
85 | or a Contribution incorporated within the Work constitutes direct
86 | or contributory patent infringement, then any patent licenses
87 | granted to You under this License for that Work shall terminate
88 | as of the date such litigation is filed.
89 |
90 | 4. Redistribution. You may reproduce and distribute copies of the
91 | Work or Derivative Works thereof in any medium, with or without
92 | modifications, and in Source or Object form, provided that You
93 | meet the following conditions:
94 |
95 | (a) You must give any other recipients of the Work or
96 | Derivative Works a copy of this License; and
97 |
98 | (b) You must cause any modified files to carry prominent notices
99 | stating that You changed the files; and
100 |
101 | (c) You must retain, in the Source form of any Derivative Works
102 | that You distribute, all copyright, patent, trademark, and
103 | attribution notices from the Source form of the Work,
104 | excluding those notices that do not pertain to any part of
105 | the Derivative Works; and
106 |
107 | (d) If the Work includes a "NOTICE" text file as part of its
108 | distribution, then any Derivative Works that You distribute must
109 | include a readable copy of the attribution notices contained
110 | within such NOTICE file, excluding those notices that do not
111 | pertain to any part of the Derivative Works, in at least one
112 | of the following places: within a NOTICE text file distributed
113 | as part of the Derivative Works; within the Source form or
114 | documentation, if provided along with the Derivative Works; or,
115 | within a display generated by the Derivative Works, if and
116 | wherever such third-party notices normally appear. The contents
117 | of the NOTICE file are for informational purposes only and
118 | do not modify the License. You may add Your own attribution
119 | notices within Derivative Works that You distribute, alongside
120 | or as an addendum to the NOTICE text from the Work, provided
121 | that such additional attribution notices cannot be construed
122 | as modifying the License.
123 |
124 | You may add Your own copyright statement to Your modifications and
125 | may provide additional or different license terms and conditions
126 | for use, reproduction, or distribution of Your modifications, or
127 | for any such Derivative Works as a whole, provided Your use,
128 | reproduction, and distribution of the Work otherwise complies with
129 | the conditions stated in this License.
130 |
131 | 5. Submission of Contributions. Unless You explicitly state otherwise,
132 | any Contribution intentionally submitted for inclusion in the Work
133 | by You to the Licensor shall be under the terms and conditions of
134 | this License, without any additional terms or conditions.
135 | Notwithstanding the above, nothing herein shall supersede or modify
136 | the terms of any separate license agreement you may have executed
137 | with Licensor regarding such Contributions.
138 |
139 | 6. Trademarks. This License does not grant permission to use the trade
140 | names, trademarks, service marks, or product names of the Licensor,
141 | except as required for reasonable and customary use in describing the
142 | origin of the Work and reproducing the content of the NOTICE file.
143 |
144 | 7. Disclaimer of Warranty. Unless required by applicable law or
145 | agreed to in writing, Licensor provides the Work (and each
146 | Contributor provides its Contributions) on an "AS IS" BASIS,
147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148 | implied, including, without limitation, any warranties or conditions
149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150 | PARTICULAR PURPOSE. You are solely responsible for determining the
151 | appropriateness of using or redistributing the Work and assume any
152 | risks associated with Your exercise of permissions under this License.
153 |
154 | 8. Limitation of Liability. In no event and under no legal theory,
155 | whether in tort (including negligence), contract, or otherwise,
156 | unless required by applicable law (such as deliberate and grossly
157 | negligent acts) or agreed to in writing, shall any Contributor be
158 | liable to You for damages, including any direct, indirect, special,
159 | incidental, or consequential damages of any character arising as a
160 | result of this License or out of the use or inability to use the
161 | Work (including but not limited to damages for loss of goodwill,
162 | work stoppage, computer failure or malfunction, or any and all
163 | other commercial damages or losses), even if such Contributor
164 | has been advised of the possibility of such damages.
165 |
166 | 9. Accepting Warranty or Additional Liability. While redistributing
167 | the Work or Derivative Works thereof, You may choose to offer,
168 | and charge a fee for, acceptance of support, warranty, indemnity,
169 | or other liability obligations and/or rights consistent with this
170 | License. However, in accepting such obligations, You may act only
171 | on Your own behalf and on Your sole responsibility, not on behalf
172 | of any other Contributor, and only if You agree to indemnify,
173 | defend, and hold each Contributor harmless for any liability
174 | incurred by, or claims asserted against, such Contributor by reason
175 | of your accepting any such warranty or additional liability.
176 |
177 | END OF TERMS AND CONDITIONS
178 |
179 | APPENDIX: How to apply the Apache License to your work.
180 |
181 | To apply the Apache License to your work, attach the following
182 | boilerplate notice, with the fields enclosed by brackets "[]"
183 | replaced with your own identifying information. (Don't include
184 | the brackets!) The text should be enclosed in the appropriate
185 | comment syntax for the file format. We also recommend that a
186 | file or class name and description of purpose be included on the
187 | same "printed page" as the copyright notice for easier
188 | identification within third-party archives.
189 |
190 | Copyright [yyyy] [name of copyright owner]
191 |
192 | Licensed under the Apache License, Version 2.0 (the "License");
193 | you may not use this file except in compliance with the License.
194 | You may obtain a copy of the License at
195 |
196 | http://www.apache.org/licenses/LICENSE-2.0
197 |
198 | Unless required by applicable law or agreed to in writing, software
199 | distributed under the License is distributed on an "AS IS" BASIS,
200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201 | See the License for the specific language governing permissions and
202 | limitations under the License.
203 |
--------------------------------------------------------------------------------