desktop icons now use font-awesome
|
Before Width: | Height: | Size: 9.3 KiB |
|
Before Width: | Height: | Size: 549 B |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 914 B |
|
Before Width: | Height: | Size: 621 B |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1018 B |
|
Before Width: | Height: | Size: 598 B |
|
Before Width: | Height: | Size: 941 B |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 30 KiB |
@@ -7,7 +7,7 @@ erpnext.set_about = function() {
|
||||
source: 'https://github.com/webnotes/erpnext',
|
||||
publisher: 'Web Notes Technologies Pvt Ltd, Mumbai',
|
||||
copyright: '© Web Notes Technologies Pvt Ltd',
|
||||
version: '2' //+ '.' + window._version_number
|
||||
version: 'Please see git log for the release number'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -14,75 +14,85 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
erpnext.modules = {
|
||||
'Selling': 'selling-home',
|
||||
'Accounts': 'accounts-home',
|
||||
'Stock': 'stock-home',
|
||||
'Buying': 'buying-home',
|
||||
'Support': 'support-home',
|
||||
'Projects': 'projects-home',
|
||||
'Manufacturing': 'manufacturing-home',
|
||||
'Website': 'website-home',
|
||||
'HR': 'hr-home',
|
||||
'Setup': 'Setup',
|
||||
'Activity': 'activity',
|
||||
'To Do': 'todo',
|
||||
'Calendar': 'calendar',
|
||||
'Messages': 'messages',
|
||||
'Knowledge Base': 'questions',
|
||||
}
|
||||
|
||||
wn.provide('wn.modules');
|
||||
$.extend(wn.modules, erpnext.modules);
|
||||
wn.modules['Core'] = 'Setup';
|
||||
|
||||
wn.module_css_classes = {
|
||||
'red': { start: '#A90329', middle: '#8F0222', end: '#6D0019' },
|
||||
'brown': { start: '#723e02', middle: '#633501', end: '#4a2700' },
|
||||
'green': { start: '#4b5602', middle: '#3f4901', end: '#313800' },
|
||||
'blue': { start: '#026584', middle: '#025770', end: '#004256' },
|
||||
'yellow': { start: '#be7902', middle: '#a66a02', end: '#865500' },
|
||||
'purple': { start: '#4d017d', middle: '#410169', end: '#310050' },
|
||||
'ocean': { start: '#02a47e', middle: '#018d6c', end: '#006a51' },
|
||||
'pink': { start: '#a40281', middle: '#8d016e', end: '#6a0053' },
|
||||
'grey': { start: '#545454', middle: '#484848', end: '#363636' },
|
||||
'dark-red': { start: '#68021a', middle: '#590116', end: '#440010' },
|
||||
'leaf-green': { start: '#b0a400', middle: '#968c00', end: '#726a00' },
|
||||
//'dark-blue': { start: '#023bae', middle: '#013295', end: '#002672' },
|
||||
'bright-green': { start: '#03ad1f', middle: '#02941a', end: '#007213' },
|
||||
'bright-yellow': { start: '#ffd65e', middle: '#febf04', end: '#ed9017' },
|
||||
'peacock': { start: '#026584', middle: '#026584', end: '#322476' },
|
||||
'violet': { start: '#50448e', middle: '#473b7f', end: '#3a3169' },
|
||||
'ultra-dark-green': { start: '#014333', middle: '#01372b', end: '#002a20' },
|
||||
}
|
||||
|
||||
wn.module_css_map = {
|
||||
'Accounts': 'blue',
|
||||
'Selling': 'green',
|
||||
'Stock': 'yellow',
|
||||
'Buying': 'red',
|
||||
'Support': 'purple',
|
||||
'HR': 'ocean',
|
||||
'Projects': 'violet',
|
||||
'Manufacturing': 'dark-red',
|
||||
'Website': 'leaf-green',
|
||||
'Activity': 'brown',
|
||||
'Setup': 'grey',
|
||||
'To Do': 'bright-yellow',
|
||||
'Messages': 'pink',
|
||||
'Calendar': 'peacock',
|
||||
'Knowledge Base': 'ultra-dark-green'
|
||||
}
|
||||
|
||||
wn.get_module_color = function(module) {
|
||||
try {
|
||||
var color = wn.module_css_classes[wn.module_css_map[module]].middle;
|
||||
} catch(e) {
|
||||
var color = "#000";
|
||||
}
|
||||
return color;
|
||||
}
|
||||
|
||||
$.extend(wn.modules, {
|
||||
"Selling": {
|
||||
link: "selling-home",
|
||||
color: "#3f4901",
|
||||
icon: "icon-tag"
|
||||
},
|
||||
"Accounts": {
|
||||
link: "accounts-home",
|
||||
color: "#025770",
|
||||
icon: "icon-money"
|
||||
},
|
||||
"Stock": {
|
||||
link: "stock-home",
|
||||
color: "#a66a02",
|
||||
icon: "icon-truck"
|
||||
},
|
||||
"Buying": {
|
||||
link: "buying-home",
|
||||
color: "#8F0222",
|
||||
icon: "icon-shopping-cart"
|
||||
},
|
||||
"Support": {
|
||||
link: "support-home",
|
||||
color: "#410169",
|
||||
icon: "icon-phone"
|
||||
},
|
||||
"Projects": {
|
||||
link: "projects-home",
|
||||
color: "#473b7f",
|
||||
icon: "icon-tasks"
|
||||
},
|
||||
"Manufacturing": {
|
||||
link: "manufacturing-home",
|
||||
color: "#590116",
|
||||
icon: "icon-magic"
|
||||
},
|
||||
"Website": {
|
||||
link: "website-home",
|
||||
color: "#968c00",
|
||||
icon: "icon-globe"
|
||||
},
|
||||
"HR": {
|
||||
link: "hr-home",
|
||||
color: "#018d6c",
|
||||
label: "Human Resources",
|
||||
icon: "icon-group"
|
||||
},
|
||||
"Setup": {
|
||||
link: "hr-home",
|
||||
color: "#484848",
|
||||
icon: "icon-wrench"
|
||||
},
|
||||
"Activity": {
|
||||
link: "activity",
|
||||
color: "#633501",
|
||||
icon: "icon-play"
|
||||
},
|
||||
"To Do": {
|
||||
link: "todo",
|
||||
color: "#febf04",
|
||||
icon: "icon-check"
|
||||
},
|
||||
"Calendar": {
|
||||
link: "calendar",
|
||||
color: "#026584",
|
||||
icon: "icon-calendar"
|
||||
},
|
||||
"Messages": {
|
||||
link: "messages",
|
||||
color: "#8d016e",
|
||||
icon: "icon-comments"
|
||||
},
|
||||
"Knowledge Base": {
|
||||
link: "questions",
|
||||
color: "#01372b",
|
||||
icon: "icon-question-sign"
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
wn.provide('erpnext.module_page');
|
||||
|
||||
|
||||
@@ -60,25 +60,4 @@ span, div, td, input, textarea, button, select {
|
||||
.show-all-reports {
|
||||
margin-top: 5px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.small-module-icons-accounts{ background-position: 0 0; width: 14px; height: 17px; margin-top: -2px; margin-bottom: -2px; }
|
||||
.small-module-icons-selling{ background-position: 0 -67px; width: 14px; height: 17px; margin-top: -2px; margin-bottom: -2px; }
|
||||
.small-module-icons-calendar{ background-position: 0 -134px; width: 15px; height: 17px; margin-top: -2px; margin-bottom: -2px; }
|
||||
.small-module-icons-feed{ background-position: 0 -263px; width: 14px; height: 17px; margin-top: -2px; margin-bottom: -2px; }
|
||||
.small-module-icons-hr{ background-position: 0 -330px; width: 17px; height: 14px; margin-top: -1px; }
|
||||
.small-module-icons-kb{ background-position: 0 -394px; width: 10px; height: 17px; margin-top: -2px; margin-bottom: -2px; }
|
||||
.small-module-icons-messages{ background-position: 0 -461px; width: 17px; height: 11px; }
|
||||
.small-module-icons-manufacturing{ background-position: 0 -522px; width: 17px; height: 14px; margin-top: -1px; }
|
||||
.small-module-icons-projects{ background-position: 0 -586px; width: 17px; height: 10px; }
|
||||
.small-module-icons-buying{ background-position: 0 -646px; width: 17px; height: 17px; margin-top: -2px; margin-bottom: -2px; }
|
||||
.small-module-icons-setup{ background-position: 0 -713px; width: 16px; height: 17px; margin-top: -2px; margin-bottom: -2px; }
|
||||
.small-module-icons-stock{ background-position: 0 -780px; width: 14px; height: 17px; margin-top: -2px; margin-bottom: -2px; }
|
||||
.small-module-icons-support{ background-position: 0 -847px; width: 17px; height: 17px; margin-top: -2px; margin-bottom: -2px; }
|
||||
.small-module-icons-todo{ background-position: 0 -914px; width: 17px; height: 15px; margin-top: -1px; margin-bottom: -1px; }
|
||||
.small-module-icons-website{ background-position: 0 -979px; width: 17px; height: 17px; margin-top: -2px; margin-bottom: -2px; }
|
||||
|
||||
.small-module-icons {
|
||||
background-image: url("../app/images/module-icons-small.png");
|
||||
display: inline-block;
|
||||
}
|
||||
@@ -59,7 +59,7 @@ erpnext.toolbar.add_modules = function() {
|
||||
wn.boot.modules_list = JSON.parse(wn.boot.modules_list);
|
||||
}
|
||||
else
|
||||
wn.boot.modules_list = keys(erpnext.modules).sort();
|
||||
wn.boot.modules_list = keys(wn.modules).sort();
|
||||
|
||||
// add to dropdown
|
||||
for(var i in wn.boot.modules_list) {
|
||||
@@ -68,8 +68,8 @@ erpnext.toolbar.add_modules = function() {
|
||||
if(m!='Setup' && wn.boot.profile.allow_modules.indexOf(m)!=-1) {
|
||||
args = {
|
||||
module: m,
|
||||
module_page: erpnext.modules[m],
|
||||
module_label: m=='HR' ? 'Human Resources' : m
|
||||
module_page: wn.modules[m].link,
|
||||
module_label: wn.modules[m].label || m
|
||||
}
|
||||
|
||||
$('.navbar .modules').append(repl('<li><a href="#!%(module_page)s" \
|
||||
|
||||