Team:EPF-Lausanne/AddPage

From 2012.igem.org

(Difference between revisions)
Line 11: Line 11:
   </li>
   </li>
   <li>
   <li>
-
Add a protocol.
+
Add a protocol.<br/>
-
<form action='/wiki/index.php' method='GET' id='newProtocolForm'>
+
Team:EPF-Lausanne/Protocol/<input type='text' id='protocolTitle' value='' /><input type='button' id='protocolButton' value='Create' />
-
Team:EPF-Lausanne/Protocol/<input type='text' id='protocolTitle' value='' />
+
<script type='text/javascript'>EPFL.registerNewPageButton("#pageTitle", "#pageButton", "Team:EPF-Lausanne/Protocol", "Team:EPF-Lausanne/Template/NewProtocol");</script>
-
<input type='hidden' id='protocolHiddenTitle' 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(){
+
-
$("#protocolHiddenTitle").val("Team:EPF-Lausanne/Protocol/"+$("#protocolTitle").val());
+
-
return true;
+
-
});
+
-
</script>
+
   </li>
   </li>
   <li>
   <li>

Revision as of 22:39, 4 June 2012

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

  • Add a standard page.
    Team:EPF-Lausanne/
  • Add a protocol.
    Team:EPF-Lausanne/Protocol/
  • Add a notebook entry.
    Go to the notebook tab and click on the correct date.