view gis_gui/blocks/table @ 182:f97c3bdd9818

tables now with scrollbar
author fknauft
date Fri, 11 Feb 2011 15:23:36 +0100
parents 7f008e782563
children
line wrap: on
line source

<tal:block tal:define="table python:request.get('table',None);">
<tal:block metal:use-macro="here/template/macros/module">
  
  <tal:block metal:fill-slot="icon"> T </tal:block>
  <tal:block metal:fill-slot="title"> Table <i tal:content="table">"dummy data"</i> </tal:block>

  <tal:block metal:fill-slot="menu">

    <ul id="table_menu">
      <li>View  
	<ul><li>Show/Hide Column</li>
	</ul>
      </li>
      <li>Edit</li>
    </ul>

  </tal:block>
  
  <tal:block metal:fill-slot="content">
    <a name="table_scroll"> </a>
    <div id="table_container" class="table_container" tal:attributes="table table">
      <!--  <tal:block tal:replace="structure here/dummy_table"/> -->
      <div id="table_wrapper">
        <table cellpadding="1" cellspacing="1" class="datatable" id="dummy_table" border rules="all"  >
          <tr><td>table loading...</td></tr>
        </table>
      </div>
      <br/>
      <input type="button" value="create a map" onClick="addBlock('blocks/map?title=ChinaMap','')"/>
    </div>
 </tal:block>

</tal:block>
</tal:block>