Commit 724d7072 authored by Gabriel Monnerat's avatar Gabriel Monnerat

make possible edit the subject list of objects on UNG

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42387 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c28ff1c9
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>"""\n
Wrapper to store the subject list in context, because isn\'t possible \n
pass list in POST correctly.\n
"""\n
context.setSubjectList(value.split(","))\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>value=""</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebPage_setSubjectList</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -71,8 +71,11 @@
<input type="text" class="version" id="version" name="version" value=""><br>\n
<label for="language">Language:</label>\n
<input type="text" class="language" id="language" name="language" value=""><br>\n
<label for="language">Sort Index:</label>\n
<label for="sort_index">Sort Index:</label>\n
<input type="text" class="sort_index" id="sort_index" name="sort_index" value=""><br>\n
<label for="keyword_list">Keywords:</label>\n
<textarea id="keyword_list" rows="2" cols="20" value="">\n
</textarea> \n
</div>\n
<p class="more_properties" id="more_properties">Edit More Properties</p>\n
<p class="hide_properties" id="hide_properties">Hide Properties</p>\n
......
......@@ -217,7 +217,7 @@ $().ready(function(){\n
};\n
$("#edit_document").dialog({\n
autoOpen: false,\n
height: 146,\n
height: 131,\n
width: 389,\n
modal: true,\n
buttons: {\n
......@@ -228,6 +228,7 @@ $().ready(function(){\n
var new_language = $("input#language.language").attr("value");\n
var new_version = $("input#version.version").attr("value");\n
var new_int_index = $("input#sort_index.sort_index").attr("value");\n
var new_subject_list = $("textarea#keyword_list").attr("value").replace(/\\n+/g, ",");\n
$("a[name=\'document_title\']").html(new_title);\n
setObjectPropertyValue("setTitle", new_title, "value");\n
setObjectPropertyValue("setReference", new_reference, "value");\n
......@@ -235,6 +236,7 @@ $().ready(function(){\n
setObjectPropertyValue("setLanguage", new_language, "language");\n
setObjectPropertyValue("setVersion", new_version, "value");\n
setObjectPropertyValue("setIntIndex", new_int_index, "value");\n
setObjectPropertyValue("WebPage_setSubjectList", new_subject_list, "value"); \n
$("#edit_document").dialog("close");\n
$("button.save").click();\n
},\n
......@@ -310,10 +312,10 @@ $().ready(function(){\n
.click(function(){\n
$("div#more_property").show();\n
$("p#hide_properties").show();\n
$("div#edit_document fieldset").animate({"height": "151px"}, "slow");\n
$("div#edit_document fieldset").animate({"height": "214px"}, "slow");\n
$("div.ui-dialog").animate({"top": "50px"}, "slow")\n
.animate({"height": "228px"}, "slow");\n
$("div#edit_document").animate({"height": "157px"}, "slow");\n
.animate({"height": "274px"}, "slow");\n
$("div#edit_document").animate({"height": "205px"}, "slow");\n
$("div#edit_document fieldset input").css("margin", "0")\n
.css("width", "60%");\n
$("div#edit_document fieldset label").css("float", "left")\n
......@@ -351,6 +353,8 @@ $().ready(function(){\n
$("input#version.version").attr("value", getObjectPropertyValue("getVersion"));\n
$("input#language.language").attr("value", getObjectPropertyValue("getLanguage"));\n
$("input#sort_index.sort_index").attr("value", getObjectPropertyValue("getIntIndex"));\n
var subjectList = jQuery.parseJSON(getObjectPropertyValue(\'getSubjectList\').replace(/\'/g,\'"\'));\n
$("textarea#keyword_list").attr("value", subjectList.join("\\n"));\n
$("#edit_document").dialog("open"); \n
});\n
$("a#help").click(function(event){\n
......
......@@ -631,10 +631,6 @@ div#wrapper_header div.field a[name="document_title"] {\n
text-decoration:none;\n
}\n
\n
div#edit_document fieldset input {\n
width: 100%;\n
}\n
\n
div#edit_document fieldset label {\n
font-size: 12px;\n
}\n
......@@ -644,7 +640,6 @@ div.ui-dialog-titlebar {\n
}\n
\n
div#edit_document fieldset {\n
background:none no-repeat scroll 0 0 #FFFFFF;\n
border:0 none;\n
height:72px;\n
margin-left:-1em;\n
......@@ -659,7 +654,6 @@ div#edit_document {\n
}\n
\n
div#edit_document fieldset input {\n
width: 95%;\n
margin-top:15px;\n
font-size:13px;\n
}\n
......@@ -1004,6 +998,14 @@ table.gadget tbody tr:first-child {\n
\n
div.edit-form {\n
height: 176px !important;\n
}\n
\n
div#edit_document.ui-dialog-content {\n
background-color: #FFFFFF;\n
}\n
\n
.ui-widget textarea {\n
font-size: 13px !important;\n
}
]]></string> </value>
......
170
\ No newline at end of file
171
\ 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