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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
erp5
Commits
a56cbc34
Commit
a56cbc34
authored
Apr 09, 2016
by
Boris Kocherov
Committed by
Boris Kocherov
Nov 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_xhtml_style: improve "developer shortcuts" rendering.
parent
b1c77540
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/developper_shortcut_render.zpt
...tal_skins/erp5_xhtml_style/developper_shortcut_render.zpt
+0
-4
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.zpt
...mplateItem/portal_skins/erp5_xhtml_style/field_render.zpt
+10
-8
No files found.
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/developper_shortcut_render.zpt
View file @
a56cbc34
...
...
@@ -3,7 +3,6 @@
xmlns:i18n="http://xml.zope.org/namespaces/i18n">
<tal:block metal:define-macro="edit_link">
<a tabindex="1000"
class="btn btn-xs"
tal:condition="python: (getattr(object, 'meta_type', None) is not None) and (getattr(object, 'getPortalObject', None) is not None)"
tal:attributes="href python: '%s/manage_main' % ('/'.join(object.getPhysicalPath()[len(object.getPortalObject().getPhysicalPath()):])) # XXX: quick hack to get path;
title info;"><img tal:attributes="src string:$portal_path/images/$image;
...
...
@@ -11,7 +10,6 @@
</tal:block>
<tal:block metal:define-macro="translate_link">
<a tabindex="1000"
class="btn btn-xs"
tal:define="image image | string:translate.png;
std nocall: modules/Products.PythonScripts.standard;
urlencode nocall: std/urlencode;
...
...
@@ -32,8 +30,6 @@
info string:Edit this form's action;
object python: getattr(here, form.action, None);">
<tal:block metal:use-macro="developper_shortcut_render/macros/edit_link" />
<div class="clear">
</div>
</tal:block>
</tal:block>
<tal:block metal:define-macro="field_developper">
...
...
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.zpt
View file @
a56cbc34
...
...
@@ -20,28 +20,30 @@
tal:attributes="title field_description;
class python: ' '.join([x for x in ['field', field.is_required() and 'required' or None, field_has_error and 'error' or None, field.get_value('css_class') or None] if x is not None])"
i18n:attributes="title" i18n:domain="ui">
<tal:block tal:condition="preferred_html_style_developper_mode">
<tal:block metal:use-macro="developper_shortcut_render/macros/field_developper" />
</tal:block>
<tal:block tal:condition="preferred_html_style_translator_mode">
<tal:block metal:use-macro="developper_shortcut_render/macros/field_translator" />
</tal:block>
<tal:block tal:repeat="html_tuple html_render">
<div class="form-group row"
tal:define="field_offset python:repeat['html_tuple'].start == True and ' ' or 'col-md-offset-' + field_label_width;"
tal:attributes="class string:form-group row ${field_has_error}"
tal:condition="python: field_editable or html_tuple[1]">
<tal:block tal:condition="python:(gid != 'bottom') and html_tuple[0]">
<label class="control-label col-md-2"
tal:condition="repeat/html_tuple/start"
tal:attributes="class string:control-label col-md-${field_label_width};">
<tal:block tal:content="structure python: html_tuple[0]"
i18n:translate="" i18n:domain="ui" />
<tal:block tal:condition="preferred_html_style_developper_mode">
<tal:block metal:use-macro="developper_shortcut_render/macros/field_developper" />
</tal:block>
<tal:block tal:condition="preferred_html_style_translator_mode">
<tal:block metal:use-macro="developper_shortcut_render/macros/field_translator" />
</tal:block>
</label>
<div class="input col-md-10"
tal:attributes="class string:input col-md-${field_input_width};"
tal:attributes="class string:input col-md-${field_input_width}
${field_offset}
;"
tal:condition="field_editable"
tal:content="structure python: html_tuple[1]" />
<div class="col-md-10"
tal:attributes="class string:col-md-${field_input_width};"
tal:attributes="class string:col-md-${field_input_width}
${field_offset}
;"
tal:condition="not:field_editable">
<p class="form-control-static" tal:content="structure python: html_tuple[1]" />
</div>
...
...
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