<?xml version="1.0"?>
<ZopeData>
  <record id="1" aka="AAAAAAAAAAE=">
    <pickle>
      <tuple>
        <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
        <tuple/>
      </tuple>
    </pickle>
    <pickle>
      <dictionary>
        <item>
            <key> <string>__ac_local_roles__</string> </key>
            <value>
              <none/>
            </value>
        </item>
        <item>
            <key> <string>_bind_names</string> </key>
            <value>
              <object>
                <klass>
                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
                </klass>
                <tuple/>
                <state>
                  <dictionary>
                    <item>
                        <key> <string>_asgns</string> </key>
                        <value>
                          <dictionary>
                            <item>
                                <key> <string>name_subpath</string> </key>
                                <value> <string>traverse_subpath</string> </value>
                            </item>
                          </dictionary>
                        </value>
                    </item>
                  </dictionary>
                </state>
              </object>
            </value>
        </item>
        <item>
            <key> <string>_owner</string> </key>
            <value>
              <none/>
            </value>
        </item>
        <item>
            <key> <string>_text</string> </key>
            <value> <string encoding="cdata"><![CDATA[

<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
           xmlns:metal="http://xml.zope.org/namespaces/metal"\n
           xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n
  <tal:block tal:replace="nothing">\n
<!--\n
This Page template is aimed to generate the HTML code necessary to display correctly the\n
PlaningBox. The process is based on the strucutre passed in parameter (i.e options/struct)\n
Beware this only generates the HTML code, no CSS generation is done in this script\n
-->\n
  </tal:block>\n
  <tal:block tal:define=" basic options/basic;\n
             planning options/planning;\n
             address python: basic.context.absolute_url()">\n
    <!-- hidden fields holding some usefull data-->\n
    <input type="hidden" name="list_selection_name" value="PlanningView" tal:attributes="value python:basic.field.get_value(\'selection_name\')" />\n
    <!-- setPage needs \'listbox_uid:list\'-->\n
    <input type="hidden" name="listbox_uid:list" />\n
    <!-- block_moved_list -->\n
    <input type="hidden" name="previous_block_moved" value="None"\n
           tal:attributes="value python:basic.REQUEST.get(\'previous_block_moved\',\'\')" />\n
    <input type="hidden" name="block_moved" />\n
\n
    <!-- Planning\'s header -->\n
    <div class="planning_box">\n
     <div class="planning_box_header">\n
            <b i18n:translate="" i18n:domain="ui"> \n
              <tal:block tal:replace="structure python:basic.field.get_value(\'title\')" /> \n
            </b>\n
            <tal:block tal:repeat="nb python:range(3)"> &nbsp; <!-- Adding spaces --> </tal:block>\n
            \n
            <b tal:replace="nothing"><!-- report path selection --></b>\n
            <select name="report_root_url" onChange="submitAction(this.form,\'/setReportRoot\')"\n
                    tal:attributes="onChange string:submitAction(this.form,\'${address}/setReportRoot\')">\n
              <tal:block tal:condition="python:basic.selection is None"\n
                         tal:define="global selection_report_path python:basic.report_root_list[0][0]" />\n
              <tal:block tal:condition="python:basic.selection is not None"\n
                         tal:define="global selection_report_path python:basic.selection.report_path" />\n
              <tal:block tal:repeat="report_root_element python:basic.report_root_list">\n
                <tal:block tal:condition="python:report_root_element[0]==selection_report_path">\n
                  <b tal:replace="nothing">actual value is selected</b>\n
                  <option i18n:translate="" i18n:domain="ui" selected="selected" value="None"\n
                          tal:attributes="value python:report_root_element[0]"\n
                          tal:content="structure python:report_root_element[1]">_</option>\n
                </tal:block>\n
                <tal:block tal:condition="python:report_root_element[0]!=selection_report_path">\n
                  <b tal:replace="nothing">actual value is not selected</b>\n
                  <option i18n:translate="" i18n:domain="ui" value="None"\n
                          tal:attributes="value python:report_root_element[0]"\n
                          tal:content="structure python:report_root_element[1]">_</option>\n
                </tal:block>\n
              </tal:block>\n
            </select>\n
\n
            <tal:block tal:repeat="nb python:range(8)"> &nbsp; </tal:block>\n
\n
            <tal:block tal:condition="python:planning.report_axis == planning.Y">\n
              <tal:block i18n:translate="" i18n:domain="ui"> Y Axis </tal:block>\n
            </tal:block>\n
            <tal:block tal:condition="python:planning.report_axis != planning.Y">\n
              <tal:block i18n:translate="" i18n:domain="ui"> X Axis </tal:block>\n
            </tal:block>\n
\n
            <tal:block tal:repeat="nb python:range(1)"> &nbsp; </tal:block>\n
\n
            <b tal:replace="nothing">\n
              <!-- page selection need to be implemented here for that will use structure.basic-->\n
            </b>\n
\n
            <tal:block tal:condition="python:basic.report_axis_info[\'bound_start\']!=0">\n
              <b tal:replace="nothing"> previous page exists </b>\n
              <input type="image" src="/images/1leftarrowv.png" title="Previous Page" name="" border="0"\n
                     tal:attributes="src string:${address}/images/1leftarrowv.png;\n
                     name string:previousPage:method" />\n
            </tal:block>\n
            <select name="list_start" title="Change Page" size="1"\n
                    onChange=""\n
                    tal:condition="python:basic.report_axis_info[\'bound_page_total\'] &gt; 1"\n
                    tal:attributes="onChange string:submitAction(this.form,\'${address}/setPage\')">\n
              <tal:block tal:repeat="current_page_number python:range(basic.report_axis_info[\'bound_page_total\']+1)[1:]">\n
                <tal:block tal:condition="python:current_page_number==basic.report_axis_info[\'bound_page_current\']">\n
                  <b tal:replace="nothing"> actual page is selected </b>\n
                  <option selected="selected" value="None"\n
                          tal:attributes="value python:(current_page_number - 1)*basic.report_axis_info[\'bound_axis_groups\']"\n
                          tal:content="structure python:str(current_page_number) + \' of \' +  str(basic.report_axis_info[\'bound_page_total\'])">page</option>\n
                </tal:block>\n
                <tal:block tal:condition="python:current_page_number!=basic.report_axis_info[\'bound_page_current\']">\n
                  <b tal:replace="nothing"> actual page is not selected </b>\n
                  <option value="None"\n
                          tal:attributes="value python:(current_page_number - 1)*basic.report_axis_info[\'bound_axis_groups\']"\n
                          tal:content="structure python:str(current_page_number) + \' of \' + str(basic.report_axis_info[\'bound_page_total\'])">page</option>\n
                </tal:block>\n
              </tal:block>\n
            </select>\n
\n
            <tal:block tal:condition="python:basic.report_axis_info[\'bound_stop\']!=basic.report_axis_info[\'bound_end\']">\n
              <b tal:replace="nothing"> next page exists </b>\n
              <input type="image" src="/images/1rightarrowv.png" title="Next Page" name="" border="0"\n
                     tal:attributes="src string:${address}/images/1rightarrowv.png;\n
                     name string:nextPage:method" />\n
            </tal:block>\n
\n
            <tal:block tal:repeat="nb python:range(8)"> &nbsp; </tal:block>\n
\n
            <tal:block tal:condition="python:planning.report_axis == planning.Y">\n
              <tal:block i18n:translate="" i18n:domain="ui"> X Axis </tal:block>\n
            </tal:block>\n
            <tal:block tal:condition="python:planning.report_axis != planning.Y">\n
              <tal:block i18n:translate="" i18n:domain="ui"> Y Axis </tal:block>\n
            </tal:block>\n
\n
            <tal:block tal:repeat="nb python:range(1)"> &nbsp; </tal:block>\n
\n
           <select name="lane_path" onChange="submitAction(this.form,\'/setLanePath\')"\n
                    tal:attributes="onChange string:submitAction(this.form,\'${address}/setLanePath\')">\n
              <tal:block tal:condition="python:basic.selection is None"\n
                         tal:define="global selection_report_path python:basic.lane_root_list[0][0]" />\n
              <tal:block tal:condition="python:basic.selection is not None"\n
                         tal:define="global selection_lane_path python:basic.selection.getParams().get(\'lane_path\')" />\n
              <tal:block tal:repeat="lane_root_element python:basic.lane_root_list">\n
                <tal:block tal:condition="python:lane_root_element[0]==selection_lane_path">\n
                  <b tal:replace="nothing">actual value is selected</b>\n
                  <option i18n:translate="" i18n:domain="ui" selected="selected" value="None"\n
                          tal:attributes="value python:lane_root_element[0]"\n
                          tal:content="structure python:lane_root_element[1]">_</option>\n
                </tal:block>\n
                <tal:block tal:condition="python:lane_root_element[0]!=selection_lane_path">\n
                  <b tal:replace="nothing">actual value is not selected</b>\n
                  <option i18n:translate="" i18n:domain="ui" value="None"\n
                          tal:attributes="value python:lane_root_element[0]"\n
                          tal:content="structure python:lane_root_element[1]">_</option>\n
                </tal:block>\n
              </tal:block>\n
            </select>\n
            <tal:block tal:define="form_id python:\'%s\' % (basic.form.id);\n
                       selection_name python:basic.field.get_value(\'selection_name\');\n
                       zoom_level python:basic.selection.getParams().get(\'lane_path\');\n
                       today python:\'%s/%s/%s\' % (str(DateTime().year()), str(DateTime().month()),str(DateTime().day()))">\n
              <a tal:attributes="href python: \'%s/setLanePath?form_id=%s&amp;list_selection_name=%s&amp;bound_start=%s\'\n
                 % (context.absolute_url(), form_id,selection_name,today)">\n
                <img src="/images/jump.png" alt="Jump" name="JumpToCurrentDay"\n
                  tal:attributes="src string:${address}/images/jump.png; \n
                                  title python: here.Base_translateString(\'Jump to Current Day\')"/>\n
              </a>\n
              </tal:block>\n
       </div>\n
      <!-- div class="planning_box" -->\n
      <!-- planning structure (axis and group representation)-->\n
      <div tal:repeat="axis python:(planning.report_axis,planning.lane_axis)"\n
           tal:attributes="id python:axis.name">\n
        <!-- groups of the current axis-->\n
        <tal:block tal:repeat="axis_group python:axis.axis_group">\n
          <div tal:attributes="id python:axis_group.name;\n
               title python:axis_group.tooltip">\n
            <!-- title of the current group-->\n
            <a tal:attributes="href python:axis_group.info_title.link;\n
               id python:axis_group.name + \'_info\'">\n
              <tal:block tal:content="python:axis_group.info_title.title" />\n
            </a>\n
          </div>\n
          <!-- depth of the current group -->\n
          <div tal:repeat="depth python:range(axis_group.depth)"\n
               tal:attributes="id python: axis_group.name + \'_depth_\' + str(depth)">\n
          </div>\n
        </tal:block>\n
        <tal:condition tal:condition="python:axis==planning.X">\n
          <tal:block tal:define="global previous_src string:${address}/images/1leftarrowv.png;\n
                     global next_src string:${address}/images/1rightarrowv.png">\n
          </tal:block>\n
        </tal:condition>\n
        <tal:condition tal:condition="python:axis==planning.Y">\n
          <tal:block tal:define="global previous_src string:${address}/images/1toparrow.png;\n
                     global next_src string:${address}/images/1bottomarrow.png">\n
          </tal:block>\n
        </tal:condition>\n
        <!-- widgets of the current axis -->\n
        <tal:block tal:condition="python:axis==planning.report_axis">\n
          <!-- current axis is report axis-->\n
          <tal:block tal:condition="python:basic.report_axis_info[\'bound_start\']!=0">\n
            <!-- previous page exists -->\n
            <input type="image" src="/images/1leftarrowv.png" title="Previous Page" name="" border="0"\n
                   tal:attributes="src previous_src;\n
                   name string:previousPage:method;\n
                   id python:axis.name + \'_previous\'" />\n
          </tal:block>\n
          <tal:block tal:condition="python:basic.report_axis_info[\'bound_stop\']!=basic.report_axis_info[\'bound_end\']">\n
            <!-- next page exists -->\n
            <input type="image" src="/images/1rightarrowv.png" title="Next Page" name="" border="0"\n
                   tal:attributes="src next_src;\n
                   name string:nextPage:method;\n
                   id python:axis.name + \'_next\'" />\n
          </tal:block>\n
          <!-- inserting depth widget -->\n
          <div tal:condition= "python:axis==planning.X"\n
               tal:define="url python:\'%s/%s\' % (basic.context.absolute_url(),basic.form.id);\n
               selection_name python:basic.field.get_value(\'selection_name\')"\n
               tal:attributes="id python:axis.name + \'_depth\'">\n
            <a tal:repeat="unfold_level python:range(0,4)"\n
               tal:attributes="href python:\'%s?selection_index=&amp;selection_name=%s&amp;ignore_layout:int=0&amp;report_depth:int=%s\' % (url,selection_name,unfold_level)"\n
               tal:content="structure python:str(unfold_level) + \'&lt;br&gt;\'">\n
              0\n
            </a>\n
          </div>\n
          <div tal:condition= "python:axis==planning.Y"\n
               tal:define="url python:\'%s/%s\' % (basic.context.absolute_url(),basic.form.id);\n
               selection_name python:basic.field.get_value(\'selection_name\')"\n
               tal:attributes="id python:axis.name + \'_depth\'">\n
            <a tal:repeat="unfold_level python:range(0,4)"\n
               tal:attributes="href python:\'%s?selection_index=&amp;selection_name=%s&amp;ignore_layout:int=0&amp;report_depth:int=%s\' % (url,selection_name,unfold_level)"\n
               tal:content="structure python:str(unfold_level) + \'&nbsp;\'">\n
              0\n
            </a>\n
          </div>\n
        </tal:block>\n
        <tal:block tal:condition="python:axis==planning.lane_axis">\n
          <!-- Lane page-->\n
          <!-- previous page exists -->\n
          <input type="image" src="/images/1leftarrowv.png" title="Previous Lane Page" name="" border="0"\n
                 tal:attributes="src previous_src;\n
                 name string:previousLanePage:method;\n
                 id python:axis.name + \'_previous\'" />\n
          <!-- next page exists -->\n
          <input type="image" src="/images/1rightarrowv.png" title="Next Lane Page" name="" border="0"\n
                 tal:attributes="src next_src;\n
                 name string:nextLanePage:method;\n
                 id python:axis.name + \'_next\'" />\n
        </tal:block>\n
      </div>\n
      <!-- planning content-->\n
      <div class="planning_content">\n
        <!-- display report axis lines -->\n
        <tal:block tal:repeat="axis_group python:planning.report_axis.axis_group">\n
          <div tal:attributes="id python:axis_group.name + \'_line\'"></div>\n
          <b tal:replace="nothing">\n
            <!-- display report axis sub_lines if necessary --></b>\n
          <tal:block tal:condition="python:axis_group.axis_element_number &gt; 1">\n
            <div tal:repeat="axis_element_number python:range(axis_group.axis_element_number)[1:]"\n
                 tal:attributes="id python:axis_group.name + \'_line_\' + str(axis_element_number)">\n
            </div>\n
          </tal:block>\n
        </tal:block>\n
        <!-- display lane axis lines -->\n
        <div tal:repeat="axis_group python:planning.lane_axis.axis_group"\n
             tal:attributes="id python:axis_group.name + \'_line\'"></div>\n
        <!-- display blocks -->\n
        <tal:block tal:repeat="block python:planning.content">\n
          <div tal:condition="python:block.property_dict[\'stat\']== 0"\n
               tal:attributes="id python:block.name;\n
               ondblclick string:showGrips();\n
               title python:block.title;\n
               style python:\'text-align:center\'">\n
            <tal:block tal:condition="python:block.zone == 1">\n
              <tal:block tal:repeat="area python:block.info.keys()">\n
                <tal:block tal:define="info_area python:area.split(\'_\')[1]">\n
                  <!-- tal:attributes="id python:info_area"> <! python:block.name + \'_\' + area"-->\n
                  <tal:block tal:condition="python:block.info[area].info != \'\'">\n
                    <tal:block tal:condition="python:info_area!=\'center\'">\n
                      <a tal:condition="python:block.info[area].info != \'__\'"\n
                         tal:content="python:block.info[area].info"\n
                         tal:attributes="href python:block.info[area].link;\n
                         class python:\'planning_box_\' + info_area">\n
                      </a>\n
                      <a tal:condition="python:block.info[area].info == \'__\'"\n
                         tal:attributes="href python:block.info[area].link;\n
                         class python:\'planning_box_\' + info_area">\n
                        <img tal:attributes="src python:basic.context.getUrl() + \'/images/question.png\'"\n
                             height="15" width="15" />\n
                      </a>\n
                    </tal:block>\n
                    <tal:block tal:condition="python:info_area==\'center\'">\n
                      <div tal:attributes="class python:\'planning_box_\' + info_area">\n
                        <a tal:condition="python:block.info[area].info != \'__\'"\n
                           tal:content="python:block.info[area].info"\n
                           tal:attributes="href python:block.info[area].link">\n
                        </a>\n
                        <a tal:condition="python:block.info[area].info == \'__\'"\n
                           tal:attributes="href python:block.info[area].link"\n
                           tal:content="python:\'.\'">\n
                          <!-- not used any more\n
                               &lt;img tal:attributes="src python:basic.here.getUrl() + \'/images/question.png\'"\n
                               height="15" width="15" /&gt;\n
                               -->\n
                        </a>\n
                      </div>\n
                    </tal:block>\n
                  </tal:block>\n
                </tal:block>\n
              </tal:block>\n
            </tal:block>\n
          </div>\n
          <div tal:condition="python:block.property_dict[\'stat\']== 1"\n
               tal:attributes="id python:block.name;\n
               title python:block.title">\n
          </div>\n
        </tal:block>\n
      </div>\n
      <!-- generic div used for redimensionning-->\n
      <div id="top" style="position:absolute; width:5px;height:5px; background:#a45d10"></div>\n
      <div id="right" style="position:absolute; width:5px;height:5px; background:#a45d10"></div>\n
      <div id="bottom" style="position:absolute; width:5px;height:5px; background:#a45d10"></div>\n
      <div id="left" style="position:absolute; width:5px;height:5px; background:#a45d10"></div>\n
      <!-- declaring DTML properties -->\n
      <tal:block tal:replace="structure python:context.planning_dhtml(planning=planning)" />\n
      <!--/div-->\n
    </div>\n
  </tal:block>\n
</tal:block>\n


]]></string> </value>
        </item>
        <item>
            <key> <string>content_type</string> </key>
            <value> <string>text/html</string> </value>
        </item>
        <item>
            <key> <string>expand</string> </key>
            <value> <int>0</int> </value>
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>planning_content</string> </value>
        </item>
        <item>
            <key> <string>title</string> </key>
            <value> <string></string> </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
