view gis_gui/blocks/table.html.pt @ 273:d1b43624cc63

some hacks to make the european4D connection work
author dwinter
date Thu, 23 Feb 2012 11:44:38 +0100
parents 3a10287447b1
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 class="table_container">
      <!--  <tal:block tal:replace="structure here/dummy_table"/> -->
      <div class="table_wrapper">
        <table cellpadding="1" cellspacing="1" width="100%" class="datatable" rules="all">
          <tr><td>table loading...</td></tr>
        </table>
      </div>
      <br/>
      <input type="button" value="Create map layer" class="" tal:attributes="onClick string:blocks.addLayerBlock('blocks/layer.html?table=$table','layer','${table}')"/>
     <br/>
      <input type="button" value="Open Map in Europeana4D" class="" tal:attributes="onClick string:blocks.e4DOpen('Europeana4D','${table}',jQuery('#from_year_name').val(),jQuery('#until_year_name').val())"/>
      from data (or date):<input type="text" id="from_year_name">
      to date (if existing):<input type="text" id="until_year_name">
      
     
    </div>
 </tal:block>

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