appy.gen: integrated tinyMCE; appy.gen: Ref.shownInfo can now specify column widths (ie, 'title*70%'); appy.gen: updated default page and field layouts; appy.gen: stop generating label for back references it not needed.

This commit is contained in:
Gaetan Delannay 2011-09-28 21:17:15 +02:00
parent 93619dafe1
commit c9353b46db
267 changed files with 40477 additions and 82 deletions

View file

@ -52,9 +52,10 @@
<br/>
</tal:editButtons>
<tal:comment replace="nothing">The upload field.</tal:comment>
<input type="file" size="30"
<input type="file"
tal:attributes="name string:${name}_file;
id string:${name}_file;"/>
id string:${name}_file;
size widget/width"/>
<script type="text/javascript"
tal:define="isDisabled python:test(value and value.size, 'true', 'false')"
tal:content="string: document.getElementById('${name}_file').disabled=$isDisabled;">

View file

@ -193,7 +193,8 @@
<tal:row repeat="obj objs">
<tr valign="middle" tal:define="odd repeat/obj/odd"
tal:attributes="class python:test(odd, 'even', 'odd')">
<td tal:repeat="widget widgets">
<td tal:repeat="widget widgets"
tal:attributes="width python: appyType['shownInfoWidths'][repeat['widget'].index]">
<tal:title condition="python: widget['name'] == 'title'">
<metal:showObjectTitle use-macro="app/skyn/widgets/ref/macros/objectTitle"/>
</tal:title>

View file

@ -47,24 +47,18 @@
style python: 'text-transform:%s' % widget['transform'];
type python: (widget['format'] == 3) and 'password' or 'text'"/>
</tal:line>
<tal:textarea condition="python: fmt == 1">
<tal:textarea condition="python: fmt in (1,2)">
<script tal:condition="python: fmt == 2"
tal:content="python: contextObj.getEditorInit(name)">
</script>
<textarea tal:attributes="id name; name name;
cols widget/width;
rows widget/height;
style python: 'text-transform:%s' % widget['transform'];"
style python: 'text-transform:%s' % widget['transform'];
class python: (fmt==2) and ('rich_%s' % name) or ''"
tal:content="python: test(inRequest, requestValue, value)">
</textarea>
</tal:textarea>
<tal:rich condition="python: fmt == 2">
<tal:editor define="editor python: member.getProperty('wysiwyg_editor','').lower();
macrosFile python: path('nocall:here/%s_wysiwyg_support' % editor);
fieldName name;
inputname name;
inputvalue python: test(inRequest, requestValue, value);
dummy python: request.set('%s_text_format' % name, 'text/html')">
<metal:box use-macro="macrosFile/macros/wysiwygEditorBox"/>
</tal:editor>
</tal:rich>
</metal:edit>
<tal:comment replace="nothing">Cell macro for a String.</tal:comment>