nice_admin 0.0.1 → 0.0.2
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.
- data/app/assets/fonts/Chunkfive-webfont.eot +0 -0
- data/app/assets/fonts/Chunkfive-webfont.svg +121 -0
- data/app/assets/fonts/Chunkfive-webfont.ttf +0 -0
- data/app/assets/fonts/Chunkfive-webfont.woff +0 -0
- data/app/assets/fonts/Chunkfive.otf +0 -0
- data/app/assets/images/bg.png +0 -0
- data/app/assets/javascripts/nice_admin.js +18 -0
- data/app/assets/stylesheets/button.css +21 -0
- data/app/assets/stylesheets/flash.css +41 -0
- data/app/assets/stylesheets/forms.css +88 -0
- data/app/assets/stylesheets/formtastic.css +274 -0
- data/app/assets/stylesheets/main.css.erb +99 -0
- data/app/assets/stylesheets/nav.css +27 -0
- data/app/assets/stylesheets/nice_admin.css +6 -0
- data/app/assets/stylesheets/reset.css +43 -0
- data/app/assets/stylesheets/tables.css +48 -0
- data/app/controller/nice_admin_controller.rb +3 -0
- data/app/helpers/nice_admin_helper.rb +71 -0
- data/app/views/application/_admin_flash.html.erb +6 -0
- data/app/views/application/_nice_admin_nav.html.erb +7 -0
- data/app/views/layouts/nice_admin.html.erb +20 -0
- metadata +22 -1
|
Binary file
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg">
|
|
4
|
+
<metadata>
|
|
5
|
+
This is a custom SVG webfont generated by Font Squirrel.
|
|
6
|
+
Copyright : Generated in 2009 by FontLab Studio Copyright info pending
|
|
7
|
+
</metadata>
|
|
8
|
+
<defs>
|
|
9
|
+
<font id="webfont90E2uSjN" horiz-adv-x="790" >
|
|
10
|
+
<font-face units-per-em="2048" ascent="1536" descent="-512" />
|
|
11
|
+
<missing-glyph horiz-adv-x="512" />
|
|
12
|
+
<glyph unicode=" " horiz-adv-x="512" />
|
|
13
|
+
<glyph unicode="	" horiz-adv-x="512" />
|
|
14
|
+
<glyph unicode=" " horiz-adv-x="512" />
|
|
15
|
+
<glyph unicode="!" horiz-adv-x="630" d="M57 209q0 84 64.5 150.5t169.5 66.5q106 0 175 -63.5t69 -153.5q0 -88 -68 -149.5t-176 -61.5q-98 0 -166 64.5t-68 146.5zM66 1042v390h489v-390l-109 -516h-270z" />
|
|
16
|
+
<glyph unicode="'" horiz-adv-x="559" d="M74 1436h405l-73 -613h-256z" />
|
|
17
|
+
<glyph unicode="(" horiz-adv-x="794" d="M51 639q0 170 50.5 341t128 303t154.5 227.5t148 158.5l211 -217q-59 -74 -94 -122t-96 -156.5t-93 -243.5t-32 -291q0 -162 29.5 -301t85 -245.5t97.5 -168t103 -133.5l-211 -219q-193 174 -337 459.5t-144 607.5z" />
|
|
18
|
+
<glyph unicode=")" horiz-adv-x="794" d="M51 -211q61 72 103.5 133.5t97.5 168t85 245.5t30 301q0 156 -32 291t-93.5 243.5t-96 156.5t-94.5 122l211 217q72 -63 148.5 -158.5t154.5 -227.5t128 -303t50 -341q0 -322 -144 -607.5t-337 -459.5z" />
|
|
19
|
+
<glyph unicode="," horiz-adv-x="557" d="M-12 -264q115 145 162 294.5t32 370.5l373 -98q6 -195 -82 -376t-250 -324z" />
|
|
20
|
+
<glyph unicode="-" d="M96 352v273h594v-273h-594z" />
|
|
21
|
+
<glyph unicode="." horiz-adv-x="528" d="M31 213q0 86 63.5 159.5t168 73.5t170 -73.5t65.5 -159.5q0 -96 -62.5 -158.5t-173.5 -62.5q-98 0 -164.5 67.5t-66.5 153.5z" />
|
|
22
|
+
<glyph unicode="0" horiz-adv-x="1226" d="M31 723q0 326 160.5 530.5t416.5 204.5q293 0 440.5 -199.5t147.5 -549.5q0 -344 -150.5 -539t-427.5 -195q-266 0 -426.5 190.5t-160.5 557.5zM436 723q0 -186 57.5 -308t124.5 -122q72 0 119 115.5t47 300.5q0 182 -51 300.5t-127 118.5q-61 2 -115.5 -113.5 t-54.5 -291.5z" />
|
|
23
|
+
<glyph unicode="1" horiz-adv-x="1015" d="M51 1163l42 21l44 21l39 21q29 15 43 26l41 31q27 19 47 40l48 48q28 28 55 61h364v-1160h191v-272h-820v272h205v760l-205 -96z" />
|
|
24
|
+
<glyph unicode="2" horiz-adv-x="1208" d="M51 0v297q82 135 140.5 201.5t158.5 146.5q47 43 150.5 111.5t158 121t54.5 109.5q0 135 -172 135q-51 0 -103.5 -29.5t-77 -53t-71.5 -72.5l-221 233q219 254 532 254q209 0 348 -123t139 -325q0 -164 -70.5 -251t-256.5 -208q-86 -55 -180.5 -136t-126.5 -139h360v164 h344v-436h-1106z" />
|
|
25
|
+
<glyph unicode="3" horiz-adv-x="1105" d="M31 205l209 217q133 -133 270 -133q86 0 135 41t49 116q0 150 -170 150h-153v244h149q76 0 125 36.5t49 104.5q0 78 -54 120t-126 42q-123 0 -240 -123l-198 240q66 72 188.5 133t249.5 61q248 0 385 -117.5t137 -316.5q0 -143 -151 -260q190 -137 190 -336 q0 -213 -170 -332t-397 -119q-141 0 -278.5 70t-198.5 162z" />
|
|
26
|
+
<glyph unicode="4" horiz-adv-x="1196" d="M20 403v293l590 736h424v-807h109v-222h-109v-133h111v-270h-664v270h129v133h-590zM307 625h303v379z" />
|
|
27
|
+
<glyph unicode="5" horiz-adv-x="1181" d="M31 221l223 232q147 -152 287 -152q102 0 163.5 57.5t61.5 147.5q0 82 -60.5 140.5t-148.5 58.5q-102 0 -192 -95l-263 117l125 705h811v-306h-551l-34 -198q76 49 221 49q193 0 335 -130t142 -355q0 -125 -53.5 -225.5t-141.5 -163t-195.5 -96.5t-221.5 -34 q-150 0 -296 75t-212 173z" />
|
|
28
|
+
<glyph unicode="6" horiz-adv-x="1189" d="M33 623q-2 96 8 191t47 213t99.5 207t178 152.5t269.5 67.5q109 4 253 -42t230 -120l-139 -266q-178 104 -299 104q-111 -2 -181.5 -80.5t-86.5 -197.5q41 41 115.5 71.5t152.5 32.5q201 8 340 -121.5t139 -334.5q0 -213 -143.5 -361.5t-386.5 -156.5q-256 -8 -422 165 t-174 476zM416 545q0 -88 50 -165t140 -77q78 0 133.5 51.5t53.5 124.5q-2 72 -42 128.5t-124 54.5q-121 -6 -211 -117z" />
|
|
29
|
+
<glyph unicode="7" horiz-adv-x="1159" d="M31 1026v406h1108v-273l-551 -1159h-443l549 1159h-336v-133h-327z" />
|
|
30
|
+
<glyph unicode="8" horiz-adv-x="1144" d="M31 420q0 102 61.5 206.5t159.5 153.5q-74 45 -114 120t-40 153q0 176 131 289.5t357 113.5q231 0 360 -113.5t129 -289.5q0 -96 -49 -170t-123 -109q100 -49 155.5 -147.5t55.5 -206.5q0 -193 -148.5 -320t-392.5 -127q-250 0 -396 126t-146 321zM385 432 q0 -72 56.5 -120t133.5 -48q80 0 133.5 44t55.5 124q0 94 -81 136t-179 46q-49 -29 -84 -79t-35 -103zM434 1069q0 -51 39 -84t79 -41t85 -10q98 47 98 135q0 55 -46 92t-107 37q-59 0 -103.5 -39t-44.5 -90z" />
|
|
31
|
+
<glyph unicode="9" horiz-adv-x="1202" d="M31 936q0 213 143 361.5t387 156.5q258 8 429 -166t179 -475q2 -106 -8 -205.5t-50 -215.5t-104.5 -202t-181 -145t-270.5 -63q-109 -4 -253 42t-230 119l139 267q178 -104 299 -105q117 4 184.5 76t65.5 203q-98 -98 -250 -105q-201 -8 -340 122t-139 335zM397 956 q2 -72 42 -128t124 -54q102 4 193 117q0 94 -42 168t-130 74q-78 0 -133.5 -51.5t-53.5 -125.5z" />
|
|
32
|
+
<glyph unicode=":" horiz-adv-x="520" d="M31 201q0 86 62.5 157.5t164.5 71.5q104 0 167.5 -72.5t63.5 -156.5q0 -92 -64.5 -154.5t-166.5 -62.5q-96 0 -161.5 66.5t-65.5 150.5zM31 823q0 86 62.5 158t164.5 72q104 0 167.5 -73t63.5 -157q0 -94 -62 -155.5t-169 -61.5q-92 0 -159.5 67.5t-67.5 149.5z" />
|
|
33
|
+
<glyph unicode=";" horiz-adv-x="618" d="M10 -264l236 -133q162 143 250 324.5t82 375.5l-373 98q14 -221 -33 -370.5t-162 -294.5zM121 788q0 86 63.5 160t168 74t170 -74t65.5 -160q0 -94 -63.5 -157.5t-172.5 -63.5q-94 0 -162.5 68.5t-68.5 152.5z" />
|
|
34
|
+
<glyph unicode="=" horiz-adv-x="1028" d="M90 352v273h844v-273h-844zM90 805v272h844v-272h-844z" />
|
|
35
|
+
<glyph unicode="?" horiz-adv-x="1064" d="M4 1200q227 264 533 264q213 0 350 -109.5t137 -310.5q0 -74 -34 -136t-82 -104t-95 -77t-81 -69.5t-34 -67.5v-113h-379l-2 164q0 63 51.5 126.5t112 105.5t111.5 90.5t51 85.5q0 96 -151 96q-61 0 -134 -49t-133 -119zM264 209q0 84 64.5 150.5t169.5 66.5 q106 0 174.5 -63.5t68.5 -153.5q0 -88 -67.5 -149.5t-175.5 -61.5q-98 0 -166 64.5t-68 146.5z" />
|
|
36
|
+
<glyph unicode="@" horiz-adv-x="1705" />
|
|
37
|
+
<glyph unicode="A" horiz-adv-x="1685" d="M31 0v268h139l276 899h-84v265h787l362 -1164h144v-268h-821v268h194l-43 140h-420l-43 -140h160v-268h-651zM641 653h268l-135 443z" />
|
|
38
|
+
<glyph unicode="B" horiz-adv-x="1406" d="M51 0v266h119v901h-119v265h764q502 0 502 -351q0 -131 -44 -201.5t-157 -115.5q121 -33 195.5 -120t74.5 -228q0 -217 -131 -316.5t-426 -99.5h-778zM594 266h164q68 0 117 48t49 128t-45 130.5t-127 50.5h-158v-357zM594 854h125q78 0 108.5 40t30.5 118 q0 70 -38 109.5t-97 39.5h-129v-307z" />
|
|
39
|
+
<glyph unicode="C" horiz-adv-x="1404" d="M31 702q0 168 59.5 314.5t151.5 240t200.5 146.5t210.5 53q211 0 316 -139l47 115h321v-582h-366q-4 109 -59.5 183.5t-157.5 74.5q-109 0 -176.5 -117t-67.5 -289q0 -162 80 -273.5t219 -111.5q31 0 62.5 8.5t58 20.5t53.5 29.5t46.5 34t40 36t30.5 31.5l22 27l13 14 l239 -262q-262 -289 -620 -289q-328 0 -525.5 197.5t-197.5 537.5z" />
|
|
40
|
+
<glyph unicode="D" horiz-adv-x="1474" d="M51 0v272h127v889h-127v271h625q362 0 570 -197t208 -500q0 -350 -205 -542.5t-581 -192.5h-617zM598 272h78q156 2 231.5 130t75.5 333q0 180 -77 303t-230 123h-78v-889z" />
|
|
41
|
+
<glyph unicode="E" horiz-adv-x="1337" d="M51 0v272h129v889h-129v271h1235v-453h-354v182h-328v-282h389v-273h-389v-334h328v191h354v-463h-1235z" />
|
|
42
|
+
<glyph unicode="F" horiz-adv-x="1306" d="M51 0v272h127v889h-127v271h1225v-453h-363v182h-309v-356h389v-273h-389v-260h209v-272h-762z" />
|
|
43
|
+
<glyph unicode="G" horiz-adv-x="1589" d="M31 702q0 324 189.5 539t438.5 215q70 0 130.5 -11t98.5 -25.5t70.5 -37t48 -38t32 -36t20.5 -24.5l43 148h305v-605h-367q-4 121 -71.5 190.5t-161.5 69.5q-121 0 -201 -113.5t-80 -271.5q0 -162 76 -269t205 -107q139 0 197 100v86h-125v219h680v-219h-82v-512h-410 l-63 129q-37 -61 -127.5 -104t-202.5 -43q-274 0 -458.5 197t-184.5 523z" />
|
|
44
|
+
<glyph unicode="H" horiz-adv-x="1572" d="M51 0v270h113v891h-113v271h664v-271h-127v-309h389v309h-121v271h666v-271h-119v-891h119v-270h-666v270h121v310h-389v-310h127v-270h-664z" />
|
|
45
|
+
<glyph unicode="I" horiz-adv-x="782" d="M51 0v272h129v889h-129v271h680v-271h-127v-889h127v-272h-680z" />
|
|
46
|
+
<glyph unicode="J" horiz-adv-x="948" d="M41 -125q41 -18 92 -18q170 0 170 295v1011h-176v269h770v-269h-170v-1011q0 -283 -135 -426.5t-442 -143.5q-51 0 -107 23z" />
|
|
47
|
+
<glyph unicode="K" horiz-adv-x="1669" d="M51 0v266h111v901h-111v265h645v-265h-110v-333l381 333h-148v265h682v-265h-119l-297 -256l414 -645h119v-266h-799v266h139l-221 348l-151 -129v-219h110v-266h-645z" />
|
|
48
|
+
<glyph unicode="L" horiz-adv-x="1249" d="M51 0v272h113v889h-113v271h647v-271h-108v-889h264v260h344v-532h-1147z" />
|
|
49
|
+
<glyph unicode="M" horiz-adv-x="2064" d="M51 0v264h111v903h-109v265h776l207 -766l197 766h780v-265h-112v-901h112v-266h-647v266h117l-2 684v121h-8q-35 -190 -60 -274l-215 -797h-428l-229 817q-35 119 -43 254h-9v-807h117v-264h-555z" />
|
|
50
|
+
<glyph unicode="N" horiz-adv-x="1671" d="M51 0v264h121v903h-119v265h588l504 -752l-2 487h-139v265h616v-265h-135v-1167h-441l-522 780v-516h158v-264h-629z" />
|
|
51
|
+
<glyph unicode="O" horiz-adv-x="1515" d="M31 723q0 332 200.5 539.5t518.5 207.5q367 0 551 -202.5t184 -558.5q0 -350 -188.5 -548t-532.5 -198q-334 0 -533.5 193.5t-199.5 566.5zM537 723q0 -199 63.5 -318.5t163.5 -119.5q96 0 152.5 115.5t56.5 308.5q0 199 -56.5 322.5t-168.5 123.5h-4q-92 0 -149 -120 q-58 -122 -58 -312z" />
|
|
52
|
+
<glyph unicode="P" horiz-adv-x="1310" d="M51 0v270h115v893h-115v269h664q172 0 287.5 -34t174 -99.5t81 -137t22.5 -168.5q0 -195 -153.5 -300t-385.5 -105h-155v-318h125v-270h-660zM586 809h92q90 0 145.5 45t55.5 125q0 90 -50.5 138t-140.5 48h-102v-356z" />
|
|
53
|
+
<glyph unicode="Q" horiz-adv-x="1546" d="M31 725q0 315 190.5 514t497.5 199q350 0 525 -193.5t175 -533.5q0 -326 -170 -512q35 -133 90 -133q41 0 41 92v59h136v-104q0 -143 -80 -235.5t-228 -92.5q-119 0 -199.5 64.5t-117.5 162.5q-74 -12 -160 -12q-319 0 -509.5 186.5t-190.5 538.5zM481 725q0 -66 8 -113 q94 98 242 99q119 0 230 -80q4 49 4 80q0 182 -69 305t-179 123h-3q-92 0 -162 -118q-71 -120 -71 -296zM594 375q61 -68 137 -68q57 0 109 45q-12 86 -36 129t-73 43q-84 1 -137 -149z" />
|
|
54
|
+
<glyph unicode="R" horiz-adv-x="1509" d="M51 0v270h115v893h-115v269h666q172 0 287.5 -32t175 -93.5t82 -131t22.5 -165.5q0 -117 -83 -198t-214 -99q109 -16 188.5 -99.5t79.5 -191.5q0 -139 50 -139q47 0 47 65v68h137v-113q0 -143 -70.5 -235.5t-228.5 -92.5q-199 0 -298 99.5t-99 281.5q0 143 -36 187.5 t-169 44.5v-318h125v-270h-662zM588 817h92q90 0 143.5 43t53.5 123q0 182 -187 182h-102v-348z" />
|
|
55
|
+
<glyph unicode="S" horiz-adv-x="1454" d="M51 0v516h381q0 -61 26.5 -103t71.5 -62.5t82 -29t78 -10.5q174 0 174 103q0 37 -58 65.5t-145.5 48t-189.5 57.5t-189 87t-145.5 141t-58.5 215q0 109 47 196t122 139t156.5 78.5t161.5 26.5q317 0 428 -208l21 172h352v-514h-371q0 111 -74.5 174t-187.5 63 q-51 0 -96 -29.5t-45 -78.5q0 -57 84 -100.5t202.5 -81.5t237.5 -87t203 -145t84 -230q0 -115 -49 -201.5t-131 -136t-174.5 -73t-188.5 -23.5q-268 0 -428 189l-22 -158h-359z" />
|
|
56
|
+
<glyph unicode="T" horiz-adv-x="1435" d="M31 899v533h1374v-533h-301v262h-172v-889h170v-272h-762v272h168v889h-176v-262h-301z" />
|
|
57
|
+
<glyph unicode="U" horiz-adv-x="1509" d="M31 1165v267h651v-265h-111v-442q0 -233 49.5 -316t155.5 -83q70 0 111 25.5t68.5 116.5t27.5 259v434h-111v271h607v-265h-111v-497q0 -705 -588 -705q-635 18 -635 694v506h-114z" />
|
|
58
|
+
<glyph unicode="V" horiz-adv-x="1583" d="M-20 1165v267h755l-2 -267h-110l174 -458q59 -180 63 -248h10q6 92 74 260l186 446h-106l-2 267h582v-267h-101l-491 -1165h-377l-543 1165h-112z" />
|
|
59
|
+
<glyph unicode="W" horiz-adv-x="2078" d="M-20 1165v267h675v-267h-118l53 -299q29 -123 65 -403h11q4 47 100 508l102 461h426l129 -566q39 -182 62 -403h10q16 178 61 391l70 311h-113v267h586v-267h-112l-306 -1165h-485l-123 487q-27 98 -51 254h-8q-14 -102 -49 -249l-125 -492h-475l-271 1165h-114z" />
|
|
60
|
+
<glyph unicode="X" horiz-adv-x="1710" d="M51 0v264h178l301 391l-370 510h-107v267h811v-267h-119l201 -272l209 272h-180v267h680v-267h-174l-310 -395l369 -504h119v-266h-817v266h116l-155 209l-43 57l-211 -268h182v-264h-680z" />
|
|
61
|
+
<glyph unicode="Y" horiz-adv-x="1370" d="M-20 1169v263h700v-263h-107l119 -217q6 -16 33 -81.5t31 -84.5h8q4 18 76 177l112 206h-112v263h551v-263h-111l-379 -665v-238h115v-266h-656v266h117v242l-397 661h-100z" />
|
|
62
|
+
<glyph unicode="Z" horiz-adv-x="1462" d="M51 0v266l746 895l-387 -2l2 -266h-349v539h1344l4 -273l-749 -889h378l2 262h363v-532h-1354z" />
|
|
63
|
+
<glyph unicode="[" horiz-adv-x="1474" d="M59 0v270h115v893h-115v271h664q170 0 286.5 -39t175 -108.5t81 -145.5t22.5 -174q0 -215 -221 -338l229 -363h119v-266h-393l-340 549h-88v-279h125v-270h-660zM594 809h92q90 0 145.5 45t55.5 125q0 90 -50.5 138t-140.5 48h-102v-356z" />
|
|
64
|
+
<glyph unicode="\" horiz-adv-x="1337" />
|
|
65
|
+
<glyph unicode="]" horiz-adv-x="1325" d="M61 0v266h84v1002h-84v268h474v-926l237 142h-147v272h573v-272h-158l-129 -76l285 -408h84v-268h-332l-344 489l-72 -49v-172h146v-268h-617z" />
|
|
66
|
+
<glyph unicode="a" horiz-adv-x="1228" d="M31 303q0 170 124 273.5t302 103.5q55 0 103 -16.5t69.5 -31t29.5 -24.5v72q0 115 -194 115q-135 0 -305 -95l-86 238q242 145 446 145q100 0 191.5 -20.5t176.5 -65.5t136 -132t51 -203v-400h123v-262h-438l-49 92q-51 -70 -129 -100.5t-148 -30.5q-162 0 -282.5 88 t-120.5 254zM420 324q0 -43 30.5 -70t77.5 -27q43 0 79 20.5t52 47.5v78q-35 59 -120 59q-119 1 -119 -108z" />
|
|
67
|
+
<glyph unicode="b" horiz-adv-x="1343" d="M63 0v266h87v1002h-87v268h496v-592q33 39 113 67.5t155 28.5q223 0 350 -158q122 -154 122 -364q0 -7 -1 -14q-4 -240 -131 -383.5t-342 -143.5q-74 0 -128 14.5t-80.5 31t-61.5 47.5l-31 -70h-461zM555 489q0 -102 44 -173.5t103 -71.5q66 0 106 69.5t40 186.5 q0 98 -41 175t-107 77q-63 0 -107 -73q-39 -64 -39 -162q0 -14 1 -28z" />
|
|
68
|
+
<glyph unicode="c" horiz-adv-x="1087" d="M2 518q0 256 145.5 390t358.5 134q158 0 256 -116l35 98h241v-463h-301q-4 88 -34.5 151.5t-94.5 63.5q-86 0 -133 -76.5t-47 -185.5q0 -102 57.5 -171t153.5 -71h5q136 0 243 117l180 -209q-80 -88 -213 -148.5t-289 -60.5q-240 0 -401.5 143.5t-161.5 403.5z" />
|
|
69
|
+
<glyph unicode="d" horiz-adv-x="1298" d="M20 522q0 231 139.5 376.5t336.5 145.5q135 0 258 -77v303h-95v266h510v-1270h99v-266h-480l-34 76q-102 -94 -258 -94q-211 0 -343.5 159.5t-132.5 380.5zM461 522q0 -98 41 -175t106 -77q63 0 108 73q39 64 38 162v27q0 102 -44 174t-104 72q-66 0 -105.5 -69.5 t-39.5 -186.5z" />
|
|
70
|
+
<glyph unicode="e" horiz-adv-x="1110" d="M10 518q0 246 156 390.5t395 144.5q180 0 312.5 -83t177.5 -214q23 -66 27 -156q1 -14 1 -27q0 -78 -24 -163h-645q6 -31 14 -51.5t29.5 -52.5t64.5 -48t103 -16q168 0 286 98l172 -199q-207 -178 -528 -178q-215 0 -378 141.5t-163 413.5zM416 612h309q-2 74 -32.5 119 t-119.5 45q-82 0 -117.5 -53.5t-39.5 -110.5z" />
|
|
71
|
+
<glyph unicode="f" d="M51 758v266h84v174q0 43 6 84t31 97.5t66 96.5t119.5 68.5t183.5 28.5q80 0 170 -15.5t131 -35.5l-123 -236q-45 20 -113 21q-66 0 -65 -109v-174h186v-266h-186v-490h123v-268h-611v268h82v490h-84z" />
|
|
72
|
+
<glyph unicode="g" horiz-adv-x="1310" d="M20 518q0 244 133.5 385t381.5 141q63 0 123.5 -25.5t93.5 -57.5l41 63h487v-268h-123v-613q0 -262 -161.5 -411.5t-477.5 -151.5q-152 2 -272.5 56.5t-196.5 123.5l109 228q49 -43 151.5 -87t204.5 -44q125 0 181.5 57t56.5 135v70q-88 -113 -240 -113 q-246 0 -369 148.5t-123 363.5zM457 522q0 -98 41 -175t106 -77q63 0 108 73q39 64 38 162v27q0 102 -44 174t-104 72q-66 0 -105.5 -69.5t-39.5 -186.5z" />
|
|
73
|
+
<glyph unicode="h" horiz-adv-x="1353" d="M51 0v268h86v1002h-86v266h496v-639q25 41 124 102.5t197 61.5q113 0 189 -38t110.5 -108.5t47 -140t12.5 -164.5v-342h96v-268h-526v557q0 39 -2 61.5t-12.5 57.5t-37 53.5t-69.5 18.5q-129 0 -129 -191v-289h147v-268h-643z" />
|
|
74
|
+
<glyph unicode="i" horiz-adv-x="675" d="M51 0v268h86v490h-86v266h475v-756h99v-268h-574zM109 1323q0 78 60 143.5t160.5 65.5t163 -65.5t62.5 -143.5q0 -88 -60.5 -147.5t-164.5 -59.5q-92 0 -156.5 64.5t-64.5 142.5z" />
|
|
75
|
+
<glyph unicode="j" horiz-adv-x="737" d="M29 -154q68 0 114.5 24t69.5 51.5t35 77.5t13 74.5t1 69.5v615h-86v266h475v-881q0 -86 -12 -157.5t-51 -151.5t-104.5 -135t-181.5 -91t-273 -36v274zM233 1323q0 78 60.5 143.5t161 65.5t163 -65.5t62.5 -143.5q0 -88 -60.5 -147.5t-164.5 -59.5q-92 0 -157 64.5 t-65 142.5z" />
|
|
76
|
+
<glyph unicode="k" horiz-adv-x="1339" d="M78 0v266h84v1002h-84v268h473v-926l237 142h-147v270h573v-270h-157l-139 -88l276 -396h102v-268h-606v268h86l-155 221l-72 -49v-172h76v-268h-547z" />
|
|
77
|
+
<glyph unicode="l" horiz-adv-x="679" d="M51 0v268h88v1004h-86v264h475v-1268h121v-268h-598z" />
|
|
78
|
+
<glyph unicode="m" horiz-adv-x="1859" d="M51 0v268h86v484h-86v270h387l45 -121q125 150 256 150q72 0 128.5 -14.5t92 -42t51 -46t33.5 -45.5q131 147 302 148q119 0 198.5 -40t117.5 -115t52.5 -152.5t14.5 -184.5v-283h100v-276h-520v502q0 12 1 44t1 50t-2 46t-7.5 45.5t-13.5 34.5t-22.5 25.5t-34.5 8.5 q-61 0 -85 -38t-24 -112v-332h123v-274h-530v522q0 137 -14.5 185.5t-71.5 48.5q-92 0 -92 -123v-365h122v-268h-608z" />
|
|
79
|
+
<glyph unicode="n" horiz-adv-x="1325" d="M51 0v268h86v490h-86v266h436l48 -127q119 164 292 164q92 0 161 -26.5t108 -68.5t62.5 -104.5t31.5 -121t8 -130.5v-342h96v-268h-516v559v48q0 11 -5 47t-16.5 50.5t-35 30t-57.5 15.5q-129 0 -129 -191v-291h147v-268h-631z" />
|
|
80
|
+
<glyph unicode="o" horiz-adv-x="1175" d="M191 904q167 144 393 145q250 -4 407.5 -147.5t161.5 -393.5v-6q0 -243 -158 -385q-160 -143 -401 -144q-238 0 -406 143q-166 141 -165 394q-1 248 168 394zM442 514q0 -125 43 -201.5t109 -76.5q63 0 101 76.5t38 195.5t-40 195.5t-109 78.5q-59 0 -100.5 -77.5 t-41.5 -190.5z" />
|
|
81
|
+
<glyph unicode="p" horiz-adv-x="1306" d="M51 -150h86v902h-86v272h469l35 -72q119 88 248 88q229 0 356 -153.5t127 -382.5q0 -240 -132 -383.5t-335 -143.5q-172 0 -266 80v-207h111v-268h-613v268zM553 489q0 -102 44 -173.5t103 -71.5q66 0 106 69.5t40 186.5q0 98 -41 175t-107 77q-63 0 -107 -73 q-39 -64 -39 -162q0 -14 1 -28z" />
|
|
82
|
+
<glyph unicode="q" horiz-adv-x="1351" d="M51 518q0 256 137.5 391t352.5 135q88 0 155.5 -27.5t87.5 -53.5l39 61h477v-266h-100v-955h100v-274h-649v268h133v271q-104 -86 -262 -86q-201 0 -336 147t-135 389zM492 516q0 -102 44 -174t103 -72q66 0 105.5 70t39.5 186q0 98 -41 175t-106 77q-63 0 -108 -72 q-39 -64 -38 -162q0 -14 1 -28z" />
|
|
83
|
+
<glyph unicode="r" horiz-adv-x="847" d="M51 0v268h90v490h-88v266h385l62 -131q25 45 44 70.5t54 55.5t89 43t130 13v-368q-147 0 -218 -49.5t-71 -178.5v-211h103v-268h-580z" />
|
|
84
|
+
<glyph unicode="s" horiz-adv-x="1040" d="M31 0v369h274q0 -49 44 -83t89 -44.5t84 -10.5q90 0 90 70q0 18 -16 31.5t-48 24t-66 19.5l-84 22q-50 13 -87 26q-272 96 -272 328q0 143 115.5 220t244.5 77q102 0 187.5 -46.5t118.5 -113.5l16 135h252v-369h-266q0 63 -64.5 109.5t-144.5 46.5t-80 -74 q0 -16 12 -29.5t41 -26.5t51.5 -21.5t72.5 -24.5l75 -25q80 -27 120.5 -45t98 -56t84 -94.5t26.5 -131.5q0 -139 -112.5 -223.5t-268.5 -84.5q-104 0 -189 43t-124 107l-18 -125h-256z" />
|
|
85
|
+
<glyph unicode="t" horiz-adv-x="743" d="M31 758v266h110v188l377 121v-309h195v-266h-195v-365q0 -8 -1 -29.5t0 -34t2 -29.5t5 -27.5t11.5 -21.5t19.5 -16.5t29 -5.5q47 0 129 35v-262q-41 -16 -122 -27.5t-126 -11.5q-90 0 -150.5 21.5t-94.5 52.5t-51 94.5t-21.5 114.5t-6.5 147v365h-110z" />
|
|
86
|
+
<glyph unicode="u" horiz-adv-x="1292" d="M31 754v270h495v-494q0 -135 24.5 -196.5t86.5 -61.5q55 0 92 44t37 112v326h-135v270h530v-752h101v-272h-388l-55 129l-20 -23q-20 -25 -28 -31l-30 -29q-23 -22 -41 -30t-44.5 -21t-58.5 -18.5t-69 -5.5q-227 0 -319 119t-92 381v283h-86z" />
|
|
87
|
+
<glyph unicode="v" horiz-adv-x="1255" d="M0 764v260h623v-260h-103l94 -217q45 -133 54 -215h8q4 94 61 225l99 207h-109v260h528v-260h-106l-354 -764h-318l-381 764h-96z" />
|
|
88
|
+
<glyph unicode="w" horiz-adv-x="1785" d="M0 758v266h551v-266h-70l45 -150q41 -139 52 -295h4q20 268 84 482l65 229h379l78 -266q59 -188 88 -445h4q18 193 55 324l35 121h-84v266h500v-266h-84l-240 -758h-432l-141 463l-148 -463h-422l-231 758h-88z" />
|
|
89
|
+
<glyph unicode="x" horiz-adv-x="1329" d="M41 0v254h137l209 235l-254 279h-92v256h664v-256h-97l144 -156l153 156h-137v256h522v-256h-135l-217 -219l258 -295h96v-254h-653v254h96l-155 166l-148 -166h133v-254h-524z" />
|
|
90
|
+
<glyph unicode="y" horiz-adv-x="1187" d="M-18 762v262h630v-260h-96l133 -320l133 320h-94v260h520v-254h-98l-389 -946q-23 -49 -40 -80t-54 -76t-80 -70.5t-111.5 -44t-154.5 -18.5q-139 8 -248 103l153 241q68 -59 119 -69q9 -2 18 -2q34 0 62 26q35 33 51 84l29 86l-399 758h-84z" />
|
|
91
|
+
<glyph unicode="z" horiz-adv-x="1132" d="M51 0v268l494 492h-228v-146h-266v410h1014v-264l-487 -492h215v140h288v-408h-1030z" />
|
|
92
|
+
<glyph unicode="­" d="M96 352v273h594v-273h-594z" />
|
|
93
|
+
<glyph unicode=" " horiz-adv-x="833" />
|
|
94
|
+
<glyph unicode=" " horiz-adv-x="1669" />
|
|
95
|
+
<glyph unicode=" " horiz-adv-x="833" />
|
|
96
|
+
<glyph unicode=" " horiz-adv-x="1669" />
|
|
97
|
+
<glyph unicode=" " horiz-adv-x="555" />
|
|
98
|
+
<glyph unicode=" " horiz-adv-x="415" />
|
|
99
|
+
<glyph unicode=" " horiz-adv-x="276" />
|
|
100
|
+
<glyph unicode=" " horiz-adv-x="276" />
|
|
101
|
+
<glyph unicode=" " horiz-adv-x="206" />
|
|
102
|
+
<glyph unicode=" " horiz-adv-x="333" />
|
|
103
|
+
<glyph unicode=" " horiz-adv-x="92" />
|
|
104
|
+
<glyph unicode="‐" d="M96 352v273h594v-273h-594z" />
|
|
105
|
+
<glyph unicode="‑" d="M96 352v273h594v-273h-594z" />
|
|
106
|
+
<glyph unicode="‒" d="M96 352v273h594v-273h-594z" />
|
|
107
|
+
<glyph unicode="–" horiz-adv-x="915" d="M66 352v273h772v-273h-772z" />
|
|
108
|
+
<glyph unicode="—" horiz-adv-x="1292" d="M86 352v273h1104v-273h-1104z" />
|
|
109
|
+
<glyph unicode="’" horiz-adv-x="559" d="M74 1436h405l-73 -613h-256z" />
|
|
110
|
+
<glyph unicode="•" horiz-adv-x="712" d="M123 659q0 86 63.5 160t168 74t170 -74t65.5 -160q0 -96 -62.5 -158.5t-173.5 -62.5q-98 0 -164.5 67.5t-66.5 153.5z" />
|
|
111
|
+
<glyph unicode="…" horiz-adv-x="1585" d="M1088 213q0 86 63.5 159.5t168 73.5t170 -73.5t65.5 -159.5q0 -96 -62.5 -158.5t-173.5 -62.5q-98 0 -164.5 67.5t-66.5 153.5zM559 213q0 86 63.5 159.5t168 73.5t170 -73.5t65.5 -159.5q0 -96 -62.5 -158.5t-173.5 -62.5q-98 0 -164.5 67.5t-66.5 153.5zM31 213 q0 86 63.5 159.5t168 73.5t170 -73.5t65.5 -159.5q0 -96 -62.5 -158.5t-173.5 -62.5q-98 0 -164.5 67.5t-66.5 153.5z" />
|
|
112
|
+
<glyph unicode=" " horiz-adv-x="333" />
|
|
113
|
+
<glyph unicode=" " horiz-adv-x="415" />
|
|
114
|
+
<glyph unicode="™" horiz-adv-x="3500" d="M1487 0v264h111v903h-109v265h776l207 -766l197 766h780v-265h-112v-901h112v-266h-647v266h117l-2 684v121h-8q-35 -190 -60 -274l-215 -797h-428l-229 817q-35 119 -43 254h-9v-807h117v-264h-555zM31 899v533h1374v-533h-301v262h-172v-889h170v-272h-762v272h168v889 h-176v-262h-301z" />
|
|
115
|
+
<glyph unicode="" horiz-adv-x="1025" d="M0 1025h1025v-1025h-1025v1025z" />
|
|
116
|
+
<glyph unicode="fi" horiz-adv-x="1466" d="M842 0v268h86v490h-86v266h475v-756h99v-268h-574zM900 1323q0 78 60 143.5t160.5 65.5t163 -65.5t62.5 -143.5q0 -88 -60.5 -147.5t-164.5 -59.5q-92 0 -156.5 64.5t-64.5 142.5zM51 758v266h84v174q0 43 6 84t31 97.5t66 96.5t119.5 68.5t183.5 28.5q80 0 170 -15.5 t131 -35.5l-123 -236q-45 20 -113 21q-66 0 -65 -109v-174h186v-266h-186v-490h123v-268h-611v268h82v490h-84z" />
|
|
117
|
+
<glyph unicode="fl" horiz-adv-x="1470" d="M842 0v268h88v1004h-86v264h475v-1268h121v-268h-598zM51 758v266h84v174q0 43 6 84t31 97.5t66 96.5t119.5 68.5t183.5 28.5q80 0 170 -15.5t131 -35.5l-123 -236q-45 20 -113 21q-66 0 -65 -109v-174h186v-266h-186v-490h123v-268h-611v268h82v490h-84z" />
|
|
118
|
+
<glyph unicode="ffi" horiz-adv-x="2256" d="M1632 0v268h86v490h-86v266h475v-756h99v-268h-574zM1690 1323q0 78 60 143.5t160.5 65.5t163 -65.5t62.5 -143.5q0 -88 -60.5 -147.5t-164.5 -59.5q-92 0 -156.5 64.5t-64.5 142.5zM842 758v266h84v174q0 43 6 84t31 97.5t66 96.5t119.5 68.5t183.5 28.5q80 0 170 -15.5 t131 -35.5l-123 -236q-45 20 -113 21q-66 0 -65 -109v-174h186v-266h-186v-490h123v-268h-611v268h82v490h-84zM51 758v266h84v174q0 43 6 84t31 97.5t66 96.5t119.5 68.5t183.5 28.5q80 0 170 -15.5t131 -35.5l-123 -236q-45 20 -113 21q-66 0 -65 -109v-174h186v-266h-186 v-490h123v-268h-611v268h82v490h-84z" />
|
|
119
|
+
<glyph unicode="ffl" horiz-adv-x="2260" d="M1632 0v268h88v1004h-86v264h475v-1268h121v-268h-598zM842 758v266h84v174q0 43 6 84t31 97.5t66 96.5t119.5 68.5t183.5 28.5q80 0 170 -15.5t131 -35.5l-123 -236q-45 20 -113 21q-66 0 -65 -109v-174h186v-266h-186v-490h123v-268h-611v268h82v490h-84zM51 758v266 h84v174q0 43 6 84t31 97.5t66 96.5t119.5 68.5t183.5 28.5q80 0 170 -15.5t131 -35.5l-123 -236q-45 20 -113 21q-66 0 -65 -109v-174h186v-266h-186v-490h123v-268h-611v268h82v490h-84z" />
|
|
120
|
+
</font>
|
|
121
|
+
</defs></svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//= require jquery
|
|
2
|
+
//= require jquery-ui
|
|
3
|
+
//= require jquery_ujs
|
|
4
|
+
//= require_tree .
|
|
5
|
+
|
|
6
|
+
$(function(){
|
|
7
|
+
$('.nice_admin_notice').show('fade');
|
|
8
|
+
setTimeout(function() {
|
|
9
|
+
$('.nice_admin_notice').hide('bounce', 400);
|
|
10
|
+
}, 2500
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
$('.nice_admin_alert').show('fade');
|
|
14
|
+
setTimeout(function() {
|
|
15
|
+
$('.nice_admin_alert').hide('bounce', 600);
|
|
16
|
+
}, 6000
|
|
17
|
+
);
|
|
18
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.main_button {
|
|
2
|
+
position: absolute;
|
|
3
|
+
|
|
4
|
+
text-decoration: none;
|
|
5
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
6
|
+
font-size: 14px;
|
|
7
|
+
color: #616161;
|
|
8
|
+
|
|
9
|
+
padding: 7px 14px;
|
|
10
|
+
margin-top: 20px;
|
|
11
|
+
margin-left: 20px;
|
|
12
|
+
|
|
13
|
+
border-radius: 8px;
|
|
14
|
+
-moz-border-radius: 8px;
|
|
15
|
+
-webkit-border-radius: 8px;
|
|
16
|
+
|
|
17
|
+
border: 1px solid #9D9D9D;
|
|
18
|
+
|
|
19
|
+
background: -moz-linear-gradient(top,#ffffff 0%,#D1D1D1);
|
|
20
|
+
background: -webkit-gradient(linear, left top, left bottom,from(#ffffff),to(#D1D1D1));
|
|
21
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
.nice_admin_notice{
|
|
2
|
+
display:none;
|
|
3
|
+
|
|
4
|
+
width:100%;
|
|
5
|
+
height:40px;
|
|
6
|
+
position: absolute;
|
|
7
|
+
top:0px;
|
|
8
|
+
left:0px;
|
|
9
|
+
|
|
10
|
+
background-color: #F1E7C1;
|
|
11
|
+
|
|
12
|
+
-webkit-box-shadow: 0px 5px 15px 3px #3B3B3B;
|
|
13
|
+
-moz-box-shadow: 0px 5px 15px 3px #3B3B3B;
|
|
14
|
+
box-shadow: 0px 5px 15px 3px #3B3B3B;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.nice_admin_notice p{
|
|
18
|
+
font: 16px "Lucida Grande";
|
|
19
|
+
padding: 10px 0px 0px 0px;
|
|
20
|
+
color: #181818;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.nice_admin_alert{
|
|
24
|
+
width:100%;
|
|
25
|
+
height:40px;
|
|
26
|
+
position: absolute;
|
|
27
|
+
top:0px;
|
|
28
|
+
left:0px;
|
|
29
|
+
|
|
30
|
+
background-color: #F13D50;
|
|
31
|
+
|
|
32
|
+
-webkit-box-shadow: 0px 5px 15px 3px #3B3B3B;
|
|
33
|
+
-moz-box-shadow: 0px 5px 15px 3px #3B3B3B;
|
|
34
|
+
box-shadow: 0px 5px 15px 3px #3B3B3B;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.nice_admin_alert p{
|
|
38
|
+
font: 16px "Lucida Grande";
|
|
39
|
+
padding: 10px 0px 0px 0px;
|
|
40
|
+
color: #FFF;
|
|
41
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
form{
|
|
2
|
+
margin-top: 20px !important;
|
|
3
|
+
margin-left: 40px !important;
|
|
4
|
+
padding-bottom: 40px !important;
|
|
5
|
+
text-align: left;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
input[type=text]{
|
|
9
|
+
border: 1px solid #BBB;
|
|
10
|
+
height:30px;
|
|
11
|
+
width:300px;
|
|
12
|
+
padding-left: 10px;
|
|
13
|
+
font: 14px 'Lucida Grande';
|
|
14
|
+
color: #313131;
|
|
15
|
+
|
|
16
|
+
-webkit-box-shadow: inset 2px 2px 6px #D8DADA;
|
|
17
|
+
-moz-box-shadow: inset 2px 2px 6px #DFE1E1;
|
|
18
|
+
box-shadow: inset 2px 2px 6px #DFE1E1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
input[type=email]{
|
|
22
|
+
border: 1px solid #BBB;
|
|
23
|
+
height:30px;
|
|
24
|
+
width:300px;
|
|
25
|
+
padding-left: 10px;
|
|
26
|
+
font: 14px 'Lucida Grande';
|
|
27
|
+
color: #313131;
|
|
28
|
+
|
|
29
|
+
-webkit-box-shadow: inset 2px 2px 6px #D8DADA;
|
|
30
|
+
-moz-box-shadow: inset 2px 2px 6px #DFE1E1;
|
|
31
|
+
box-shadow: inset 2px 2px 6px #DFE1E1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
input[type=password]{
|
|
35
|
+
border: 1px solid #BBB;
|
|
36
|
+
height:30px;
|
|
37
|
+
width:300px;
|
|
38
|
+
padding-left: 10px;
|
|
39
|
+
font: 14px 'Lucida Grande';
|
|
40
|
+
color: #313131;
|
|
41
|
+
|
|
42
|
+
-webkit-box-shadow: inset 2px 2px 6px #D8DADA;
|
|
43
|
+
-moz-box-shadow: inset 2px 2px 6px #DFE1E1;
|
|
44
|
+
box-shadow: inset 2px 2px 6px #DFE1E1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.formtastic textarea{
|
|
48
|
+
-webkit-box-shadow: inset 2px 2px 6px #D8DADA;
|
|
49
|
+
-moz-box-shadow: inset 2px 2px 6px #DFE1E1;
|
|
50
|
+
box-shadow: inset 2px 2px 6px #DFE1E1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
fieldset label{
|
|
54
|
+
display: block;
|
|
55
|
+
padding: 15px 0px 5px 0px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.formtastic .error p{
|
|
59
|
+
margin: 0 !important;
|
|
60
|
+
padding-top: 5px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.formtastic .error p:first-letter{
|
|
64
|
+
text-transform: capitalize;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.formtastic .inline-errors{
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
input[type=file]{
|
|
71
|
+
margin-bottom: 0px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.formtastic .text textarea{
|
|
75
|
+
width:95%;
|
|
76
|
+
height:150px;
|
|
77
|
+
padding-left: 10px;
|
|
78
|
+
padding-top: 10px;
|
|
79
|
+
margin-right:45px;
|
|
80
|
+
font: 12px 'Lucida Grande';
|
|
81
|
+
|
|
82
|
+
border: 1px solid #BBB;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
input[type=submit]{
|
|
87
|
+
margin-top: 20px;
|
|
88
|
+
}
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
/* -------------------------------------------------------------------------------------------------
|
|
2
|
+
|
|
3
|
+
It's *strongly* suggested that you don't modify this file. Instead, load a new stylesheet after
|
|
4
|
+
this one in your layouts (eg formtastic_changes.css) and override the styles to suit your needs.
|
|
5
|
+
This will allow you to update formtastic.css with new releases without clobbering your own changes.
|
|
6
|
+
|
|
7
|
+
This stylesheet forms part of the Formtastic Rails Plugin
|
|
8
|
+
(c) 2008-2011 Justin French
|
|
9
|
+
|
|
10
|
+
--------------------------------------------------------------------------------------------------*/
|
|
11
|
+
|
|
12
|
+
/* NORMALIZE AND RESET - obviously inspired by Yahoo's reset.css, but scoped to just .formtastic
|
|
13
|
+
--------------------------------------------------------------------------------------------------*/
|
|
14
|
+
.formtastic,
|
|
15
|
+
.formtastic ul,
|
|
16
|
+
.formtastic ol,
|
|
17
|
+
.formtastic li,
|
|
18
|
+
.formtastic fieldset,
|
|
19
|
+
.formtastic legend,
|
|
20
|
+
.formtastic input,
|
|
21
|
+
.formtastic textarea,
|
|
22
|
+
.formtastic select,
|
|
23
|
+
.formtastic p {
|
|
24
|
+
margin:0;
|
|
25
|
+
padding:0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.formtastic fieldset {
|
|
29
|
+
border:0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.formtastic em,
|
|
33
|
+
.formtastic strong {
|
|
34
|
+
font-style:normal;
|
|
35
|
+
font-weight:normal;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.formtastic ol,
|
|
39
|
+
.formtastic ul {
|
|
40
|
+
list-style:none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.formtastic abbr,
|
|
44
|
+
.formtastic acronym {
|
|
45
|
+
border:0;
|
|
46
|
+
font-variant:normal;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.formtastic input,
|
|
50
|
+
.formtastic textarea {
|
|
51
|
+
font-family:sans-serif;
|
|
52
|
+
font-size:inherit;
|
|
53
|
+
font-weight:inherit;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.formtastic input,
|
|
57
|
+
.formtastic textarea,
|
|
58
|
+
.formtastic select {
|
|
59
|
+
font-size:100%;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.formtastic legend {
|
|
63
|
+
white-space:normal;
|
|
64
|
+
color:#000;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
/* SEMANTIC ERRORS
|
|
69
|
+
--------------------------------------------------------------------------------------------------*/
|
|
70
|
+
.formtastic .errors {
|
|
71
|
+
color:#cc0000;
|
|
72
|
+
margin:0.5em 0 1.5em 25%;
|
|
73
|
+
list-style:square;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.formtastic .errors li {
|
|
77
|
+
padding:0;
|
|
78
|
+
border:none;
|
|
79
|
+
display:list-item;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/* BUTTONS
|
|
84
|
+
--------------------------------------------------------------------------------------------------*/
|
|
85
|
+
.formtastic .buttons {
|
|
86
|
+
overflow:hidden; zoom:1; /* clear containing floats */
|
|
87
|
+
padding-left:25%;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.formtastic .button {
|
|
91
|
+
float:left;
|
|
92
|
+
padding-right:0.5em;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
/* INPUTS
|
|
97
|
+
--------------------------------------------------------------------------------------------------*/
|
|
98
|
+
.formtastic .inputs {
|
|
99
|
+
overflow:hidden; zoom:1; /* clear containing floats */
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.formtastic .input {
|
|
103
|
+
overflow:hidden; zoom:1; /* clear containing floats */
|
|
104
|
+
padding:0.5em 0; /* padding and negative margin juggling is for Firefox */
|
|
105
|
+
margin-top:-0.5em;
|
|
106
|
+
margin-bottom:1em;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
/* LEFT ALIGNED LABELS
|
|
111
|
+
--------------------------------------------------------------------------------------------------*/
|
|
112
|
+
.formtastic .input .label {
|
|
113
|
+
display:block;
|
|
114
|
+
width:25%;
|
|
115
|
+
float:left;
|
|
116
|
+
padding-top:.2em;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.formtastic .fragments .label,
|
|
120
|
+
.formtastic .choices .label {
|
|
121
|
+
position:absolute;
|
|
122
|
+
width:95%;
|
|
123
|
+
left:0px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.formtastic .fragments .label label,
|
|
127
|
+
.formtastic .choices .label label {
|
|
128
|
+
position:absolute;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* NESTED FIELDSETS AND LEGENDS (radio, check boxes and date/time inputs use nested fieldsets)
|
|
132
|
+
--------------------------------------------------------------------------------------------------*/
|
|
133
|
+
.formtastic .choices {
|
|
134
|
+
position:relative;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.formtastic .choices-group {
|
|
138
|
+
float:left;
|
|
139
|
+
width:74%;
|
|
140
|
+
margin:0;
|
|
141
|
+
padding:0 0 0 25%;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.formtastic .choice {
|
|
145
|
+
padding:0;
|
|
146
|
+
border:0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
/* INLINE HINTS
|
|
151
|
+
--------------------------------------------------------------------------------------------------*/
|
|
152
|
+
.formtastic .input .inline-hints {
|
|
153
|
+
color:#666;
|
|
154
|
+
margin:0.5em 0 0 25%;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
/* INLINE ERRORS
|
|
159
|
+
--------------------------------------------------------------------------------------------------*/
|
|
160
|
+
.formtastic .inline-errors {
|
|
161
|
+
color:#cc0000;
|
|
162
|
+
margin:0.5em 0 0 25%;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.formtastic .errors {
|
|
166
|
+
color:#cc0000;
|
|
167
|
+
margin:0.5em 0 0 25%;
|
|
168
|
+
list-style:square;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.formtastic .errors li {
|
|
172
|
+
padding:0;
|
|
173
|
+
border:none;
|
|
174
|
+
display:list-item;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
/* STRING, NUMERIC, PASSWORD, EMAIL, URL, PHONE, SEARCH (ETC) OVERRIDES
|
|
179
|
+
--------------------------------------------------------------------------------------------------*/
|
|
180
|
+
.formtastic .stringish input {
|
|
181
|
+
width:72%;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.formtastic .stringish input[size] {
|
|
185
|
+
width:auto;
|
|
186
|
+
max-width:72%;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
/* TEXTAREA OVERRIDES
|
|
191
|
+
--------------------------------------------------------------------------------------------------*/
|
|
192
|
+
.formtastic .text textarea {
|
|
193
|
+
width:72%;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.formtastic .text textarea[cols] {
|
|
197
|
+
width:auto;
|
|
198
|
+
max-width:72%;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
/* HIDDEN OVERRIDES
|
|
203
|
+
--------------------------------------------------------------------------------------------------*/
|
|
204
|
+
.formtastic .hidden {
|
|
205
|
+
display:none;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
/* BOOLEAN LABELS
|
|
210
|
+
--------------------------------------------------------------------------------------------------*/
|
|
211
|
+
.formtastic .boolean label {
|
|
212
|
+
padding-left:25%;
|
|
213
|
+
display:block;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
/* CHOICE GROUPS
|
|
218
|
+
--------------------------------------------------------------------------------------------------*/
|
|
219
|
+
.formtastic .choices-group {
|
|
220
|
+
margin-bottom:-0.5em;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.formtastic .choice {
|
|
224
|
+
margin:0.1em 0 0.5em 0;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.formtastic .choice label {
|
|
228
|
+
float:none;
|
|
229
|
+
width:100%;
|
|
230
|
+
line-height:100%;
|
|
231
|
+
padding-top:0;
|
|
232
|
+
margin-bottom:0.6em;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
/* ADJUSTMENTS FOR INPUTS INSIDE LABELS (boolean input, radio input, check_boxes input)
|
|
237
|
+
--------------------------------------------------------------------------------------------------*/
|
|
238
|
+
.formtastic .choice label input,
|
|
239
|
+
.formtastic .boolean label input {
|
|
240
|
+
margin:0 0.3em 0 0.1em;
|
|
241
|
+
line-height:100%;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
/* FRAGMENTED INPUTS (DATE/TIME/DATETIME)
|
|
246
|
+
--------------------------------------------------------------------------------------------------*/
|
|
247
|
+
.formtastic .fragments {
|
|
248
|
+
position:relative;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.formtastic .fragments-group {
|
|
252
|
+
float:left;
|
|
253
|
+
width:74%;
|
|
254
|
+
margin:0;
|
|
255
|
+
padding:0 0 0 25%;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.formtastic .fragment {
|
|
259
|
+
float:left;
|
|
260
|
+
width:auto;
|
|
261
|
+
margin:0 .3em 0 0;
|
|
262
|
+
padding:0;
|
|
263
|
+
border:0;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.formtastic .fragment label {
|
|
267
|
+
display:none;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.formtastic .fragment label input {
|
|
271
|
+
display:inline;
|
|
272
|
+
margin:0;
|
|
273
|
+
padding:0;
|
|
274
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: 'ChunkFiveRegular';
|
|
3
|
+
src: url("<%= asset_path 'Chunkfive-webfont.eot' %>");
|
|
4
|
+
src: url("<%= asset_path 'Chunkfive-webfont.eot?#iefix' %>") format('embedded-opentype'),
|
|
5
|
+
url("<%= asset_path 'Chunkfive-webfont.woff' %>") format('woff'),
|
|
6
|
+
url("<%= asset_path 'Chunkfive-webfont.ttf' %>") format('truetype'),
|
|
7
|
+
url("<%= asset_path 'Chunkfive-webfont.svg#ChunkFiveRegular' %>") format('svg');
|
|
8
|
+
font-weight: normal;
|
|
9
|
+
font-style: normal;
|
|
10
|
+
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
html {
|
|
14
|
+
min-height: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
body {
|
|
18
|
+
background: #2a2a2a url("<%= asset_path 'bg.png' %>");
|
|
19
|
+
background: -webkit-gradient(radial, 50% 0, 0, 50% 0, 480, from(rgba(255,255,255,.15)), to(rgba(255,255,255,0))), #2a2a2a url("<%= asset_path 'bg.png' %>");
|
|
20
|
+
background: -moz-radial-gradient(50% 0px, circle, rgba(255,255,255,.15) 0, rgba(255,255,255,0)) 1px, #2a2a2a url("<%= asset_path 'bg.png' %>");
|
|
21
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
22
|
+
font-size: 12px;
|
|
23
|
+
color: #464646;
|
|
24
|
+
_padding-top: 22px;
|
|
25
|
+
text-align: center;
|
|
26
|
+
min-height: 100%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
h1.site_name {
|
|
30
|
+
text-align: center;
|
|
31
|
+
font: 70px 'ChunkFiveRegular', Arial, sans-serif;
|
|
32
|
+
letter-spacing: 1px;
|
|
33
|
+
color: #EEE;
|
|
34
|
+
margin-top: 20px;
|
|
35
|
+
|
|
36
|
+
text-shadow: 0px 0px 10px #303030;
|
|
37
|
+
filter: dropshadow(color=#303030, offx=0, offy=0);
|
|
38
|
+
|
|
39
|
+
-webkit-font-smoothing: antialiased;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.main_area{
|
|
43
|
+
display:block;
|
|
44
|
+
|
|
45
|
+
width:900px;
|
|
46
|
+
min-height:300px;
|
|
47
|
+
background-color: #eaeaea;
|
|
48
|
+
margin-left: auto;
|
|
49
|
+
margin-right: auto;
|
|
50
|
+
margin-top: 20px;
|
|
51
|
+
|
|
52
|
+
-webkit-border-radius: 3px;
|
|
53
|
+
-moz-border-radius: 3px;
|
|
54
|
+
border-radius: 3px;
|
|
55
|
+
|
|
56
|
+
-webkit-box-shadow: 0px 0px 5px 2px #202020;
|
|
57
|
+
-moz-box-shadow: 0px 0px 5px 2px #202020;
|
|
58
|
+
box-shadow: 0px 0px 5px 2px #202020;
|
|
59
|
+
|
|
60
|
+
margin-bottom:50px;
|
|
61
|
+
|
|
62
|
+
/* text-align:center;*/
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
h1{
|
|
66
|
+
color: #444;
|
|
67
|
+
text-align: center;
|
|
68
|
+
font: 30px Helvetica;
|
|
69
|
+
padding: 10px 10px 0px 18px;
|
|
70
|
+
font-weight: bold;
|
|
71
|
+
-webkit-font-smoothing: antialiased;
|
|
72
|
+
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
h2{
|
|
76
|
+
text-align: center;
|
|
77
|
+
color: #6B6B6B;
|
|
78
|
+
font: 14px Arial;
|
|
79
|
+
padding: 0px 0px 10px 19px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
a{
|
|
83
|
+
text-decoration: none;
|
|
84
|
+
color: #2B64BF;
|
|
85
|
+
padding: 0px 0px 10px 19px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
p{
|
|
90
|
+
padding: 0px 0px 10px 19px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
ul{
|
|
94
|
+
list-style: none;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
li{
|
|
98
|
+
list-style: none;
|
|
99
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.inner_nice_admin_nav{
|
|
2
|
+
|
|
3
|
+
margin-top: 15px;
|
|
4
|
+
margin-bottom: 30px;
|
|
5
|
+
width:100%;
|
|
6
|
+
height:45px;
|
|
7
|
+
|
|
8
|
+
background-color: #303135;
|
|
9
|
+
|
|
10
|
+
-webkit-box-shadow: inset -10px 2px 14px 2px #121212;
|
|
11
|
+
-moz-box-shadow: inset 0px 4px 14px 2px #121212;
|
|
12
|
+
box-shadow: inset 0px 2px 14px 2px #121212;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.inner_nice_admin_nav li{
|
|
16
|
+
display: inline;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.inner_nice_admin_nav a{
|
|
20
|
+
font-size: 14px;
|
|
21
|
+
font-family: Helvetica, sans-serif;
|
|
22
|
+
font-weight: bold;
|
|
23
|
+
text-transform: uppercase;
|
|
24
|
+
color: #FFF;
|
|
25
|
+
line-height: 44px;
|
|
26
|
+
-webkit-font-smoothing: antialiased;
|
|
27
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
html, body, div, span, applet, object, iframe,
|
|
2
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
|
3
|
+
a, abbr, acronym, address, big, cite, code,
|
|
4
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
|
5
|
+
small, strike, strong, sub, sup, tt, var,
|
|
6
|
+
b, u, i, center,
|
|
7
|
+
dl, dt, dd, ol, ul, li,
|
|
8
|
+
fieldset, form, label, legend,
|
|
9
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
|
10
|
+
article, aside, canvas, details, embed,
|
|
11
|
+
figure, figcaption, footer, header, hgroup,
|
|
12
|
+
menu, nav, output, ruby, section, summary,
|
|
13
|
+
time, mark, audio, video {
|
|
14
|
+
margin: 0;
|
|
15
|
+
padding: 0;
|
|
16
|
+
border: 0;
|
|
17
|
+
font-size: 100%;
|
|
18
|
+
font: inherit;
|
|
19
|
+
vertical-align: baseline;
|
|
20
|
+
}
|
|
21
|
+
/* HTML5 display-role reset for older browsers */
|
|
22
|
+
article, aside, details, figcaption, figure,
|
|
23
|
+
footer, header, hgroup, menu, nav, section {
|
|
24
|
+
display: block;
|
|
25
|
+
}
|
|
26
|
+
body {
|
|
27
|
+
line-height: 1;
|
|
28
|
+
}
|
|
29
|
+
ol, ul {
|
|
30
|
+
list-style: none;
|
|
31
|
+
}
|
|
32
|
+
blockquote, q {
|
|
33
|
+
quotes: none;
|
|
34
|
+
}
|
|
35
|
+
blockquote:before, blockquote:after,
|
|
36
|
+
q:before, q:after {
|
|
37
|
+
content: '';
|
|
38
|
+
content: none;
|
|
39
|
+
}
|
|
40
|
+
table {
|
|
41
|
+
border-collapse: collapse;
|
|
42
|
+
border-spacing: 0;
|
|
43
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
thead{font-weight: bold;}
|
|
2
|
+
|
|
3
|
+
table {
|
|
4
|
+
width: 100%;
|
|
5
|
+
text-align: left;
|
|
6
|
+
}
|
|
7
|
+
table thead th,
|
|
8
|
+
table tfoot th {
|
|
9
|
+
height: 35px;
|
|
10
|
+
color: #959595;
|
|
11
|
+
background-color: #eaeaea;
|
|
12
|
+
padding: 0px 10px 0px 20px;
|
|
13
|
+
vertical-align: middle;
|
|
14
|
+
border-bottom: 1px solid #d9d9d9;
|
|
15
|
+
box-shadow: 0px 2px 0px #FFFFFF;
|
|
16
|
+
-webkit-box-shadow: 0px 2px 0px #FFFFFF;
|
|
17
|
+
-moz-box-shadow: 0px 2px 0px #FFFFFF;
|
|
18
|
+
text-shadow: 0px 1px 0px #ffffff;
|
|
19
|
+
filter: dropshadow(color=#ffffff, offx=0, offy=1);
|
|
20
|
+
}
|
|
21
|
+
table tfoot th {
|
|
22
|
+
background-color: transparent;
|
|
23
|
+
border-top: 1px solid #d9d9d9;
|
|
24
|
+
}
|
|
25
|
+
table tbody tr:hover {
|
|
26
|
+
background-color: #e5e5e5 !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
table tbody tr:nth-child(even) {
|
|
30
|
+
background-color: #F1F1F1;
|
|
31
|
+
}
|
|
32
|
+
td {
|
|
33
|
+
border-bottom: 1px dotted #DDD;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
table td {
|
|
37
|
+
padding: 15px 15px 15px 20px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
table td.center,
|
|
41
|
+
table th.center {
|
|
42
|
+
text-align: center
|
|
43
|
+
}
|
|
44
|
+
/*Midle center cell*/
|
|
45
|
+
table td.middle,
|
|
46
|
+
table th.middle {
|
|
47
|
+
vertical-align: middle
|
|
48
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
module NiceAdminHelper
|
|
2
|
+
|
|
3
|
+
def nice_admin_table_for(model, hash)
|
|
4
|
+
string = ""
|
|
5
|
+
if model.all.count > 0
|
|
6
|
+
|
|
7
|
+
# The following renders the table header
|
|
8
|
+
string << "<table><thead><tr>"
|
|
9
|
+
|
|
10
|
+
hash[:fields].each do |header|
|
|
11
|
+
string << "<th>#{header.to_s.titlecase}</th>"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
hash[:links].each do |blank_header|
|
|
15
|
+
string << "<th></th>"
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
string << "</tr></thead><tbody>"
|
|
19
|
+
|
|
20
|
+
for model_item in model.all
|
|
21
|
+
string << "<tr>"
|
|
22
|
+
hash[:fields].each do |field|
|
|
23
|
+
attribute = model_item.try(field)
|
|
24
|
+
if attribute.class == ActiveSupport::TimeWithZone
|
|
25
|
+
string << "<td>#{attribute.to_s(:long)}</td>"
|
|
26
|
+
else
|
|
27
|
+
string << "<td>#{attribute}</td>"
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
hash[:links].each do |link|
|
|
32
|
+
link_array = []
|
|
33
|
+
if hash[:namespace] != nil
|
|
34
|
+
link_array << hash[:namespace]
|
|
35
|
+
link_array << model_item
|
|
36
|
+
|
|
37
|
+
else
|
|
38
|
+
link_array << model_item
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
link_array.flatten!
|
|
42
|
+
|
|
43
|
+
case link.to_s
|
|
44
|
+
when 'edit'
|
|
45
|
+
edit_array = [:edit]
|
|
46
|
+
string << "<td>#{link_to "Edit", edit_array + link_array}</td>"
|
|
47
|
+
when 'destroy'
|
|
48
|
+
string << "<td>#{link_to "Delete", link_array, :method => :delete, :confirm => "Are you sure?"}</td>"
|
|
49
|
+
else
|
|
50
|
+
string << "<td>#{link_to link.to_s.humanize, link_array + [link]}</td>"
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
string << "</tr>"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
"</tbody>
|
|
58
|
+
</table>"
|
|
59
|
+
else
|
|
60
|
+
string << "<p>There are no #{model.klass.to_s.tableize.gsub('_', ' ')} to display</p>"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
begin
|
|
64
|
+
string << paginate(model)
|
|
65
|
+
rescue
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
return raw string
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title><%= NiceAdmin.site_title %></title>
|
|
5
|
+
<%= stylesheet_link_tag "nice_admin" %>
|
|
6
|
+
<%= javascript_include_tag "nice_admin" %>
|
|
7
|
+
<%= csrf_meta_tags %>
|
|
8
|
+
</head>
|
|
9
|
+
<body class="nice_admin">
|
|
10
|
+
<%= render :partial => "application/admin_flash" %>
|
|
11
|
+
|
|
12
|
+
<h1 class="site_name"><%= NiceAdmin.site_name %></h1>
|
|
13
|
+
|
|
14
|
+
<%= render :partial => "nice_admin_nav" %>
|
|
15
|
+
|
|
16
|
+
<div class="main_area">
|
|
17
|
+
<%= yield %>
|
|
18
|
+
</div>
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: nice_admin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.0.
|
|
5
|
+
version: 0.0.2
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Alex Barlow
|
|
@@ -47,6 +47,27 @@ extra_rdoc_files: []
|
|
|
47
47
|
files:
|
|
48
48
|
- lib/nice_admin.rb
|
|
49
49
|
- readme.md
|
|
50
|
+
- app/assets/fonts/Chunkfive-webfont.eot
|
|
51
|
+
- app/assets/fonts/Chunkfive-webfont.svg
|
|
52
|
+
- app/assets/fonts/Chunkfive-webfont.ttf
|
|
53
|
+
- app/assets/fonts/Chunkfive-webfont.woff
|
|
54
|
+
- app/assets/fonts/Chunkfive.otf
|
|
55
|
+
- app/assets/images/bg.png
|
|
56
|
+
- app/assets/javascripts/nice_admin.js
|
|
57
|
+
- app/assets/stylesheets/button.css
|
|
58
|
+
- app/assets/stylesheets/flash.css
|
|
59
|
+
- app/assets/stylesheets/forms.css
|
|
60
|
+
- app/assets/stylesheets/formtastic.css
|
|
61
|
+
- app/assets/stylesheets/main.css.erb
|
|
62
|
+
- app/assets/stylesheets/nav.css
|
|
63
|
+
- app/assets/stylesheets/nice_admin.css
|
|
64
|
+
- app/assets/stylesheets/reset.css
|
|
65
|
+
- app/assets/stylesheets/tables.css
|
|
66
|
+
- app/controller/nice_admin_controller.rb
|
|
67
|
+
- app/helpers/nice_admin_helper.rb
|
|
68
|
+
- app/views/application/_admin_flash.html.erb
|
|
69
|
+
- app/views/application/_nice_admin_nav.html.erb
|
|
70
|
+
- app/views/layouts/nice_admin.html.erb
|
|
50
71
|
has_rdoc: true
|
|
51
72
|
homepage: http://madebyfudge.com
|
|
52
73
|
licenses:
|