Commit e227e453 authored by Rafael Monnerat's avatar Rafael Monnerat

Improved Planning Box CSS. This makes Planning Box more compatible with erp5 web

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16598 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8db2c5c9
...@@ -163,12 +163,13 @@ else:\n ...@@ -163,12 +163,13 @@ else:\n
main_axis_step = float(size_planning_width) / float(basic.main_axis_info[\'bound_axis_groups\'])\n main_axis_step = float(size_planning_width) / float(basic.main_axis_info[\'bound_axis_groups\'])\n
\n \n
# defining planning area CSS class\n # defining planning area CSS class\n
planning_dict= {\n # XXX it can be moved to globals\n
planning_dict = {\n
\'position\': \'relative\',\n \'position\': \'relative\',\n
\'border-style\': \'solid\',\n \'border-style\': \'solid\',\n
\'border-color\': \'#d5e6de\',\n \'border-color\': \'inherit\',\n
\'border-width\': 0,\n \'border-width\': 0,\n
\'background\': \'#d5e6de\',\n \'background\': \'inherit\',\n
\'width\': size_planning_width + size_border_width_left + size_y_axis_width + size_y_axis_space + 20,\n \'width\': size_planning_width + size_border_width_left + size_y_axis_width + size_y_axis_space + 20,\n
\'height\': size_header_height + size_x_axis_height + size_x_axis_space + size_planning_height + 100,\n \'height\': size_header_height + size_x_axis_height + size_x_axis_space + size_planning_height + 100,\n
\'margin-top\': 0,\n \'margin-top\': 0,\n
...@@ -186,9 +187,9 @@ for axis in (planning.Y, planning.X):\n ...@@ -186,9 +187,9 @@ for axis in (planning.Y, planning.X):\n
axis_dict= {\n axis_dict= {\n
\'position\': \'absolute\',\n \'position\': \'absolute\',\n
\'border-style\': \'solid\',\n \'border-style\': \'solid\',\n
\'border-color\': \'#53676e\',\n \'border-color\': \'inherit\',\n
\'border-width\': 0,\n \'border-width\': 0,\n
\'background\': \'#d5e6de\',\n \'background\': \'inherit\',\n
}\n }\n
# adding cursors position informations\n # adding cursors position informations\n
axis_previous = {\n axis_previous = {\n
...@@ -457,10 +458,10 @@ for axis_group in planning.main_axis.axis_group:\n ...@@ -457,10 +458,10 @@ for axis_group in planning.main_axis.axis_group:\n
for sec_axis_group in planning.secondary_axis.axis_group:\n for sec_axis_group in planning.secondary_axis.axis_group:\n
sec_axis_group_dict={\n sec_axis_group_dict={\n
\'position\': \'absolute\',\n \'position\': \'absolute\',\n
\'border-color\': \'#53676e\',\n \'border-color\': \'inherit\',\n
\'border-style\': \'solid\',\n \'border-style\': \'solid\',\n
\'border-width\': 1,\n \'border-width\': 1,\n
\'background\': \'#d5e6de\',\n \'background\': \'inherit\',\n
}\n }\n
# info definition\n # info definition\n
sec_axis_info_dict= {\n sec_axis_info_dict= {\n
......
...@@ -91,17 +91,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -91,17 +91,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
\n \n
"""\n """\n
This script is aimed to generate the CSS code needed to display correctly the\n This script is aimed to generate the CSS code needed to display correctly the\n
PlaningBox in HTML style (i.e using HTML code + CSS class for positionning).\n PlanningBox in HTML style (i.e using HTML code + CSS class for positionning).\n
The process is based on the strucutre passed in parameter (i.e \'structure\').\n The process is based on the strucutre passed in parameter (i.e \'structure\').\n
\n \n
Beware this only generates CSS code, and need to use the \'planning_coordinates\'\n Beware this only generates CSS code, and need to use the \'planning_coordinates\'\n
script (\'planning_css\') to have CSS compliant code, no HTML generation is\n script (\'planning_css\') to have CSS compliant code, no HTML generation is\n
done in this script.\n done in this script.\n
"""\n """\n
\n
\n
properties_structure = context.planning_coordinates(basic, planning)\n properties_structure = context.planning_coordinates(basic, planning)\n
\n
"""\n """\n
- the properties_structure returned from the planning_coordinates script is somehow\n - the properties_structure returned from the planning_coordinates script is somehow\n
special : it is a dict defined by the areas of data\n special : it is a dict defined by the areas of data\n
...@@ -147,8 +144,6 @@ else:\n ...@@ -147,8 +144,6 @@ else:\n
# no unvalidated block, using actual properties\n # no unvalidated block, using actual properties\n
pass\n pass\n
\n \n
\n
\n
# build list from dictionnary structure\n # build list from dictionnary structure\n
# this list will e converted to a string afterwards\n # this list will e converted to a string afterwards\n
returned_list = []\n returned_list = []\n
......
445 446
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment