# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt

from __future__ import unicode_literals
"""
	Customize Form is a Single DocType used to mask the Property Setter
	Thus providing a better UI from user perspective
"""
import frappe, json
from frappe import _
from frappe.model.document import Document
from frappe.core.doctype.doctype.doctype import validate_fields_for_doctype

class CustomizeForm(Document):
	doctype_properties = {
		'search_fields': 'Data',
		'sort_field': 'Data',
		'sort_order': 'Data',
		'default_print_format': 'Data',
		'read_only_onload': 'Check',
		'allow_attach': 'Check',
		'allow_copy': 'Check',
		'max_attachments': 'Int'
	}

	docfield_properties = {
		'idx': 'Int',
		'label': 'Data',
		'fieldtype': 'Select',
		'options': 'Text',
		'permlevel': 'Int',