Commit 65e4b130 authored by Ivan Tyagov's avatar Ivan Tyagov

Add workflow states styling. Show a form field (i.e. version,language, etc..)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39596 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e41c0437
......@@ -230,7 +230,7 @@ a:hover { \n
\tbackground-position: 100% 50%;\n
}\n
\n
a.draft:link, a.draft:active, a.draft:visited, .draft { \n
a.draft:link, a.draft:active, a.draft:visited { \n
color:#4574cb; \n
}\n
\n
......@@ -429,6 +429,20 @@ div.searchDetails a.owner-link{\n
div.searchDetails a.modification-date-link{\n
color: inherit;\n
}\n
\n
/* workflow states colors*/\n
.draft-state { \n
color:#4574cb; \n
}\n
.published-state, .released-state, .shared-state { \n
color: green; \n
}\n
.hidden-state{\n
color:red;\n
}\n
.archived-state{\n
color:gray;\n
}\n
]]></unicode> </value>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="StringField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
<global name="StringField" module="Products.Formulator.StandardFields"/>
</pickle>
<pickle>
<dictionary>
......@@ -266,10 +263,7 @@
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
......@@ -282,16 +276,13 @@
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: request.get(\'current_web_document\', here).isDocument()</string> </value>
<value> <string>python: request.get(\'current_web_document\', here).isDocument() and request.get(\'current_web_document\', here).getLanguage() is not None</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="StringField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
<global name="StringField" module="Products.Formulator.StandardFields"/>
</pickle>
<pickle>
<dictionary>
......@@ -268,26 +265,20 @@
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>request/current_web_document/getValidationState</string> </value>
<value> <string>python: \'%s-state\' %request[\'current_web_document\'].getValidationState()</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
......@@ -300,10 +291,7 @@
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="StringField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
<global name="StringField" module="Products.Formulator.StandardFields"/>
</pickle>
<pickle>
<dictionary>
......@@ -266,10 +263,7 @@
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
......@@ -282,16 +276,13 @@
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: request.get(\'current_web_document\', here).isDocument()</string> </value>
<value> <string>python: request.get(\'current_web_document\', here).isDocument() and request.get(\'current_web_document\', here).getVersion() not in (\'\',None,)</string> </value>
</item>
</dictionary>
</pickle>
......
1645
\ No newline at end of file
1646
\ No newline at end of file
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