Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
erp5
Commits
5ecc69ce
Commit
5ecc69ce
authored
Mar 07, 2013
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify front page a nd remove tabs.
Add portal type selection for search box.
parent
9ee74bfa
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
449 additions
and
4 deletions
+449
-4
bt5/erp5_xhtml_gadget_style/SkinTemplateItem/portal_skins/erp5_xhtml_gadget_style/ERP5Site_processAdvancedSearch.xml
...rp5_xhtml_gadget_style/ERP5Site_processAdvancedSearch.xml
+70
-0
bt5/erp5_xhtml_gadget_style/SkinTemplateItem/portal_skins/erp5_xhtml_gadget_style/ERP5Site_view.xml
...em/portal_skins/erp5_xhtml_gadget_style/ERP5Site_view.xml
+93
-0
bt5/erp5_xhtml_gadget_style/SkinTemplateItem/portal_skins/erp5_xhtml_gadget_style/erp5_site_main_template.xml
...skins/erp5_xhtml_gadget_style/erp5_site_main_template.xml
+93
-0
bt5/erp5_xhtml_gadget_style/SkinTemplateItem/portal_skins/erp5_xhtml_gadget_style/gadget-style.css.xml
...portal_skins/erp5_xhtml_gadget_style/gadget-style.css.xml
+12
-3
bt5/erp5_xhtml_gadget_style/SkinTemplateItem/portal_skins/erp5_xhtml_gadget_style/navigation_box_render.xml
...l_skins/erp5_xhtml_gadget_style/navigation_box_render.xml
+180
-0
bt5/erp5_xhtml_gadget_style/bt/revision
bt5/erp5_xhtml_gadget_style/bt/revision
+1
-1
No files found.
bt5/erp5_xhtml_gadget_style/SkinTemplateItem/portal_skins/erp5_xhtml_gadget_style/ERP5Site_processAdvancedSearch.xml
0 → 100644
View file @
5ecc69ce
<?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>
return context.ERP5Site_viewQuickSearchResultList(\n
field_your_search_text = field_your_search_text,\n
field_your_search_portal_type = field_your_search_portal_type,\n
all_languages=all_languages)\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
field_your_search_text=\'\', field_your_search_portal_type=None, all_languages=False
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ERP5Site_processAdvancedSearch
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_xhtml_gadget_style/SkinTemplateItem/portal_skins/erp5_xhtml_gadget_style/ERP5Site_view.xml
0 → 100644
View file @
5ecc69ce
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ZopePageTemplate"
module=
"Products.PageTemplates.ZopePageTemplate"
/>
</pickle>
<pickle>
<dictionary>
<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_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n
tal:define="tab here/ERP5Site_getSelectedTab;\n
preferred_access_tab python:here.portal_preferences.getPreferredHtmlStyleAccessTab()">
\n
<tal:block
tal:condition=
"python:tab is not None and preferred_access_tab"
>
\n
<tal:block
tal:define=
"tab_renderer_form_object python: getattr(here, tab[\'renderer\'], None)"
>
\n
<metal:block
use-macro=
"here/erp5_site_main_template/macros/master"
>
\n
<!--\n
<metal:block fill-slot="tabs">\n
<tal:block tal:replace="structure python:here.ERP5Site_renderTabList(selected_tab=tab[\'id\'])" />\n
</metal:block>\n
<metal:block fill-slot="content">\n
<tal:block tal:condition="tab_renderer_form_object"\n
tal:replace="structure python: tab_renderer_form_object()" />\n
<tal:block tal:condition="not: tab_renderer_form_object">\n
Server side error.\n
</tal:block>\n
</metal:block>\n
-->
\n
\n
</metal:block>
\n
</tal:block>
\n
</tal:block>
\n
<tal:block
tal:condition=
"python:tab is None or not preferred_access_tab"
>
\n
<tal:block
tal:replace=
"structure here/ERP5Site_viewClassicFrontPage"
/>
\n
</tal:block>
\n
</tal:block>
]]>
</unicode>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ERP5Site_view
</string>
</value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
<value>
<string>
utf-8
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<unicode></unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_xhtml_gadget_style/SkinTemplateItem/portal_skins/erp5_xhtml_gadget_style/erp5_site_main_template.xml
0 → 100644
View file @
5ecc69ce
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ZopePageTemplate"
module=
"Products.PageTemplates.ZopePageTemplate"
/>
</pickle>
<pickle>
<dictionary>
<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_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n">
\n
<metal:block
define-macro=
"master"
>
\n
<tal:block
tal:define=
"title here/Title;\n
enctype string:multipart/form-data;\n
portal context/portal_url/getPortalObject;"
>
\n
<tal:block
metal:use-macro=
"here/main_template/macros/master"
>
\n
<tal:block
metal:fill-slot=
"main"
>
\n
<tal:block
tal:condition=
"here/portal_membership/isAnonymousUser"
>
\n
<tal:block
tal:define=
"dummy python:request.RESPONSE.redirect(\'%s/login_form\' % portal.absolute_url())"
/>
\n
</tal:block>
\n
<tal:block
tal:condition=
"python:not here.portal_membership.isAnonymousUser()"
>
\n
<div
class=
"index_html"
>
\n
<div
class=
"document"
>
\n
<tal:block
tal:condition=
"python: here.getPortalObject().restrictedTraverse(\'portal_gadgets\', None) is not None"
>
\n
<tal:block
tal:condition=
"exists:here/ERP5Site_viewHomeAreaRenderer"
\n
tal:replace=
"structure python: here.ERP5Site_viewHomeAreaRenderer(create_default_pad=True, \n
make_security_check=True)"
/>
\n
</tal:block>
\n
</div>
\n
</div>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block>
\n
</metal:block>
\n
</tal:block>
]]>
</unicode>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
erp5_site_main_template
</string>
</value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
<value>
<string>
iso-8859-15
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<unicode></unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_xhtml_gadget_style/SkinTemplateItem/portal_skins/erp5_xhtml_gadget_style/gadget-style.css.xml
View file @
5ecc69ce
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<value>
<string>
ts62
578737.97
</string>
</value>
<value>
<string>
ts62
667459.18
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
__name__
</string>
</key>
<key>
<string>
__name__
</string>
</key>
...
@@ -28,7 +28,16 @@
...
@@ -28,7 +28,16 @@
.validation-failed {\n
.validation-failed {\n
border: 1px solid red;\n
border: 1px solid red;\n
}\n
}\n
</string>
</value>
\n
.center_left {\n
float:left;\n
width: 50%;\n
}\n
\n
.center_right {\n
float:right;\n
width: 49%;\n
}
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
precondition
</string>
</key>
<key>
<string>
precondition
</string>
</key>
...
@@ -36,7 +45,7 @@
...
@@ -36,7 +45,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
size
</string>
</key>
<key>
<string>
size
</string>
</key>
<value>
<int>
96
</int>
</value>
<value>
<int>
189
</int>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
...
bt5/erp5_xhtml_gadget_style/SkinTemplateItem/portal_skins/erp5_xhtml_gadget_style/navigation_box_render.xml
0 → 100644
View file @
5ecc69ce
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ZopePageTemplate"
module=
"Products.PageTemplates.ZopePageTemplate"
/>
</pickle>
<pickle>
<dictionary>
<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_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n">
\n
<tal:block
tal:define=
"portal here/getPortalObject;\n
actions python:portal.portal_actions.listFilteredActionsFor(here)"
>
\n
<span
class=
"first"
>
\n
<span
id=
"favourites"
class=
"favourites"
>
\n
<select
name=
"select_favorite"
\n
onChange=
"submitAction(this.form,\'Base_doFavorite\')"
\n
tal:define=
"ordered_global_actions python:here.getOrderedGlobalActionList(actions[\'global\']);\n
user_actions actions/user;"
>
\n
<option
selected=
"selected"
value=
""
\n
i18n:translate=
""
i18n:domain=
"ui"
>
My Favourites
</option>
\n
<tal:block
tal:repeat=
"action ordered_global_actions"
>
\n
<option
tal:condition=
"action/disabled"
\n
disabled=
"disabled"
>
--
<tal:block
tal:content=
"action/title"
i18n:translate=
""
i18n:domain=
"ui"
/>
--
</option>
\n
<tal:block
tal:condition=
"not:action/disabled"
\n
tal:define=
"name python: action.get(\'name\', \'\');\n
index python: name.find(\' (\');"
>
\n
<option
tal:condition=
"python: index >= 0"
\n
tal:attributes=
"value action/url"
><tal:block
tal:content=
"python: name[:index]"
i18n:translate=
""
i18n:domain=
"ui"
></tal:block><tal:block
tal:replace=
"python: name[index:]"
/></option>
\n
<option
tal:condition=
"python: index < 0"
\n
tal:attributes=
"value action/url"
\n
tal:content=
"action/name"
\n
i18n:translate=
""
i18n:domain=
"ui"
></option>
\n
</tal:block>
\n
</tal:block>
\n
<tal:block
tal:condition=
"user_actions"
>
\n
<option
disabled=
"disabled"
>
--
<tal:block
i18n:translate=
""
i18n:domain=
"ui"
>
User
</tal:block>
--
</option>
\n
<option
tal:repeat=
"action user_actions"
\n
tal:content=
"action/name"
\n
tal:attributes=
"value action/url"
\n
i18n:translate=
""
i18n:domain=
"ui"
></option>
\n
</tal:block>
\n
</select>
\n
<button
type=
"submit"
name=
"Base_doFavorite:method"
title=
"Select Favourite"
\n
i18n:attributes=
"title"
i18n:domain=
"ui"
>
\n
<span
class=
"image"
></span>
\n
<span
class=
"description"
\n
i18n:translate=
""
i18n:domain=
"ui"
>
Select Favourite
</span>
\n
</button>
\n
</span>
\n
<span
class=
"separator"
>
<!--separator-->
</span>
\n
<span
id=
"modules"
class=
"modules"
>
\n
<select
name=
"select_module"
\n
onChange=
"submitAction(this.form,\'Base_doModule\')"
\n
tal:define=
"module_list here/ERP5Site_getModuleItemList;"
>
\n
<option
selected=
"selected"
value=
""
i18n:translate=
""
i18n:domain=
"ui"
>
Modules
</option>
\n
<option
tal:repeat=
"module module_list"
\n
tal:attributes=
"value python: module[1]"
\n
tal:content=
"python: module[0]"
\n
tal:omit-tag=
"nothing"
/>
\n
</select>
\n
<button
type=
"submit"
name=
"Base_doModule:method"
title=
"Select Module"
\n
i18n:attributes=
"title"
i18n:domain=
"ui"
>
\n
<span
class=
"image"
></span>
\n
<span
class=
"description"
\n
i18n:translate=
""
i18n:domain=
"ui"
>
Select Module
</span>
\n
</button>
\n
</span>
\n
</span>
\n
<span
class=
"second"
>
\n
<span
id=
"language"
class=
"language"
>
\n
<select
name=
"select_language"
\n
tal:define=
"language_list python:portal.portal_preferences.getPreference(\'preferred_user_interface_language_list\', None)"
\n
onChange=
"submitAction(this.form,\'Base_doLanguage\')"
>
\n
<option
value=
""
\n
i18n:translate=
""
i18n:domain=
"ui"
>
My Language
</option>
\n
<tal:block
tal:repeat=
"language python:portal.Localizer.get_languages_map()"
>
\n
<option
\n
tal:condition=
"python:not language_list or language[\'id\'] in language_list"
\n
tal:omit-tag=
"nothing"
\n
tal:attributes=
"value language/id;\n
selected python: language[\'selected\'] and \'selected\' or nothing;"
\n
tal:content=
"python: here.Localizer.erp5_ui.gettext(language[\'title\'], lang=language[\'id\'])"
/>
\n
</tal:block>
\n
</select>
\n
<button
type=
"submit"
name=
"Base_doLanguage:method"
title=
"Select Language"
\n
i18n:attributes=
"title"
i18n:domain=
"ui"
>
\n
<span
class=
"image"
></span>
\n
<span
class=
"description"
\n
i18n:translate=
""
i18n:domain=
"ui"
>
Select Language
</span>
\n
</button>
\n
</span>
\n
<span
class=
"separator"
>
<!--separator-->
</span>
\n
<span
id=
"search"
class=
"search"
tal:define=
"search_default_text python:here.Base_translateString(\'Search\')"
>
\n
<input
type=
"hidden"
name=
"all_languages"
value=
"1"
/>
\n
<input
class=
"quick_search_field"
accesskey=
"4"
type=
"text"
name=
"field_your_search_text"
\n
value=
"Search"
tal:attributes=
"value string:${search_default_text};\n
onfocus string:if (this.value==\'${search_default_text}\') this.value=\'\';"
\n
onfocus=
"this.value=\'\';"
\n
onkeypress=
"submitFormOnEnter(event, this.form, \'ERP5Site_processAdvancedSearch\');"
/>
\n
\n
<select
size=
"1"
class=
"input"
name=
"field_your_search_portal_type"
>
\n
<option
value=
""
selected=
"selected"
i18n:translate=
""
i18n:domain=
"ui"
>
Everything
</option>
\n
<option
value=
"all"
i18n:translate=
""
i18n:domain=
"ui"
>
All Documents
</option>
\n
<option
tal:repeat=
"ptype here/getPortalDocumentTypeList"
\n
tal:attributes=
"value ptype"
\n
tal:content=
"python:ptype"
\n
i18n:translate=
""
i18n:domain=
"ui"
>
Standard Type
</option>
\n
<option
value=
"Person"
i18n:translate=
""
i18n:domain=
"ui"
>
Person
</option>
\n
<option
value=
"Organisation"
i18n:translate=
""
i18n:domain=
"ui"
>
Organisation
</option>
\n
</select>
\n
\n
<button
type=
"submit"
name=
"ERP5Site_processAdvancedSearch:method"
title=
"Search"
\n
i18n:attributes=
"title"
i18n:domain=
"ui"
>
\n
<span
class=
"image"
></span>
\n
<span
class=
"description"
\n
i18n:translate=
""
i18n:domain=
"ui"
>
Search
</span>
\n
</button>
\n
</span>
\n
</span>
\n
<p
class=
"clear"
></p>
\n
</tal:block>
\n
</tal:block>
]]>
</unicode>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
navigation_box_render
</string>
</value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
<value>
<string>
utf-8
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<unicode></unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_xhtml_gadget_style/bt/revision
View file @
5ecc69ce
15
16
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment