Team:EPF-Lausanne/AddPage

From 2012.igem.org

(Difference between revisions)
Line 7: Line 7:
   <li>
   <li>
Add a protocol.
Add a protocol.
-
<form action='index.php' method='GET' id='newProtocolForm'>
+
<form action='/index.php' method='GET' id='newProtocolForm'>
Team:EPF-Lausanne/Protocol/<input type='text' id='title' value='' />
Team:EPF-Lausanne/Protocol/<input type='text' id='title' value='' />
<input type='hidden' id='hiddenTitle' name='title' />
<input type='hidden' id='hiddenTitle' name='title' />
Line 16: Line 16:
<script type='text/javascript'>
<script type='text/javascript'>
$("#newProtocolForm").submit(function(){
$("#newProtocolForm").submit(function(){
-
$("#hiddenTitle").val("Team:EPF-Lausanne/Protocol/"+$("#title").val);
+
$("#hiddenTitle").val("Team:EPF-Lausanne/Protocol/"+$("#title").val());
 +
return true;
});
});
</script>
</script>

Revision as of 20:10, 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/