Team:EPF-Lausanne/AddPage

From 2012.igem.org

(Difference between revisions)
(Created page with "{{:Team:EPF-Lausanne/Template/Header}} This page provides some helpers to create new pages (i.e. automatic insertion of the correct templates). {{:Team:EPF-Lausanne/Template/Fo...")
Line 2: Line 2:
This page provides some helpers to create new pages (i.e. automatic insertion of the correct templates).
This page provides some helpers to create new pages (i.e. automatic insertion of the correct templates).
 +
 +
<html>
 +
<ul>
 +
  <li>
 +
Add a protocol.
 +
<form action='index.php' method='GET' id='newProtocolForm'>
 +
Team:EPF-Lausanne/Protocol/<input type='text' id='title' value='' />
 +
<input type='hidden' id='hiddenTitle' name='title' />
 +
<input type='hidden' name='action' value='edit' />
 +
<input type='hidden' name='preload' value='Team:EPF-Lausanne/Template/NewProtocol' />
 +
<input type='submit' value='Create' />
 +
</form>
 +
<script type='text/javascript'>
 +
$("#newProtocolForm").submit(function(){
 +
$("#hiddenTitle").val("Team:EPF-Lausanne/Protocol/"+$("#title").val);
 +
});
 +
</script>
 +
  </li>
 +
</ul>
 +
</html>
{{:Team:EPF-Lausanne/Template/Footer}}
{{:Team:EPF-Lausanne/Template/Footer}}

Revision as of 20:08, 4 June 2012

This page provides some helpers to create new pages (i.e. automatic insertion of the correct templates).

  • Add a protocol.
    Team:EPF-Lausanne/Protocol/