Commit 0e75bb74 authored by Gabriel Monnerat's avatar Gabriel Monnerat

All links which do not work will show a message “not implemented yet".

- added javascript code to show and hide this message

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41036 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3fd68e80
......@@ -39,13 +39,14 @@
<tal:block tal:define="website here/getWebSiteValue;\n
enctype string:multipart/form-data;\n
portal_path python:website.absolute_url();">\n
<a id="right_message">Not Implemented yet</a>\n
<tal:block tal:condition="here/portal_membership/isAnonymousUser">\n
<a tal:attributes="href string:${portal_path}/login_form">Sign in</a>\n
</tal:block>\n
<tal:block tal:condition="python:not here.portal_membership.isAnonymousUser()">\n
<a tal:content="here/portal_membership/getAuthenticatedMember"/>\n
</tal:block>\n
| <a href="#">Settings</a> | <a href="#">Help</a> |\n
| <a id="settings" href="#">Settings</a> | <a id="help" href="#">Help</a> |\n
<a tal:attributes="href string:${portal_path}/logout">Sign out</a>\n
</tal:block>
......
......@@ -219,7 +219,7 @@
<key> <string>default</string> </key>
<value> <string encoding="cdata"><![CDATA[
<a href="#" class ="email">Email</a> <a class="document">Documents</a> <a href="#" class="calendar">Calendar</a>
<a href="#" class ="email">Email</a> <a class="document">Documents</a> <a href="#" class="calendar">Calendar</a> <a id="left_message">Not Implemented yet</a>
]]></string> </value>
</item>
......
......@@ -65,7 +65,7 @@
<tal:block metal:use-macro="here/template_erp5_xhtml_style/macros/master">\n
<tal:block metal:fill-slot="layout">\n
<div class="container">\n
<div class="navigation"> \n
<div class="navigation">\n
<tal:block tal:condition="python: layout_form is not None">\n
<tal:block tal:repeat="aggregate python: [(\'navigation\', navigation_area)]">\n
<tal:block metal:use-macro="here/aggregate_render/macros/aggregate_render"/>\n
......
......@@ -125,6 +125,16 @@ $(document).ready(function(){\n
$("input#sort_index.sort_index").attr("value", getObjectPropertyValue("getIntIndex"));\n
$("#edit_document").dialog("open"); \n
});\n
$("a#settings, a#help").click(function(){\n
$("a#right_message").show();\n
});\n
$("a.calendar, a.email").click(function(){\n
$("a#left_message").show();\n
});\n
$("a#right_message, a#left_message").click(function(){\n
$("a#right_message").hide();\n
$("a#left_message").hide();\n
});\n
return false;\n
});
......
......@@ -62,7 +62,7 @@ div.navigation fieldset.widget {\n
border: 0px;\n
padding-top: 0.6%; \n
margin: -0.60%;\n
width: 93%;\n
width: 96%;\n
}\n
\n
div.navigation-right { \n
......@@ -813,6 +813,10 @@ p#more_properties, p#hide_properties {\n
\n
p#more_properties:hover, p#hide_properties:hover {\n
color:#525f94;\n
}\n
a#left_message, a#right_message {\n
display: none;\n
color: #FD0A0A;\n
}
]]></string> </value>
......
93
\ No newline at end of file
94
\ 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