Tweaks to trials.mas: hides breeding program table in non-accession stocks and rename...
[sgn.git] / mason / list / index.mas
blob7c6563decb856159038cc82c0ff1b8ecfa481e0c
2 <%args>
3 $user_id
4 </%args>
6 <& /util/import_javascript.mas, classes => [ 'CXGN.List' ] &>
8 <& /page/page_title.mas, title=>"Available lists" &>
9 <div id="list_div">
11 </div>
13 % if (! $user_id) { 
14   <& /generic_message.mas, message=>"Login required for viewing your lists" &>
15 % return;
16 % }
18 <script>
19   var list = new CXGN.List();
21   list.renderLists('list_div');
23 </script>
26 <textarea id="test_area" cols="40" rows="5" >
28 </textarea>
29 <br />
30 <script>
31 pasteListMenu("test_area");
32 </script>
34 <form action="javascript:addNewList('new_list_name')">
35 Create new list <input type="text" id="new_list_name" on/>
36 <input type="submit" name="add" />
37 </form>
40 <textarea id="add_to_list" >
41 </textarea>
42 <script>
43 addToListMenu('add_to_list');
44                             
45 </script>
47