mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
[style] default website
This commit is contained in:
@@ -77,3 +77,4 @@ erpnext.patches.v4_2.fix_account_master_type
|
|||||||
erpnext.patches.v4_2.update_project_milestones
|
erpnext.patches.v4_2.update_project_milestones
|
||||||
erpnext.patches.v4_2.add_currency_turkish_lira #2014-08-08
|
erpnext.patches.v4_2.add_currency_turkish_lira #2014-08-08
|
||||||
execute:frappe.delete_doc("DocType", "Landed Cost Wizard")
|
execute:frappe.delete_doc("DocType", "Landed Cost Wizard")
|
||||||
|
erpnext.patches.v4_2.default_website_style
|
||||||
|
|||||||
9
erpnext/patches/v4_2/default_website_style.py
Normal file
9
erpnext/patches/v4_2/default_website_style.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import frappe
|
||||||
|
from frappe.templates.pages.style_settings import default_properties
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
style_settings = frappe.get_doc("Style Settings", "Style Settings")
|
||||||
|
if not style_settings.apply_style:
|
||||||
|
style_settings.update(default_properties)
|
||||||
|
style_settings.apply_style = 1
|
||||||
|
style_settings.save()
|
||||||
@@ -6,6 +6,7 @@ import frappe
|
|||||||
|
|
||||||
from frappe import _
|
from frappe import _
|
||||||
from frappe.utils import nowdate
|
from frappe.utils import nowdate
|
||||||
|
from frappe.templates.pages.style_settings import default_properties
|
||||||
|
|
||||||
class website_maker(object):
|
class website_maker(object):
|
||||||
def __init__(self, company, tagline, user):
|
def __init__(self, company, tagline, user):
|
||||||
@@ -35,8 +36,8 @@ class website_maker(object):
|
|||||||
|
|
||||||
def make_style_settings(self):
|
def make_style_settings(self):
|
||||||
style_settings = frappe.get_doc("Style Settings", "Style Settings")
|
style_settings = frappe.get_doc("Style Settings", "Style Settings")
|
||||||
style_settings.top_bar_background = "F2F2F2"
|
style_settings.update(default_properties)
|
||||||
style_settings.font_size = "15px"
|
style_settings.apply_style = 1
|
||||||
style_settings.save()
|
style_settings.save()
|
||||||
|
|
||||||
def make_website_settings(self):
|
def make_website_settings(self):
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.slide {
|
.slide {
|
||||||
padding: 60px 40px;
|
padding: 30px 40px;
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user