Grid for prices fixed
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3025 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									e2e8370cf4
								
							
						
					
					
						commit
						2a07e99609
					
				
					 3 changed files with 5 additions and 5 deletions
				
			
		|  | @ -59,7 +59,7 @@ | ||||||
|         </tal:errors> |         </tal:errors> | ||||||
|         <tr> |         <tr> | ||||||
|           <tal:field> |           <tal:field> | ||||||
|             <td style="padding: 4px; border-top: none" |             <td style="padding: 4px; border-top: none; vertical-align: top" | ||||||
|                 tal:attributes="title field/description"> |                 tal:attributes="title field/description"> | ||||||
|               <b tal:content="field/title">...</b><span |               <b tal:content="field/title">...</b><span | ||||||
|                     tal:condition="field/required"> *</span> |                     tal:condition="field/required"> *</span> | ||||||
|  |  | ||||||
|  | @ -64,7 +64,7 @@ class GridFieldInstance(ListFieldInstance): | ||||||
|         for row in v: |         for row in v: | ||||||
|             for k, vr in row.items(): |             for k, vr in row.items(): | ||||||
|                 if isinstance(vr, basestring): |                 if isinstance(vr, basestring): | ||||||
|                     row[k] = vr.replace('\n', '\\n') |                     row[k] = vr.replace('\n', '\\n').replace('"', '\\"') | ||||||
|         empty = {} |         empty = {} | ||||||
|         for fi in self.columnFieldInstances: |         for fi in self.columnFieldInstances: | ||||||
|             default = fi.default |             default = fi.default | ||||||
|  |  | ||||||
|  | @ -21,7 +21,7 @@ | ||||||
|     <textarea rows="3" style="display: none" |     <textarea rows="3" style="display: none" | ||||||
|               tal:attributes="name name; id name"> |               tal:attributes="name name; id name"> | ||||||
|     </textarea> |     </textarea> | ||||||
|     <table dojoType="dojox.grid.DataGrid" query="{name: '*'}" |     <table dojoType="dojox.grid.DataGrid" | ||||||
|            style="width: 100%; height: 12em" |            style="width: 100%; height: 12em" | ||||||
|            singleClickEdit="true" |            singleClickEdit="true" | ||||||
|            tal:attributes="id string:grid_$name; |            tal:attributes="id string:grid_$name; | ||||||
|  | @ -34,7 +34,7 @@ | ||||||
|                 tal:content="column/title">Column Title</th> |                 tal:content="column/title">Column Title</th> | ||||||
|           </tal:header> |           </tal:header> | ||||||
|         </tr></thead> |         </tr></thead> | ||||||
|     </table> |     </table><br /> | ||||||
| </metal:input> | </metal:input> | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 werners
						werners