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 ...@@ -230,7 +230,7 @@ a:hover { \n
\tbackground-position: 100% 50%;\n \tbackground-position: 100% 50%;\n
}\n }\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 color:#4574cb; \n
}\n }\n
\n \n
...@@ -429,6 +429,20 @@ div.searchDetails a.owner-link{\n ...@@ -429,6 +429,20 @@ div.searchDetails a.owner-link{\n
div.searchDetails a.modification-date-link{\n div.searchDetails a.modification-date-link{\n
color: inherit;\n color: inherit;\n
}\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> ]]></unicode> </value>
......
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="StringField" module="Products.Formulator.StandardFields"/>
<global name="StringField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -266,10 +263,7 @@ ...@@ -266,10 +263,7 @@
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -282,16 +276,13 @@ ...@@ -282,16 +276,13 @@
</record> </record>
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="StringField" module="Products.Formulator.StandardFields"/>
<global name="StringField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -268,26 +265,20 @@ ...@@ -268,26 +265,20 @@
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -300,10 +291,7 @@ ...@@ -300,10 +291,7 @@
</record> </record>
<record id="4" aka="AAAAAAAAAAQ="> <record id="4" aka="AAAAAAAAAAQ=">
<pickle> <pickle>
<tuple> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
......
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="StringField" module="Products.Formulator.StandardFields"/>
<global name="StringField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -266,10 +263,7 @@ ...@@ -266,10 +263,7 @@
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -282,16 +276,13 @@ ...@@ -282,16 +276,13 @@
</record> </record>
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
1645 1646
\ No newline at end of file \ 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