kuppayam 0.2.0.pre.materialize → 0.2.1.pre.materialize

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a8468bbb63f6fabee7c3cc7482d828aca0593ef3370748b491489692ecf614c
4
- data.tar.gz: b7342dcc229bd1ec6d050d21b2da8475159e6ec3332f8df199847d7762c3bf0e
3
+ metadata.gz: 9444e04f0829d3bfda475bce5f7e505388cc6b962e74e1e7022bd09b66372c93
4
+ data.tar.gz: c90a8fe45e4c753c250a213e155b79874f199e1cf3856f9178b202874f4ee937
5
5
  SHA512:
6
- metadata.gz: 5c9b51444fb68345529683d12aece81f7c76c70b622ac82a5856b1fe72aaa359a1d4b6dfb84bbea1819e5d0a92dce0ff94f680939a51032ff1eef8c20e5a1cb9
7
- data.tar.gz: 76cc8af8e20e9c6385fede4b915698b09d0258ac1e2dcb74ee006bbfb2f6ebaee4e4f8bdfa4e28ba82030e21e88b222bea8cc36efbc2f009a5ed14a3c742c66a
6
+ metadata.gz: f7b6ee4449ebca53ed157cc956c82f8b3d0ed19d2544e5820d2c4675b4709a9b6e86f3dd6c9d4b80c01ec808c8e22fa42619195107580ab64b3010e84d5d2408
7
+ data.tar.gz: 38e18b9f5aa2e83ede15fb22535570db8a6067e399f3246879e20ec9342b29495c71b8f570cc8ba9cee6ed402d2cdde3c3cd98796e1cd4867706bb92d9dbefab
@@ -1 +1,223 @@
1
- var _0xa3fc=["\x63\x6C\x69\x63\x6B","\x74\x68\x65\x6D\x65\x2D\x62\x67","\x68\x6F\x65\x2D\x74\x68\x65\x6D\x65\x62\x67\x2D\x74\x79\x70\x65","\x61\x74\x74\x72","\x62\x6F\x64\x79","\x6F\x6E","\x23\x74\x68\x65\x6D\x65\x2D\x63\x6F\x6C\x6F\x72\x20\x3E\x20\x61\x2E\x74\x68\x65\x6D\x65\x2D\x62\x67","\x63\x68\x61\x6E\x67\x65","\x76\x61\x6C","\x62\x6F\x78\x2D\x6C\x61\x79\x6F\x75\x74","\x74\x68\x65\x6D\x65\x2D\x6C\x61\x79\x6F\x75\x74","\x77\x69\x64\x65\x2D\x6C\x61\x79\x6F\x75\x74","\x23\x74\x68\x65\x6D\x65\x2D\x6C\x61\x79\x6F\x75\x74","\x68\x6F\x65\x2D\x6E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x2D\x74\x79\x70\x65","\x76\x65\x72\x74\x69\x63\x61\x6C","\x76\x65\x72\x74\x69\x63\x61\x6C\x2D\x63\x6F\x6D\x70\x61\x63\x74","\x6C\x65\x6E\x67\x74\x68","\x6C\x69\x2E\x68\x6F\x65\x2D\x68\x61\x73\x2D\x6D\x65\x6E\x75","\x70\x61\x72\x65\x6E\x74","\x61\x63\x74\x69\x76\x65","\x72\x65\x6D\x6F\x76\x65\x43\x6C\x61\x73\x73","\x6C\x69\x2E\x61\x63\x74\x69\x76\x65","\x66\x69\x6E\x64","\x2E\x70\x61\x6E\x65\x6C\x2D\x6C\x69\x73\x74","\x70\x61\x72\x65\x6E\x74\x73","\x61\x64\x64\x43\x6C\x61\x73\x73","\x2E\x70\x61\x6E\x65\x6C\x2D\x6C\x69\x73\x74\x20\x6C\x69\x20\x3E\x20\x61","\x72\x69\x67\x68\x74\x73\x69\x64\x65","\x68\x6F\x65\x2D\x6E\x61\x76\x2D\x70\x6C\x61\x63\x65\x6D\x65\x6E\x74","\x72\x69\x67\x68\x74","\x63\x6F\x6D\x70\x61\x63\x74\x2D\x68\x6D\x65\x6E\x75","\x23\x68\x6F\x65\x61\x70\x70\x2D\x77\x72\x61\x70\x70\x65\x72","\x6C\x65\x66\x74","\x23\x6E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x2D\x73\x69\x64\x65","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C","\x68\x6F\x65\x2D\x6D\x69\x6E\x69\x6D\x69\x7A\x65\x64\x2D\x6C\x70\x61\x6E\x65\x6C","\x23\x68\x6F\x65\x2D\x68\x65\x61\x64\x65\x72\x2C\x20\x23\x68\x6F\x65\x61\x70\x70\x2D\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x68\x6F\x65\x2D\x63\x6F\x6C\x6F\x72\x2D\x74\x79\x70\x65","\x6C\x6F\x67\x6F\x2D\x62\x67\x37","\x23\x68\x6F\x65\x2D\x68\x65\x61\x64\x65\x72","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C\x2D\x63\x6F\x6D\x70\x61\x63\x74","\x23\x6E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E\x2D\x74\x79\x70\x65","\x23\x68\x6F\x65\x2D\x68\x65\x61\x64\x65\x72\x20\x3E\x20\x2E\x68\x6F\x65\x2D\x72\x69\x67\x68\x74\x2D\x68\x65\x61\x64\x65\x72","\x23\x74\x68\x65\x6D\x65\x2D\x63\x6F\x6C\x6F\x72\x20\x3E\x20\x61\x2E\x68\x65\x61\x64\x65\x72\x2D\x62\x67","\x23\x68\x6F\x65\x61\x70\x70\x2D\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x23\x74\x68\x65\x6D\x65\x2D\x63\x6F\x6C\x6F\x72\x20\x3E\x20\x61\x2E\x6C\x70\x61\x6E\x65\x6C\x2D\x62\x67","\x23\x74\x68\x65\x6D\x65\x2D\x63\x6F\x6C\x6F\x72\x20\x3E\x20\x61\x2E\x6C\x6F\x67\x6F\x2D\x62\x67","\x68\x65\x69\x67\x68\x74","\x69\x6E\x6E\x65\x72\x48\x65\x69\x67\x68\x74","\x23\x66\x6F\x6F\x74\x65\x72","\x6D\x69\x6E\x2D\x68\x65\x69\x67\x68\x74","\x63\x73\x73","\x23\x6D\x61\x69\x6E\x2D\x63\x6F\x6E\x74\x65\x6E\x74\x20","\x2E\x69\x6E\x6E\x65\x72\x2D\x6C\x65\x66\x74\x2D\x70\x61\x6E\x65\x6C\x20","\x72\x65\x73\x69\x7A\x65","\x66\x69\x78\x65\x64","\x68\x6F\x65\x2D\x70\x6F\x73\x69\x74\x69\x6F\x6E\x2D\x74\x79\x70\x65","\x23\x68\x6F\x65\x2D\x6C\x65\x66\x74\x2D\x70\x61\x6E\x65\x6C\x2C\x2E\x68\x6F\x65\x2D\x6C\x65\x66\x74\x2D\x68\x65\x61\x64\x65\x72","\x61\x62\x73\x6F\x6C\x75\x74\x65","\x23\x73\x69\x64\x65\x62\x61\x72\x2D\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x6F\x76\x65\x72\x6C\x61\x79","\x68\x6F\x65\x2D\x6C\x70\x61\x6E\x65\x6C\x2D\x65\x66\x66\x65\x63\x74","\x70\x75\x73\x68","\x73\x68\x72\x69\x6E\x6B","\x23\x6C\x65\x66\x74\x70\x61\x6E\x65\x6C\x2D\x65\x66\x66\x65\x63\x74","\x6F\x70\x65\x6E","\x74\x6F\x67\x67\x6C\x65\x43\x6C\x61\x73\x73","\x23\x73\x74\x79\x6C\x65\x53\x65\x6C\x65\x63\x74\x6F\x72","\x2E\x73\x65\x6C\x65\x63\x74\x6F\x72\x2D\x74\x6F\x67\x67\x6C\x65\x20\x3E\x20\x61","\x2E\x68\x6F\x65\x2D\x6D\x69\x6E\x69\x6D\x69\x7A\x65\x64\x2D\x6C\x70\x61\x6E\x65\x6C","\x63\x6C\x6F\x73\x65\x73\x74","\x66\x61\x73\x74","\x73\x6C\x69\x64\x65\x55\x70","\x75\x6C\x3A\x76\x69\x73\x69\x62\x6C\x65","\x75\x6C","\x2E\x68\x6F\x65\x2D\x68\x61\x73\x2D\x6D\x65\x6E\x75","\x6F\x70\x65\x6E\x65\x64","\x2E\x6F\x70\x65\x6E\x65\x64","\x3E\x2E\x68\x6F\x65\x2D\x73\x75\x62\x2D\x6D\x65\x6E\x75","\x3A\x68\x69\x64\x64\x65\x6E","\x69\x73","\x73\x6C\x69\x64\x65\x44\x6F\x77\x6E","\x2E\x68\x6F\x65\x2D\x68\x61\x73\x2D\x6D\x65\x6E\x75\x20\x3E\x20\x61","\x68\x6F\x65\x2D\x64\x65\x76\x69\x63\x65\x2D\x74\x79\x70\x65","\x70\x68\x6F\x6E\x65","\x68\x6F\x65\x2D\x68\x69\x64\x65\x2D\x6C\x70\x61\x6E\x65\x6C","\x68\x61\x73\x43\x6C\x61\x73\x73","\x2E\x68\x6F\x65\x2D\x73\x69\x64\x65\x62\x61\x72\x2D\x74\x6F\x67\x67\x6C\x65\x20\x61","\x69\x6E\x6E\x65\x72\x57\x69\x64\x74\x68","\x74\x61\x62\x6C\x65\x74","\x64\x69\x73\x61\x62\x6C\x65\x64","\x6C\x69\x2E\x74\x68\x65\x6D\x65\x2D\x6F\x70\x74\x69\x6F\x6E\x20\x73\x65\x6C\x65\x63\x74","\x64\x65\x73\x6B\x74\x6F\x70","\x61\x70\x70\x69\x6E\x69\x74","\x72\x65\x61\x64\x79"];$(document)[_0xa3fc[94]](function(){HoeDatapp={appinit:function(){HoeDatapp.HandleSidebartoggle();HoeDatapp.Handlelpanel();HoeDatapp.Handlelpanelmenu();HoeDatapp.Handlethemeoption();HoeDatapp.Handlesidebareffect();HoeDatapp.Handlesidebarposition();HoeDatapp.Handlecontentheight();HoeDatapp.Handlethemecolor();HoeDatapp.Handlenavigationtype();HoeDatapp.Handlesidebarside();HoeDatapp.Handleactivestatemenu();HoeDatapp.Handlethemelayout();HoeDatapp.Handlethemebackground();},Handlethemebackground:function(){function _0x8220x1(){$(_0xa3fc[6])[_0xa3fc[5]](_0xa3fc[0],function(){$(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[1],$(this)[_0xa3fc[3]](_0xa3fc[2]))})}_0x8220x1();},Handlethemelayout:function(){$(_0xa3fc[12])[_0xa3fc[5]](_0xa3fc[7],function(){if($(this)[_0xa3fc[8]]()==_0xa3fc[9]){$(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[10],_0xa3fc[9])}else {$(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[10],_0xa3fc[11])}})},Handleactivestatemenu:function(){$(_0xa3fc[26])[_0xa3fc[5]](_0xa3fc[0],function(){if($(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[13])==_0xa3fc[14]||$(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[13])==_0xa3fc[15]){if($(this)[_0xa3fc[18]](_0xa3fc[17])[_0xa3fc[16]]===0){$(this)[_0xa3fc[24]](_0xa3fc[23])[_0xa3fc[22]](_0xa3fc[21])[_0xa3fc[20]](_0xa3fc[19]);$(this)[_0xa3fc[18]]()[_0xa3fc[25]](_0xa3fc[19]);}}})},Handlesidebarside:function(){$(_0xa3fc[33])[_0xa3fc[5]](_0xa3fc[7],function(){if($(this)[_0xa3fc[8]]()==_0xa3fc[27]){$(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[28],_0xa3fc[29]);$(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[13],_0xa3fc[14]);$(_0xa3fc[31])[_0xa3fc[20]](_0xa3fc[30]);}else {$(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[28],_0xa3fc[32]);$(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[13],_0xa3fc[14]);$(_0xa3fc[31])[_0xa3fc[20]](_0xa3fc[30]);}})},Handlenavigationtype:function(){$(_0xa3fc[41])[_0xa3fc[5]](_0xa3fc[7],function(){if($(this)[_0xa3fc[8]]()==_0xa3fc[34]){$(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[13],_0xa3fc[34]);$(_0xa3fc[31])[_0xa3fc[20]](_0xa3fc[30]);$(_0xa3fc[36])[_0xa3fc[20]](_0xa3fc[35]);$(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[28],_0xa3fc[32]);$(_0xa3fc[39])[_0xa3fc[3]](_0xa3fc[37],_0xa3fc[38]);}else {if($(this)[_0xa3fc[8]]()==_0xa3fc[40]){$(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[13],_0xa3fc[34]);$(_0xa3fc[31])[_0xa3fc[25]](_0xa3fc[30]);$(_0xa3fc[36])[_0xa3fc[20]](_0xa3fc[35]);$(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[28],_0xa3fc[32]);$(_0xa3fc[39])[_0xa3fc[3]](_0xa3fc[37],_0xa3fc[38]);}else {if($(this)[_0xa3fc[8]]()==_0xa3fc[15]){$(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[13],_0xa3fc[15]);$(_0xa3fc[31])[_0xa3fc[20]](_0xa3fc[30]);$(_0xa3fc[36])[_0xa3fc[25]](_0xa3fc[35]);$(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[28],_0xa3fc[32]);}else {$(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[13],_0xa3fc[14]);$(_0xa3fc[31])[_0xa3fc[20]](_0xa3fc[30]);$(_0xa3fc[36])[_0xa3fc[20]](_0xa3fc[35]);$(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[28],_0xa3fc[32]);}}}})},Handlethemecolor:function(){function _0x8220x2(){$(_0xa3fc[43])[_0xa3fc[5]](_0xa3fc[0],function(){$(_0xa3fc[42])[_0xa3fc[3]](_0xa3fc[37],$(this)[_0xa3fc[3]](_0xa3fc[37]))})}function _0x8220x3(){$(_0xa3fc[45])[_0xa3fc[5]](_0xa3fc[0],function(){$(_0xa3fc[44])[_0xa3fc[3]](_0xa3fc[37],$(this)[_0xa3fc[3]](_0xa3fc[37]))})}function _0x8220x4(){$(_0xa3fc[46])[_0xa3fc[5]](_0xa3fc[0],function(){$(_0xa3fc[39])[_0xa3fc[3]](_0xa3fc[37],$(this)[_0xa3fc[3]](_0xa3fc[37]))})}_0x8220x2();_0x8220x3();_0x8220x4();},Handlecontentheight:function(){function _0x8220x5(){var _0x8220x6=$(window)[_0xa3fc[47]]();var _0x8220x7=$(_0xa3fc[39])[_0xa3fc[48]]();var _0x8220x8=$(_0xa3fc[49])[_0xa3fc[48]]();var _0x8220x9=_0x8220x6-_0x8220x7-_0x8220x8-2;var _0x8220xa=_0x8220x6-_0x8220x7-2;$(_0xa3fc[52])[_0xa3fc[51]](_0xa3fc[50],_0x8220x9);$(_0xa3fc[53])[_0xa3fc[51]](_0xa3fc[47],_0x8220xa);}_0x8220x5();$(window)[_0xa3fc[54]](function(){_0x8220x5()});},Handlesidebarposition:function(){$(_0xa3fc[59])[_0xa3fc[5]](_0xa3fc[7],function(){if($(this)[_0xa3fc[8]]()==_0xa3fc[55]){$(_0xa3fc[57])[_0xa3fc[3]](_0xa3fc[56],_0xa3fc[55])}else {$(_0xa3fc[57])[_0xa3fc[3]](_0xa3fc[56],_0xa3fc[58])}})},Handlesidebareffect:function(){$(_0xa3fc[64])[_0xa3fc[5]](_0xa3fc[7],function(){if($(this)[_0xa3fc[8]]()==_0xa3fc[60]){$(_0xa3fc[36])[_0xa3fc[3]](_0xa3fc[61],_0xa3fc[60])}else {if($(this)[_0xa3fc[8]]()==_0xa3fc[62]){$(_0xa3fc[36])[_0xa3fc[3]](_0xa3fc[61],_0xa3fc[62])}else {$(_0xa3fc[36])[_0xa3fc[3]](_0xa3fc[61],_0xa3fc[63])}}})},Handlethemeoption:function(){$(_0xa3fc[68])[_0xa3fc[5]](_0xa3fc[0],function(){$(_0xa3fc[67])[_0xa3fc[66]](_0xa3fc[65])})},Handlelpanelmenu:function(){$(_0xa3fc[82])[_0xa3fc[5]](_0xa3fc[0],function(){var _0x8220xb=$(this)[_0xa3fc[70]](_0xa3fc[69])[_0xa3fc[16]];if(_0x8220xb===0){$(this)[_0xa3fc[18]](_0xa3fc[75])[_0xa3fc[18]](_0xa3fc[74])[_0xa3fc[22]](_0xa3fc[73])[_0xa3fc[72]](_0xa3fc[71]);$(this)[_0xa3fc[18]](_0xa3fc[75])[_0xa3fc[18]](_0xa3fc[74])[_0xa3fc[22]](_0xa3fc[77])[_0xa3fc[20]](_0xa3fc[76]);var _0x8220xc=$(this)[_0xa3fc[18]](_0xa3fc[75])[_0xa3fc[22]](_0xa3fc[78]);if(_0x8220xc[_0xa3fc[80]](_0xa3fc[79])){_0x8220xc[_0xa3fc[81]](_0xa3fc[71]);$(this)[_0xa3fc[18]](_0xa3fc[75])[_0xa3fc[25]](_0xa3fc[76]);}else {$(this)[_0xa3fc[18]](_0xa3fc[75])[_0xa3fc[18]](_0xa3fc[74])[_0xa3fc[22]](_0xa3fc[73])[_0xa3fc[72]](_0xa3fc[71]);$(this)[_0xa3fc[18]](_0xa3fc[75])[_0xa3fc[20]](_0xa3fc[76]);};};})},HandleSidebartoggle:function(){$(_0xa3fc[87])[_0xa3fc[5]](_0xa3fc[0],function(){if($(_0xa3fc[31])[_0xa3fc[3]](_0xa3fc[83])!==_0xa3fc[84]){$(_0xa3fc[44])[_0xa3fc[66]](_0xa3fc[35]);$(_0xa3fc[39])[_0xa3fc[66]](_0xa3fc[35]);if($(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[13])!==_0xa3fc[15]){$(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[13],_0xa3fc[15])}else {$(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[13],_0xa3fc[14])};}else {if(!$(_0xa3fc[31])[_0xa3fc[86]](_0xa3fc[85])){$(_0xa3fc[31])[_0xa3fc[25]](_0xa3fc[85])}else {$(_0xa3fc[31])[_0xa3fc[20]](_0xa3fc[85])}}})},Handlelpanel:function(){function _0x8220xd(){var _0x8220xe=$(window)[0][_0xa3fc[88]];if(_0x8220xe>=768&&_0x8220xe<=1024){$(_0xa3fc[31])[_0xa3fc[3]](_0xa3fc[83],_0xa3fc[89]);$(_0xa3fc[36])[_0xa3fc[25]](_0xa3fc[35]);$(_0xa3fc[91])[_0xa3fc[3]](_0xa3fc[90],false);}else {if(_0x8220xe<768){$(_0xa3fc[31])[_0xa3fc[3]](_0xa3fc[83],_0xa3fc[84]);$(_0xa3fc[36])[_0xa3fc[20]](_0xa3fc[35]);$(_0xa3fc[91])[_0xa3fc[3]](_0xa3fc[90],_0xa3fc[90]);}else {if($(_0xa3fc[4])[_0xa3fc[3]](_0xa3fc[13])!==_0xa3fc[15]){$(_0xa3fc[31])[_0xa3fc[3]](_0xa3fc[83],_0xa3fc[92]);$(_0xa3fc[36])[_0xa3fc[20]](_0xa3fc[35]);$(_0xa3fc[91])[_0xa3fc[3]](_0xa3fc[90],false);}else {$(_0xa3fc[31])[_0xa3fc[3]](_0xa3fc[83],_0xa3fc[92]);$(_0xa3fc[36])[_0xa3fc[25]](_0xa3fc[35]);$(_0xa3fc[91])[_0xa3fc[3]](_0xa3fc[90],false);}}};}_0x8220xd();$(window)[_0xa3fc[54]](_0x8220xd);}};HoeDatapp[_0xa3fc[93]]();});
1
+ $(document)['ready'](function() {
2
+ HoeDatapp = {
3
+ appinit: function() {
4
+ HoeDatapp.HandleSidebartoggle();
5
+ HoeDatapp.Handlelpanel();
6
+ HoeDatapp.Handlelpanelmenu();
7
+ HoeDatapp.Handlethemeoption();
8
+ HoeDatapp.Handlesidebareffect();
9
+ HoeDatapp.Handlesidebarposition();
10
+ HoeDatapp.Handlecontentheight();
11
+ HoeDatapp.Handlethemecolor();
12
+ HoeDatapp.Handlenavigationtype();
13
+ HoeDatapp.Handlesidebarside();
14
+ HoeDatapp.Handleactivestatemenu();
15
+ HoeDatapp.Handlethemelayout();
16
+ HoeDatapp.Handlethemebackground();
17
+ },
18
+ Handlethemebackground: function() {
19
+ function _0x8220x1() {
20
+ $('#theme-color > a.theme-bg')['on']('click', function() {
21
+ $('body')['attr']('theme-bg', $(this)['attr']('hoe-themebg-type'))
22
+ })
23
+ }
24
+ _0x8220x1();
25
+ },
26
+ Handlethemelayout: function() {
27
+ $('#theme-layout')['on']('change', function() {
28
+ if ($(this)['val']() == 'box-layout') {
29
+ $('body')['attr']('theme-layout', 'box-layout')
30
+ } else {
31
+ $('body')['attr']('theme-layout', 'wide-layout')
32
+ }
33
+ })
34
+ },
35
+ Handleactivestatemenu: function() {
36
+ $('.panel-list li > a')['on']('click', function() {
37
+ if ($('body')['attr']('hoe-navigation-type') == 'vertical' || $('body')['attr']('hoe-navigation-type') == 'vertical-compact') {
38
+ if ($(this)['parent']('li.hoe-has-menu')['length'] === 0) {
39
+ $(this)['parents']('.panel-list')['find']('li.active')['removeClass']('active');
40
+ $(this)['parent']()['addClass']('active');
41
+ }
42
+ }
43
+ })
44
+ },
45
+ Handlesidebarside: function() {
46
+ $('#navigation-side')['on']('change', function() {
47
+ if ($(this)['val']() == 'rightside') {
48
+ $('body')['attr']('hoe-nav-placement', 'right');
49
+ $('body')['attr']('hoe-navigation-type', 'vertical');
50
+ $('#hoeapp-wrapper')['removeClass']('compact-hmenu');
51
+ } else {
52
+ $('body')['attr']('hoe-nav-placement', 'left');
53
+ $('body')['attr']('hoe-navigation-type', 'vertical');
54
+ $('#hoeapp-wrapper')['removeClass']('compact-hmenu');
55
+ }
56
+ })
57
+ },
58
+ Handlenavigationtype: function() {
59
+ $('#navigation-type')['on']('change', function() {
60
+ if ($(this)['val']() == 'horizontal') {
61
+ $('body')['attr']('hoe-navigation-type', 'horizontal');
62
+ $('#hoeapp-wrapper')['removeClass']('compact-hmenu');
63
+ $('#hoe-header, #hoeapp-container')['removeClass']('hoe-minimized-lpanel');
64
+ $('body')['attr']('hoe-nav-placement', 'left');
65
+ $('#hoe-header')['attr']('hoe-color-type', 'logo-bg7');
66
+ } else {
67
+ if ($(this)['val']() == 'horizontal-compact') {
68
+ $('body')['attr']('hoe-navigation-type', 'horizontal');
69
+ $('#hoeapp-wrapper')['addClass']('compact-hmenu');
70
+ $('#hoe-header, #hoeapp-container')['removeClass']('hoe-minimized-lpanel');
71
+ $('body')['attr']('hoe-nav-placement', 'left');
72
+ $('#hoe-header')['attr']('hoe-color-type', 'logo-bg7');
73
+ } else {
74
+ if ($(this)['val']() == 'vertical-compact') {
75
+ $('body')['attr']('hoe-navigation-type', 'vertical-compact');
76
+ $('#hoeapp-wrapper')['removeClass']('compact-hmenu');
77
+ $('#hoe-header, #hoeapp-container')['addClass']('hoe-minimized-lpanel');
78
+ $('body')['attr']('hoe-nav-placement', 'left');
79
+ } else {
80
+ $('body')['attr']('hoe-navigation-type', 'vertical');
81
+ $('#hoeapp-wrapper')['removeClass']('compact-hmenu');
82
+ $('#hoe-header, #hoeapp-container')['removeClass']('hoe-minimized-lpanel');
83
+ $('body')['attr']('hoe-nav-placement', 'left');
84
+ }
85
+ }
86
+ }
87
+ })
88
+ },
89
+ Handlethemecolor: function() {
90
+ function _0x8220x2() {
91
+ $('#theme-color > a.header-bg')['on']('click', function() {
92
+ $('#hoe-header > .hoe-right-header')['attr']('hoe-color-type', $(this)['attr']('hoe-color-type'))
93
+ })
94
+ }
95
+
96
+ function _0x8220x3() {
97
+ $('#theme-color > a.lpanel-bg')['on']('click', function() {
98
+ $('#hoeapp-container')['attr']('hoe-color-type', $(this)['attr']('hoe-color-type'))
99
+ })
100
+ }
101
+
102
+ function _0x8220x4() {
103
+ $('#theme-color > a.logo-bg')['on']('click', function() {
104
+ $('#hoe-header')['attr']('hoe-color-type', $(this)['attr']('hoe-color-type'))
105
+ })
106
+ }
107
+ _0x8220x2();
108
+ _0x8220x3();
109
+ _0x8220x4();
110
+ },
111
+ Handlecontentheight: function() {
112
+ function _0x8220x5() {
113
+ var _0x8220x6 = $(window)['height']();
114
+ var _0x8220x7 = $('#hoe-header')['innerHeight']();
115
+ var _0x8220x8 = $('#footer')['innerHeight']();
116
+ var _0x8220x9 = _0x8220x6 - _0x8220x7 - _0x8220x8 - 2;
117
+ var _0x8220xa = _0x8220x6 - _0x8220x7 - 2;
118
+ $('#main-content ')['css']('min-height', _0x8220x9);
119
+ $('.inner-left-panel ')['css']('height', _0x8220xa);
120
+ }
121
+ _0x8220x5();
122
+ $(window)['resize'](function() {
123
+ _0x8220x5()
124
+ });
125
+ },
126
+ Handlesidebarposition: function() {
127
+ $('#sidebar-position')['on']('change', function() {
128
+ if ($(this)['val']() == 'fixed') {
129
+ $('#hoe-left-panel,.hoe-left-header')['attr']('hoe-position-type', 'fixed')
130
+ } else {
131
+ $('#hoe-left-panel,.hoe-left-header')['attr']('hoe-position-type', 'absolute')
132
+ }
133
+ })
134
+ },
135
+ Handlesidebareffect: function() {
136
+ $('#leftpanel-effect')['on']('change', function() {
137
+ if ($(this)['val']() == 'overlay') {
138
+ $('#hoe-header, #hoeapp-container')['attr']('hoe-lpanel-effect', 'overlay')
139
+ } else {
140
+ if ($(this)['val']() == 'push') {
141
+ $('#hoe-header, #hoeapp-container')['attr']('hoe-lpanel-effect', 'push')
142
+ } else {
143
+ $('#hoe-header, #hoeapp-container')['attr']('hoe-lpanel-effect', 'shrink')
144
+ }
145
+ }
146
+ })
147
+ },
148
+ Handlethemeoption: function() {
149
+ $('.selector-toggle > a')['on']('click', function() {
150
+ $('#styleSelector')['toggleClass']('open')
151
+ })
152
+ },
153
+ Handlelpanelmenu: function() {
154
+ $('.hoe-has-menu > a')['on']('click', function() {
155
+ var _0x8220xb = $(this)['closest']('.hoe-minimized-lpanel')['length'];
156
+ if (_0x8220xb === 0) {
157
+ $(this)['parent']('.hoe-has-menu')['parent']('ul')['find']('ul:visible')['slideUp']('fast');
158
+ $(this)['parent']('.hoe-has-menu')['parent']('ul')['find']('.opened')['removeClass']('opened');
159
+ var _0x8220xc = $(this)['parent']('.hoe-has-menu')['find']('>.hoe-sub-menu');
160
+ if (_0x8220xc['is'](':hidden')) {
161
+ _0x8220xc['slideDown']('fast');
162
+ $(this)['parent']('.hoe-has-menu')['addClass']('opened');
163
+ } else {
164
+ $(this)['parent']('.hoe-has-menu')['parent']('ul')['find']('ul:visible')['slideUp']('fast');
165
+ $(this)['parent']('.hoe-has-menu')['removeClass']('opened');
166
+ };
167
+ };
168
+ })
169
+ },
170
+ HandleSidebartoggle: function() {
171
+ $('.hoe-sidebar-toggle a')['on']('click', function() {
172
+ if ($('#hoeapp-wrapper')['attr']('hoe-device-type') !== 'phone') {
173
+ $('#hoeapp-container')['toggleClass']('hoe-minimized-lpanel');
174
+ $('#hoe-header')['toggleClass']('hoe-minimized-lpanel');
175
+ if ($('body')['attr']('hoe-navigation-type') !== 'vertical-compact') {
176
+ $('body')['attr']('hoe-navigation-type', 'vertical-compact')
177
+ } else {
178
+ $('body')['attr']('hoe-navigation-type', 'vertical')
179
+ };
180
+ } else {
181
+ if (!$('#hoeapp-wrapper')['hasClass']('hoe-hide-lpanel')) {
182
+ $('#hoeapp-wrapper')['addClass']('hoe-hide-lpanel')
183
+ } else {
184
+ $('#hoeapp-wrapper')['removeClass']('hoe-hide-lpanel')
185
+ }
186
+ }
187
+ })
188
+ },
189
+ Handlelpanel: function() {
190
+ function _0x8220xd() {
191
+ var _0x8220xe = $(window)[0]['innerWidth'];
192
+ if (_0x8220xe >= 768 && _0x8220xe <= 1024) {
193
+ $('#hoeapp-wrapper')['attr']('hoe-device-type', 'tablet');
194
+ $('#hoe-header, #hoeapp-container')['addClass']('hoe-minimized-lpanel');
195
+ $('li.theme-option select')['attr']('disabled', false);
196
+ } else {
197
+ if (_0x8220xe < 768) {
198
+ $('#hoeapp-wrapper')['attr']('hoe-device-type', 'phone');
199
+ $('#hoe-header, #hoeapp-container')['removeClass']('hoe-minimized-lpanel');
200
+ $('li.theme-option select')['attr']('disabled', 'disabled');
201
+ } else {
202
+ if ($('body')['attr']('hoe-navigation-type') !== 'vertical-compact') {
203
+ $('#hoeapp-wrapper')['attr']('hoe-device-type', 'desktop');
204
+ // $('#hoe-header, #hoeapp-container')['removeClass']('hoe-minimized-lpanel');
205
+ // $('li.theme-option select')['attr']('disabled', false);
206
+ $('#hoe-header, #hoeapp-container')['addClass']('hoe-minimized-lpanel');
207
+ $('li.theme-option select')['attr']('disabled', false);
208
+ } else {
209
+ $('#hoeapp-wrapper')['attr']('hoe-device-type', 'desktop');
210
+ // $('#hoe-header, #hoeapp-container')['addClass']('hoe-minimized-lpanel');
211
+ // $('li.theme-option select')['attr']('disabled', false);
212
+ $('#hoe-header, #hoeapp-container')['addClass']('hoe-minimized-lpanel');
213
+ $('li.theme-option select')['attr']('disabled', false);
214
+ }
215
+ }
216
+ };
217
+ }
218
+ _0x8220xd();
219
+ $(window)['resize'](_0x8220xd);
220
+ }
221
+ };
222
+ HoeDatapp['appinit']();
223
+ });
Binary file
@@ -761,7 +761,8 @@ body[theme-layout="box-layout"] #hoeapp-wrapper[hoe-device-type="desktop"]{
761
761
 
762
762
  .sidebar-scroll{
763
763
  overflow-y: scroll;
764
- max-height: 530px;
764
+ max-height: 86vh !important;
765
+ padding-bottom: 30px !important;
765
766
  }
766
767
 
767
768
  .hoe-minimized-lpanel #hoe-left-panel .panel-list.sidebar-scroll {
@@ -5,14 +5,12 @@ module Kuppayam
5
5
  rescue_from ActionController::InvalidAuthenticityToken, :with => :handle_invalid_authenticity_token
6
6
 
7
7
  # Choose the theme and set one of the following in your inherited controllers
8
- # layout 'kuppayam/xenon/admin'
9
- # layout 'kuppayam/materialize/admin'
8
+ before_action :set_layout
9
+ layout :determine_layout
10
10
 
11
- before_action :get_nested_resource_objects
12
11
  before_action :stylesheet_filename, :javascript_filename
13
- before_action :set_locale, :set_default_title, :set_navs, :parse_pagination_params,
14
- :configure_filters, :configure_notification, :configure_breadcrumbs
15
-
12
+ before_action :set_locale, :set_default_title, :set_navs, :parse_pagination_params
13
+ before_action :configure_filters, :configure_notification, :configure_breadcrumbs
16
14
 
17
15
  include ParamsParserHelper
18
16
  include RenderHelper
@@ -49,30 +47,44 @@ module Kuppayam
49
47
  { locale: I18n.locale }
50
48
  end
51
49
 
52
- # This is more like a hooker method which is called
53
- # before all other before_action method.
54
- # This method can be overriden by inherited controller classes
55
- # An e.g: would be to call a method to get @store object from params[:store_id]
56
- # The object @store has to be initiated before the breadcrumbs or set_title methods are called
57
- def get_nested_resource_objects
50
+ def set_navs
51
+ set_nav("home")
58
52
  end
59
53
 
60
54
  def stylesheet_filename
61
- # @stylesheet_filename = "kuppayam-xenon"
62
- @stylesheet_filename = "kuppayam-materialize"
55
+ if @current_layout == "xenon"
56
+ @stylesheet_filename = "kuppayam-xenon"
57
+ else
58
+ @stylesheet_filename = "kuppayam-materialize"
59
+ end
63
60
  end
64
61
 
65
62
  def javascript_filename
66
- # @javascript_filename = "kuppayam-xenon"
67
- @javascript_filename = "kuppayam-materialize"
63
+ if @current_layout == "xenon"
64
+ @javascript_filename = "kuppayam-xenon"
65
+ else
66
+ @javascript_filename = "kuppayam-materialize"
67
+ end
68
68
  end
69
69
 
70
70
  def set_default_title
71
- set_title("Kuppayam - Xenon Theme - Dress up in no time!")
71
+ set_title("Kuppayam - #{@current_layout.capitalize} Theme - Dress up in no time!")
72
72
  end
73
73
 
74
- def set_navs
75
- set_nav("home")
74
+ def set_layout
75
+ # @current_layout = "xenon"
76
+ @current_layout = "materialize"
77
+ end
78
+
79
+ def determine_layout
80
+ case @current_layout
81
+ when "xenon"
82
+ "kuppayam/xenon/admin"
83
+ when "materialize"
84
+ "kuppayam/materialize/admin"
85
+ else
86
+ false
87
+ end
76
88
  end
77
89
 
78
90
  end
@@ -319,7 +319,8 @@ module FilterHelper
319
319
  filters_to_remove: [],
320
320
  show_all_filter_on_top: true,
321
321
  show_null_filter_on_top: false,
322
- display_method: :display_name
322
+ display_method: :display_name,
323
+ drop_down_options: {}
323
324
  )
324
325
 
325
326
  raise "@filter_param_mapping not initialised" unless @filter_param_mapping
@@ -367,7 +368,7 @@ module FilterHelper
367
368
  results
368
369
  end
369
370
 
370
- drop_down_filter(selected_text, options)
371
+ drop_down_filter(selected_text, options, filter_options[:drop_down_options])
371
372
  end
372
373
 
373
374
  #####
@@ -83,13 +83,14 @@ module ImageHelper
83
83
  height: "auto",
84
84
  place_holder: {},
85
85
  class: "",
86
+ style: "",
86
87
  alt: ""
87
88
  )
88
89
 
89
90
  options[:class] = options[:class] + (object.persisted? ? " #{object.id}-#{options[:size]}-image" : "")
90
91
 
91
92
  img_url = image_url(object, method_name, **options)
92
- return image_tag(img_url, class: options[:class], width: options[:width], height: options[:height], alt: options[:alt])
93
+ return image_tag(img_url, class: options[:class], style: options[:style], width: options[:width], height: options[:height], alt: options[:alt], title: options[:title])
93
94
  end
94
95
 
95
96
  # Displays the image with a edit button below it
@@ -34,6 +34,7 @@ module Approvable
34
34
  end
35
35
  end
36
36
 
37
+ scope :pending_or_approved, -> { where(status: [PENDING, APPROVED]) }
37
38
  scope :approved, -> { where(status: APPROVED) }
38
39
  scope :pending, -> { where(status: PENDING) }
39
40
  scope :blocked, -> { where(status: BLOCKED) }
@@ -0,0 +1,37 @@
1
+ module Verifiable
2
+
3
+ extend ActiveSupport::Concern
4
+
5
+ # Constants
6
+ VERIFIED = "verified"
7
+ PENDING = "pending"
8
+ REMOVED = "removed"
9
+
10
+ STATUS = {"Approved" => VERIFIED, "Pending" => PENDING, "Removed" => REMOVED}
11
+ STATUS_REVERSE = {VERIFIED => "Approved", PENDING => "Pending", REMOVED => "Removed"}
12
+
13
+ included do
14
+
15
+ validates :status, :presence=> true, :inclusion => {:in => STATUS_REVERSE.keys, :presence_of => :status, :message => "%{value} is not a valid status" }
16
+
17
+ state_machine :status, initial: PENDING do
18
+ event :approve do
19
+ transition [PENDING, REMOVED] => VERIFIED
20
+ end
21
+ event :pending do
22
+ transition [VERIFIED, REMOVED] => PENDING
23
+ end
24
+ event :remove do
25
+ transition [VERIFIED, PENDING] => REMOVED
26
+ end
27
+ end
28
+
29
+ scope :verified, -> { where(status: VERIFIED) }
30
+ scope :pending, -> { where(status: PENDING) }
31
+ scope :removed, -> { where(status: REMOVED) }
32
+
33
+ scope :status, lambda { |status| where("LOWER(status)='#{status}'") }
34
+
35
+ end
36
+
37
+ end
@@ -22,6 +22,13 @@
22
22
  $("<%= parent_id %>").prepend("<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/row", locals: locals)) %>");
23
23
  $("<%= item_id %>").css("background-color", "#fffddd");
24
24
 
25
+ // Closing the modal if it is opened
26
+ <% if @resource_options[:form_model_size] == :generic %>
27
+ closeGenericModal();
28
+ <% elsif @resource_options[:form_model_size] == :large %>
29
+ closeLargeModal();
30
+ <% end %>
31
+
25
32
  <% if @resource_options[:show_modal_after_create] %>
26
33
 
27
34
  // Showing the saved data in the modal
@@ -33,13 +40,6 @@
33
40
  showLargeModal(heading, bodyContent, true);
34
41
  <% end %>
35
42
 
36
- <% else %>
37
- // Closing the modal if it is opened
38
- <% if @resource_options[:form_model_size] == :generic %>
39
- closeGenericModal();
40
- <% elsif @resource_options[:form_model_size] == :large %>
41
- closeLargeModal();
42
- <% end %>
43
43
  <% end %>
44
44
 
45
45
  // Showing Growl Like Message
@@ -13,17 +13,13 @@
13
13
  closeLargeModal();
14
14
  <% end %>
15
15
 
16
- <% if @r_objects.any? %>
17
- <%
18
- if @row_partial_locals && @row_partial_locals.is_a?(Hash) && !@row_partial_locals.empty?
19
- locals = @row_partial_locals
20
- else
21
- locals = {}
22
- end
23
- %>
24
- // Refresh the list
25
- $("<%= list_id %>").html("<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/index", locals: locals)) %>");
26
- <% else %>
27
- var noResultsText = "<%= escape_javascript(theme_panel_message(I18n.translate('success.no_results_found')))%>";
28
- $("<%= list_id %>").html(noResultsText);
29
- <% end %>
16
+ <%
17
+ if @row_partial_locals && @row_partial_locals.is_a?(Hash) && !@row_partial_locals.empty?
18
+ locals = @row_partial_locals
19
+ else
20
+ locals = {}
21
+ end
22
+ %>
23
+
24
+ // Refresh the list
25
+ $("<%= list_id %>").html("<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/index", locals: locals)) %>");
@@ -19,6 +19,13 @@
19
19
  $("<%= item_id %>").replaceWith("<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/row", locals: locals)) %>");
20
20
  $("<%= item_id %>").css("background-color", "#fffddd");
21
21
 
22
+ // Closing the modal if it is opened
23
+ <% if @resource_options[:form_model_size] == :generic %>
24
+ closeGenericModal();
25
+ <% elsif @resource_options[:form_model_size] == :large %>
26
+ closeLargeModal();
27
+ <% end %>
28
+
22
29
  // Showing the saved data in the modal
23
30
  <% if @resource_options[:show_modal_after_update] %>
24
31
  var heading = "<%= raw @r_object.try(:display_name) %>";
@@ -28,13 +35,6 @@
28
35
  <% elsif @resource_options[:show_model_size] == :large %>
29
36
  showLargeModal(heading, bodyContent, true);
30
37
  <% end %>
31
- <% else %>
32
- // Closing the modal if it is opened
33
- <% if @resource_options[:form_model_size] == :generic %>
34
- closeGenericModal();
35
- <% elsif @resource_options[:form_model_size] == :large %>
36
- closeLargeModal();
37
- <% end %>
38
38
  <% end %>
39
39
 
40
40
  // Showing Growl Like Message
@@ -0,0 +1,14 @@
1
+ <div class="page-error centered">
2
+
3
+ <div class="error-symbol">
4
+ <i class="fa-warning"></i>
5
+ </div>
6
+
7
+ <h2 style="color:#4b4b4b;">
8
+ Permission Denied
9
+ <small>Unauthorized</small>
10
+ </h2>
11
+
12
+ <p>You do not have permission to view this page or perform this action</p>
13
+
14
+ </div>
@@ -0,0 +1,119 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <!-- Head -->
5
+ <%= render :partial=>"/layouts/kuppayam/materialize/head" -%>
6
+ </head>
7
+
8
+ <body hoe-navigation-type="vertical" hoe-nav-placement="left" theme-layout="wide-layout" theme-bg="bg1" >
9
+
10
+ <div id="hoeapp-wrapper" class="hoe-hide-lpanel" hoe-device-type="desktop">
11
+
12
+ <!-- Top Navigation -->
13
+ <%= render :partial=>"/layouts/kuppayam/materialize/header" -%>
14
+
15
+ <div id="hoeapp-container" hoe-color-type="lpanel-bg2" hoe-lpanel-effect="shrink">
16
+
17
+ <%#* Page Content Starts here -%>
18
+ <main>
19
+ <section id="main-content" class="main-container">
20
+ <div class="main-content" autoscroll="true" bs-affix-target="" init-ripples="" style="">
21
+
22
+ <!-- Heading & Breadcrumbs -->
23
+ <%#= render :partial=>"/layouts/kuppayam/materialize/heading" -%>
24
+
25
+ <%#* Show flash messages if controller has set any. -%>
26
+ <!-- <div id="div_flash_message">
27
+ <%#= flash_message(false) if defined?(flash) -%>
28
+ </div>
29
+ -->
30
+
31
+ <%= yield %>
32
+
33
+ <!-- Footer -->
34
+ <%= render :partial=>"/layouts/kuppayam/materialize/footer" -%>
35
+
36
+ </div>
37
+ </section>
38
+ </main>
39
+
40
+ </div>
41
+ </div>
42
+
43
+ <div id="div_modal_generic" class="modal" style="z-index: 1056;">
44
+ <div class="modal-dialog">
45
+ <div class="modal-content">
46
+ <div class="modal-header">
47
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
48
+ <h3 class="modal-title">Modal title</h3>
49
+ </div>
50
+ <div class="modal-body-main"></div>
51
+ </div><!-- /.modal-content -->
52
+ </div><!-- /.modal-dialog -->
53
+ </div><!-- /.modal -->
54
+
55
+ <div id="div_modal_large" class="modal">
56
+ <div class="modal-dialog modal-lg" style="width: 96%">
57
+ <div class="modal-content">
58
+ <div class="modal-header">
59
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
60
+ <h3 class="modal-title">Modal title</h3>
61
+ </div>
62
+ <div class="modal-body-main"></div>
63
+ </div><!-- /.modal-content -->
64
+ </div><!-- /.modal-dialog -->
65
+ </div><!-- /.modal -->
66
+
67
+ <div id="div_modal_message" class="modal fade">
68
+ <div class="modal-dialog">
69
+ <div class="modal-content">
70
+ <div class="modal-header">
71
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
72
+ <h3 class="modal-title">Modal title</h3>
73
+ </div>
74
+ <div class="modal-body">
75
+ <p>One fine body&hellip;</p>
76
+ </div>
77
+ <div class="modal-footer">
78
+ <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
79
+ </div>
80
+ </div><!-- /.modal-content -->
81
+ </div><!-- /.modal-dialog -->
82
+ </div><!-- /.modal -->
83
+
84
+ <div id="div_modal_image_upload" class="modal" style="z-index: 1057;">
85
+ <div class="modal-dialog">
86
+ <div class="modal-content">
87
+ <div class="modal-header">
88
+ <button type="button" class="close" aria-hidden="true" onclick="closeImageUploadModal();" >&times;</button>
89
+ <h3 class="modal-title">Modal title</h3>
90
+ </div>
91
+ <div class="modal-body-main"></div>
92
+ </div><!-- /.modal-content -->
93
+ </div><!-- /.modal-dialog -->
94
+ </div><!-- /.modal -->
95
+
96
+ <script type="text/javascript">
97
+ $('.modal').on('shown.bs.modal', function(e){
98
+ $(this).modal('handleUpdate'); //Update backdrop on modal show
99
+ $(this).scrollTop(0); //reset modal to top position
100
+ });
101
+ </script>
102
+
103
+ <!-- Page Loading Overlay -->
104
+ <!-- <div class="page-loading-overlay">
105
+ <div class="loader-3"></div>
106
+ </div> -->
107
+
108
+ <%#* Loading Javascripts -%>
109
+ <%= javascript_include_tag @javascript_filename -%>
110
+
111
+ <%= yield :javascript_footer -%>
112
+
113
+ <iframe id="iframe_document" name="iframe_document" width="100%" style="display:none"></iframe>
114
+
115
+ <iframe id="iframe_image" name="iframe_image" width="100%" style="display:none"></iframe>
116
+
117
+ </body>
118
+
119
+ </html>
@@ -88,7 +88,7 @@ module Kuppayam
88
88
  required: true,
89
89
  form_group_div_class: "form-group filled mt-15",
90
90
  label_col_class: "",
91
- field_col_class: ""
91
+ field_col_class: "pt-10"
92
92
  )
93
93
  end
94
94
 
@@ -155,6 +155,9 @@ module Kuppayam
155
155
  case options[:html_options][:type].to_sym
156
156
  when :text, :email, :search, :password, :time, :tel, :url, :month, :number
157
157
  text_field_tag(options[:param_name], object.send(field_name.to_s), **options[:html_options])
158
+ when :decimal
159
+ precision = options[:html_options][:precision] || 2
160
+ text_field_tag(options[:param_name], number_with_precision(object.send(field_name), precision: precision), **options[:html_options])
158
161
  when :date
159
162
  begin
160
163
  date_value = object.send(field_name.to_s).strftime("%Y-%m-%d")
@@ -173,6 +176,8 @@ module Kuppayam
173
176
  current_value = object.send(field_name.to_s)
174
177
  options[:html_options][:checked] = current_value
175
178
  check_box_tag(options[:param_name], "1", current_value, **options[:html_options])
179
+ else
180
+ text_field_tag(options[:param_name], object.send(field_name.to_s), **options[:html_options])
176
181
  end + error_message
177
182
  end
178
183
  end
@@ -1,3 +1,3 @@
1
1
  module Kuppayam
2
- VERSION = '0.2.0-materialize'
2
+ VERSION = '0.2.1.pre.materialize'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuppayam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre.materialize
4
+ version: 0.2.1.pre.materialize
5
5
  platform: ruby
6
6
  authors:
7
7
  - kpvarma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-28 00:00:00.000000000 Z
11
+ date: 2018-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -500,6 +500,7 @@ files:
500
500
  - app/assets/images/kuppayam/defaults/default-large.png
501
501
  - app/assets/images/kuppayam/defaults/default-small.png
502
502
  - app/assets/images/kuppayam/defaults/logo-large.png
503
+ - app/assets/images/kuppayam/defaults/logo-small.png
503
504
  - app/assets/images/kuppayam/defaults/user-large.png
504
505
  - app/assets/images/kuppayam/defaults/user-small.png
505
506
  - app/assets/images/logo-on-white.png
@@ -520,6 +521,7 @@ files:
520
521
  - app/assets/javascripts/materialize/materialize.min.js
521
522
  - app/assets/javascripts/materialize/vanillatree.js
522
523
  - app/assets/javascripts/materialize/vendors.min.js
524
+ - app/assets/sketches/defaults.sketch
523
525
  - app/assets/sketches/logo.sketch
524
526
  - app/assets/stylesheets/general/handycss.css
525
527
  - app/assets/stylesheets/jquery_and_family.css
@@ -540,7 +542,6 @@ files:
540
542
  - app/controllers/kuppayam/documents_controller.rb
541
543
  - app/controllers/kuppayam/images_controller.rb
542
544
  - app/controllers/kuppayam/import_data_controller.rb
543
- - app/controllers/kuppayam/materialize_controller.rb
544
545
  - app/controllers/kuppayam/resource_controller.rb
545
546
  - app/helpers/breadcrumbs_helper.rb
546
547
  - app/helpers/document_helper.rb
@@ -562,6 +563,7 @@ files:
562
563
  - app/models/concerns/featureable.rb
563
564
  - app/models/concerns/publishable.rb
564
565
  - app/models/concerns/readable.rb
566
+ - app/models/concerns/verifiable.rb
565
567
  - app/models/document/base.rb
566
568
  - app/models/document/import_data_file.rb
567
569
  - app/models/document/import_report_file.rb
@@ -663,6 +665,7 @@ files:
663
665
  - app/views/kuppayam/workflows/peacock/show.js.erb
664
666
  - app/views/kuppayam/workflows/peacock/update.js.erb
665
667
  - app/views/layouts/dashboard/_items.html.erb
668
+ - app/views/layouts/kuppayam/materialize/401.html.erb
666
669
  - app/views/layouts/kuppayam/materialize/_footer.html.erb
667
670
  - app/views/layouts/kuppayam/materialize/_head.html.erb
668
671
  - app/views/layouts/kuppayam/materialize/_header.html.erb
@@ -670,6 +673,7 @@ files:
670
673
  - app/views/layouts/kuppayam/materialize/_sidebar.html.erb
671
674
  - app/views/layouts/kuppayam/materialize/admin.html.erb
672
675
  - app/views/layouts/kuppayam/materialize/blank.html.erb
676
+ - app/views/layouts/kuppayam/materialize/blank_with_nav.html.erb
673
677
  - app/views/layouts/kuppayam/materialize/image_upload.html.erb
674
678
  - app/views/layouts/kuppayam/materialize/login.html.erb
675
679
  - app/views/layouts/kuppayam/xenon/401.html.erb
@@ -1,7 +0,0 @@
1
- module Kuppayam
2
- class MaterializeController < Kuppayam::BaseController
3
-
4
- layout "kuppayam/materialize/admin"
5
-
6
- end
7
- end