Commit 8fb79b59 authored by Jim Fulton's avatar Jim Fulton

Added new hook for working with extensible vs non-extensible

property sheets.
parent 6e0ff01b
...@@ -14,9 +14,13 @@ ...@@ -14,9 +14,13 @@
<form action="." method="POST"> <form action="." method="POST">
<!--#if propertyMap--> <!--#if propertyMap-->
<p> <p>
The following properties are defined for this item. To <a href="#addpropform"> The following properties are defined for this item.
<!--#if property_extensible_schema__-->
To <a href="#addpropform">
add a new property</a>, enter a name, type and value for the new property add a new property</a>, enter a name, type and value for the new property
and click the &quot;Add&quot; button. To change property values, edit the and click the &quot;Add&quot; button.
<!--#/if-->
To change property values, edit the
values and click "Save Changes". values and click "Save Changes".
</p> </p>
<table border="0" cellspacing="0" cellpadding="2"> <table border="0" cellspacing="0" cellpadding="2">
...@@ -35,10 +39,10 @@ values and click "Save Changes". ...@@ -35,10 +39,10 @@ values and click "Save Changes".
<!--#if "'w' in _['sequence-item'].get('mode', 'awd')"--> <!--#if "'w' in _['sequence-item'].get('mode', 'awd')"-->
<!--#if "type in ('int', 'long', 'float', 'date')"--> <!--#if "type in ('int', 'long', 'float', 'date')"-->
<input type="text" name="<!--#var id-->:<!--#var type-->" size="35" <input type="text" name="<!--#var id-->:<!--#var type-->" size="35"
value="<!--#var "_[id]"-->"> value="<!--#var "getProperty(id)"-->">
<!--#elif "type=='string'"--> <!--#elif "type=='string'"-->
<input type="text" name="<!--#var id-->:string" size="35" <input type="text" name="<!--#var id-->:string" size="35"
value="<!--#var "_[id]" html_quote-->"> value="<!--#var "getProperty(id)" html_quote-->">
<!--#elif "type=='boolean'"--> <!--#elif "type=='boolean'"-->
<input type="checkbox" name="<!--#var id-->:boolean" size="35" <input type="checkbox" name="<!--#var id-->:boolean" size="35"
<!--#if "_[id]"-->CHECKED<!--#/if-->> <!--#if "_[id]"-->CHECKED<!--#/if-->>
...@@ -79,12 +83,15 @@ values and click "Save Changes". ...@@ -79,12 +83,15 @@ values and click "Save Changes".
<!--#else--> <!--#else-->
<p> <p>
There are currently no properties defined for this item. There are currently no properties defined for this item.
<!--#if property_extensible_schema__-->
To add a property, click the &quot;Add...&quot; button. To add a property, click the &quot;Add...&quot; button.
<!--#/if-->
</p> </p>
<!--#endif--> <!--#endif-->
</form> </form>
<!--#if property_extensible_schema__-->
<a name="addpropform"> <a name="addpropform">
<form action="<!--#var URL1-->/manage_addProperty" method="POST"> <form action="<!--#var URL1-->/manage_addProperty" method="POST">
<p> <p>
...@@ -122,6 +129,7 @@ button. ...@@ -122,6 +129,7 @@ button.
</tr> </tr>
</table> </table>
</form> </form>
<!--#/if-->
<br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br>
......
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