Commit bb2e6955 authored by Jim Fulton's avatar Jim Fulton

Added code to:

  - ommit the add form if there are no meta-types
    (or, in the future, no meta-types that the user can add)

  - ommit the select list of there is only one choice.
parent 9f59b688
......@@ -68,6 +68,9 @@ There are currently no items in <EM><!--#var title_or_id--></EM>
<!--#/if-->
</FORM>
<!--#if all_meta_types-->
<!--#if "_.len(all_meta_types) > 1"-->
<TABLE>
<TR>
<TD VALIGN="TOP">
......@@ -85,6 +88,17 @@ There are currently no items in <EM><!--#var title_or_id--></EM>
</TD>
</TR>
</TABLE>
<!--#else-->
<FORM ACTION="<!--#var URL1-->/" METHOD="GET">
To add a new item click &quot;Add&quot;.
<!--#in all_meta_types mapping sort=name-->
<input type=hidden name=":method" value="<!--#var action-->">
<INPUT TYPE="SUBMIT" VALUE=" Add ">
<!--#/in all_meta_types-->
</FORM>
<!--#/if-->
<!--#/if-->
<!--#if update_menu-->
<SCRIPT LANGUAGE="javascript">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment