Commit 073a2095 authored by 's avatar

- fixed some HTML issues

- related cleanup
parent 612a941d
...@@ -56,69 +56,74 @@ property values, edit the values and click "Save Changes". ...@@ -56,69 +56,74 @@ property values, edit the values and click "Save Changes".
<dtml-in propertyMap mapping> <dtml-in propertyMap mapping>
<dtml-let type="not _.has_key('type') and 'string' or type" <dtml-let type="not _.has_key('type') and 'string' or type"
pdesc="propertyDescription(id)"> pdesc="propertyDescription(id)"
charset_tag="REQUEST['management_page_charset_tag']">
<tr title="&dtml-pdesc;"> <tr title="&dtml-pdesc;">
<td align="left" valign="top" width="16"> <td align="left" valign="top" width="16">
<dtml-if "'d' in _['sequence-item'].get('mode', 'awd')"> <dtml-if "'d' in _['sequence-item'].get('mode', 'awd')">
<input type="checkbox" name="_ids:<dtml-var "REQUEST['management_page_charset_tag']">string:list" value="&dtml-id;" <input type="checkbox" name="_ids:&dtml-charset_tag;string:list"
id="cb-&dtml-id;"> value="&dtml-id;" id="cb-&dtml-id;" />
<dtml-else> <dtml-else>
</dtml-if> </dtml-if>
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
<div class="form-label"> <div class="form-label">
<label for="cb-&dtml-id;"><dtml-var "propertyLabel(id)" html_quote></label> <dtml-if "'d' in _['sequence-item'].get('mode', 'awd')">
<label for="cb-&dtml-id;">
<dtml-else>
<label>
</dtml-if>
<dtml-var "propertyLabel(id)" html_quote></label>
</div> </div>
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
<dtml-if "'w' in _['sequence-item'].get('mode', 'awd')"> <dtml-if "'w' in _['sequence-item'].get('mode', 'awd')">
<dtml-if "type == 'int'"> <dtml-if "type == 'int'">
<input type="text" name="&dtml-id;:&dtml-type;" <input type="text" name="&dtml-id;:&dtml-type;"
size="35" value="<dtml-if "hasProperty(id)"><dtml-var "'%s' % getProperty(id)" html_quote></dtml-if>"> size="35" value="<dtml-if "hasProperty(id)"><dtml-var
"'%s' % getProperty(id)" html_quote></dtml-if>" />
<dtml-elif "type == 'long'"> <dtml-elif "type == 'long'">
<input type="text" name="&dtml-id;:&dtml-type;" size="35" <input type="text" name="&dtml-id;:&dtml-type;" size="35"
value="<dtml-if "hasProperty(id)"><dtml-var "('%s' % getProperty(id))" html_quote></dtml-if>"> value="<dtml-if "hasProperty(id)"><dtml-var
"('%s' % getProperty(id))" html_quote></dtml-if>" />
<dtml-elif "type in ('float', 'date')"> <dtml-elif "type in ('float', 'date')">
<input type="text" name="&dtml-id;:<dtml-var "REQUEST['management_page_charset_tag']">&dtml-type;" size="35" <input type="text" name="&dtml-id;:&dtml-charset_tag;&dtml-type;" size="35"
value="<dtml-var "getProperty(id)" html_quote>"> value="<dtml-var "getProperty(id)" html_quote>" />
<dtml-elif "type in ['string','ustring']"> <dtml-elif "type in ['string','ustring']">
<input type="text" name="&dtml-id;:<dtml-var "REQUEST['management_page_charset_tag']">&dtml-type;" size="35" <input type="text" name="&dtml-id;:&dtml-charset_tag;&dtml-type;" size="35"
value="<dtml-var "getProperty(id)" html_quote>"> value="<dtml-var "getProperty(id)" html_quote>" />
<dtml-elif "type=='boolean'"> <dtml-elif "type=='boolean'">
<input type="checkbox" name="&dtml-id;:boolean" size="35" <input type="checkbox" name="&dtml-id;:&dtml-type;" size="35"
<dtml-if "getProperty(id)">CHECKED</dtml-if>> <dtml-if "getProperty(id)">checked="checked"</dtml-if> />
<dtml-elif "type in ['tokens','utokens']"> <dtml-elif "type in ['tokens','utokens']">
<input type="text" name="&dtml-id;:<dtml-var "REQUEST['management_page_charset_tag']">&dtml-type;" size="35" <input type="text" name="&dtml-id;:&dtml-charset_tag;&dtml-type;" size="35"
value="<dtml-in "getProperty(id)">&dtml-sequence-item; </dtml-in>"> value="<dtml-in "getProperty(id)">&dtml-sequence-item; </dtml-in>" />
<dtml-elif "type in ['text','utext']"> <dtml-elif "type in ['text','utext']">
<textarea class="form-element" name="&dtml-id;:<dtml-var <textarea class="form-element" name="&dtml-id;:&dtml-charset_tag;&dtml-type;"
"REQUEST['management_page_charset_tag']">&dtml-type;"
rows="6" cols="35"><dtml-var "getProperty(id)" html_quote></textarea> rows="6" cols="35"><dtml-var "getProperty(id)" html_quote></textarea>
<dtml-elif "type in ['lines','ulines']"> <dtml-elif "type in ['lines','ulines']">
<textarea class="form-element" name="&dtml-id;:<dtml-var <textarea class="form-element" name="&dtml-id;:&dtml-charset_tag;&dtml-type;"
"REQUEST['management_page_charset_tag']">&dtml-type;" rows="6" rows="6" cols="35"><dtml-in "getProperty(id)">&dtml-sequence-item;<dtml-if
cols="35"><dtml-in "getProperty(id)">&dtml-sequence-item;<dtml-if
sequence-end><dtml-else><dtml-var "'\n'"></dtml-if></dtml-in></textarea> sequence-end><dtml-else><dtml-var "'\n'"></dtml-if></dtml-in></textarea>
<dtml-elif "type=='selection'"> <dtml-elif "type=='selection'">
<dtml-if "hasProperty(select_variable)"> <dtml-if "hasProperty(select_variable)">
<div class="form-element"> <div class="form-element">
<select name="&dtml-id;:<dtml-var "REQUEST['management_page_charset_tag']">text"> <select name="&dtml-id;:&dtml-charset_tag;text">
<dtml-in "getProperty(select_variable)"> <dtml-in "getProperty(select_variable)">
<option <option
<dtml-if "_['sequence-item']==getProperty(id)">SELECTED</dtml-if> <dtml-if "_['sequence-item']==getProperty(id)">selected="selected"</dtml-if>
>&dtml-sequence-item;</option> >&dtml-sequence-item;</option>
</dtml-in> </dtml-in>
</select> </select>
</div> </div>
<dtml-elif "_.has_key(select_variable)"> <dtml-elif "_.has_key(select_variable)">
<div class="form-element"> <div class="form-element">
<select name="&dtml-id;:<dtml-var "REQUEST['management_page_charset_tag']">text"> <select name="&dtml-id;:&dtml-charset_tag;text">
<dtml-in "_[select_variable]"> <dtml-in "_[select_variable]">
<option <option
<dtml-if "_['sequence-item']==getProperty(id)">SELECTED</dtml-if> <dtml-if "_['sequence-item']==getProperty(id)">selected="selected"</dtml-if>
>&dtml-sequence-item;</option> >&dtml-sequence-item;</option>
</dtml-in> </dtml-in>
</select> </select>
...@@ -133,24 +138,24 @@ property values, edit the values and click &quot;Save Changes&quot;. ...@@ -133,24 +138,24 @@ property values, edit the values and click &quot;Save Changes&quot;.
<dtml-if "hasProperty(select_variable)"> <dtml-if "hasProperty(select_variable)">
<div class="form-element"> <div class="form-element">
<select name="&dtml-id;:<dtml-var "REQUEST['management_page_charset_tag']">list:string" multiple <select name="&dtml-id;:&dtml-charset_tag;list:string" multiple="multiple"
size="<dtml-var "_.min(7, _.len(getProperty(select_variable)))">"> size="<dtml-var "_.min(7, _.len(getProperty(select_variable)))">">
<dtml-in "getProperty(select_variable)"> <dtml-in "getProperty(select_variable)">
<option<dtml-if <option<dtml-if
"getProperty(id) and (_['sequence-item'] in getProperty(id))" "getProperty(id) and (_['sequence-item'] in getProperty(id))"
> SELECTED</dtml-if > selected="selected"</dtml-if
>>&dtml-sequence-item;</option> >>&dtml-sequence-item;</option>
</dtml-in> </dtml-in>
</select> </select>
</div> </div>
<dtml-elif "_.has_key(select_variable)"> <dtml-elif "_.has_key(select_variable)">
<div class="form-element"> <div class="form-element">
<select name="&dtml-id;:<dtml-var "REQUEST['management_page_charset_tag']">list:string" multiple <select name="&dtml-id;:&dtml-charset_tag;list:string" multiple="multiple"
size="<dtml-var "_.min(7, _.len(_[select_variable]))">"> size="<dtml-var "_.min(7, _.len(_[select_variable]))">">
<dtml-in "_[select_variable]"> <dtml-in "_[select_variable]">
<option<dtml-if <option<dtml-if
"getProperty(id) and (_['sequence-item'] in getProperty(id))" "getProperty(id) and (_['sequence-item'] in getProperty(id))"
> SELECTED</dtml-if > selected="selected"</dtml-if
>>&dtml-sequence-item;</option> >>&dtml-sequence-item;</option>
</dtml-in> </dtml-in>
</select> </select>
...@@ -198,13 +203,15 @@ property values, edit the values and click &quot;Save Changes&quot;. ...@@ -198,13 +203,15 @@ property values, edit the values and click &quot;Save Changes&quot;.
<td> <td>
<dtml-comment> <dtml-comment>
This needs some community review before exposing it officially. This needs some community review before exposing it officially.
<input type="submit" name="manage_propertyTypeForm:method" value="Change Names/Types"> <input type="submit" name="manage_propertyTypeForm:method"
class="form-element" value="Change Names/Types" />
</dtml-comment> </dtml-comment>
</td> </td>
<dtml-else> <dtml-else>
</div>
</td>
<td>&nbsp;</td> <td>&nbsp;</td>
</dtml-if> </dtml-if>
</td>
</tr> </tr>
</table> </table>
...@@ -222,7 +229,8 @@ and value and click the &quot;Add&quot; button. ...@@ -222,7 +229,8 @@ and value and click the &quot;Add&quot; button.
<dtml-if property_extensible_schema__> <dtml-if property_extensible_schema__>
<form action="<dtml-var "REQUEST.URL1" html_quote>/manage_addProperty" method="post"> <form action="<dtml-var "REQUEST.URL1" html_quote>/manage_addProperty"
method="post">
<p class="form-help"> <p class="form-help">
To add a new property, enter a name, type and value for the new To add a new property, enter a name, type and value for the new
...@@ -237,7 +245,9 @@ property and click the &quot;Add&quot; button. ...@@ -237,7 +245,9 @@ property and click the &quot;Add&quot; button.
</div> </div>
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
<input type="text" name="id:<dtml-var "REQUEST['management_page_charset_tag']">string" size="30" value=""/> <input type="text" name="id:<dtml-var
"REQUEST['management_page_charset_tag']">string"
size="30" value="" />
</td> </td>
<td align="left" valign="top" class="form-label"> <td align="left" valign="top" class="form-label">
Type Type
...@@ -251,7 +261,7 @@ property and click the &quot;Add&quot; button. ...@@ -251,7 +261,7 @@ property and click the &quot;Add&quot; button.
<option>int</option> <option>int</option>
<option>lines</option> <option>lines</option>
<option>long</option> <option>long</option>
<option selected>string</option> <option selected="selected">string</option>
<option>text</option> <option>text</option>
<option>tokens</option> <option>tokens</option>
<dtml-if "REQUEST['management_page_charset'] == 'UTF-8'"> <dtml-if "REQUEST['management_page_charset'] == 'UTF-8'">
...@@ -272,11 +282,11 @@ property and click the &quot;Add&quot; button. ...@@ -272,11 +282,11 @@ property and click the &quot;Add&quot; button.
Value Value
</div> </div>
</td> </td>
<td colspan=2 align="left" valign="top"> <td colspan="2" align="left" valign="top">
<dtml-if "REQUEST['management_page_charset'] == 'UTF-8'"> <dtml-if "REQUEST['management_page_charset'] == 'UTF-8'">
<input type="text" name="value:UTF-8:ustring" size="30" /> <input type="text" name="value:UTF-8:ustring" size="30" />
<dtml-else> <dtml-else>
<input type="text" name="value:string" size="30" /> <input type="text" name="value:string" size="30" />
</dtml-if> </dtml-if>
</td> </td>
<td align="right" valign="top"> <td align="right" valign="top">
......
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