Commit 4f041144 authored by Boris Kocherov's avatar Boris Kocherov Committed by Boris Kocherov

erp5_xhtml_style: change to bootstrap design

parent 303e5f15
......@@ -2,13 +2,13 @@
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
tal:define="dummy python: request.RESPONSE.setHeader('Content-Type',
'text/html;; charset=utf-8');">
<div class="fieldset hidden_label">
<div class="fieldset hidden_label col-md-6">
<div>
<input type="file" name="file" size="30" />
<div class="form-group">
<input type="file" name="file" size="30" class="form-control"/>
</div>
<div>
<div class="form-group">
<label for="classification"
value=""
i18n:translate=""
......@@ -22,7 +22,7 @@
tal:attributes="value python:item[1]"/>
</select>
</div>
<div>
<div class="row">
<label for="follow_up_list"
value=""
i18n:translate=""
......
......@@ -2,25 +2,32 @@
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
tal:define="dummy python: request.RESPONSE.setHeader('Content-Type',
'text/html;; charset=utf-8');">
<div tal:define="search_default_text python:here.Base_translateString('Search')">
<input class="quick_search_field" type="text" onkeypress="submitFormOnEnter(event, this.form, 'ERP5Site_processAdvancedSearch');"
value="Search" tal:attributes="value string:${search_default_text};
onfocus string:if (this.value=='${search_default_text}') this.value='';"
onfocus="this.value='';"
class="input-text" name="top_your_search_text" size="40" accesskey="4"/>
<select size="1" class="input" name="top_your_search_portal_type">
<option value="" selected="selected" i18n:translate="" i18n:domain="ui">Everything</option>
<option value="all" i18n:translate="" i18n:domain="ui">All Documents</option>
<option tal:repeat="ptype here/getPortalDocumentTypeList"
tal:attributes="value ptype"
tal:content="python:ptype"
i18n:translate="" i18n:domain="ui">
Standard Type
</option>
<option value="Person" i18n:translate="" i18n:domain="ui">Person</option>
<option value="Organisation" i18n:translate="" i18n:domain="ui">Organisation</option>
</select>
<input type="submit" name="ERP5Site_processAdvancedSearch:method" value="Search"
i18n:attributes="value" i18n:domain="ui"/>
<div class="row"
tal:define="search_default_text python:here.Base_translateString('Search')">
<div class="input-group col-md-4">
<input class="quick_search_field form-control" type="text" onkeypress="submitFormOnEnter(event, this.form, 'ERP5Site_processAdvancedSearch');"
value="Search" tal:attributes="value string:${search_default_text};
onfocus string:if (this.value=='${search_default_text}') this.value='';"
onfocus="this.value='';"
class="input-text" name="top_your_search_text" accesskey="4"/>
<div class="input-group-btn">
<select size="1" class="input form-control" name="top_your_search_portal_type"
data-width="auto">
<option value="" selected="selected" i18n:translate="" i18n:domain="ui">Everything</option>
<option value="all" i18n:translate="" i18n:domain="ui">All Documents</option>
<option tal:repeat="ptype here/getPortalDocumentTypeList"
tal:attributes="value ptype"
tal:content="python:ptype"
i18n:translate="" i18n:domain="ui">
Standard Type
</option>
<option value="Person" i18n:translate="" i18n:domain="ui">Person</option>
<option value="Organisation" i18n:translate="" i18n:domain="ui">Organisation</option>
</select>
<button type="submit" name="ERP5Site_processAdvancedSearch:method" value="Search"
class="btn btn-default"
i18n:translate="" i18n:domain="ui">Search</button>
</div>
</div>
</div>
</tal:block>
</tal:block>
\ No newline at end of file
<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
tal:define="selected_tab options/selected_tab">
<ul id="tab_box"
tal:define="current_url here/absolute_url"><li tal:repeat="tab here/ERP5Site_getTabList"
id="quick_search_tab" class="selected"
tal:attributes="class python:test(selected_tab == tab['id'], 'selected', 'non_selected');
id tab/id"><a href="view"
tal:attributes="href python:'%s/view?erp5_site_selected_tab=%s' % (current_url, tab['id'])">
<span>
<img tal:attributes="src python:tab['icon'] ; alt python:tab['id']" width="16px" height="16px"/>
<tal:block i18n:translate="" i18n:domain="ui" tal:content="tab/title" /></span></a></li></ul>
</tal:block>
<ul id="tab_box"
class="nav nav-pills"
tal:define="current_url here/absolute_url">
<li tal:repeat="tab here/ERP5Site_getTabList"
id="quick_search_tab" class="selected"
tal:attributes="class python:test(selected_tab == tab['id'], 'selected active', 'non_selected');
id tab/id"><a href="view"
tal:attributes="href python:'%s/view?erp5_site_selected_tab=%s' % (current_url, tab['id'])">
<span>
<img tal:attributes="src python:tab['icon'] ; alt python:tab['id']" width="16px" height="16px"/>
<tal:block i18n:translate="" i18n:domain="ui" tal:content="tab/title" /></span></a></li></ul>
</tal:block>
\ No newline at end of file
......@@ -13,7 +13,7 @@
<tal:block tal:define="dummy python:request.RESPONSE.redirect('%s/login_form' % portal.absolute_url())" />
</tal:block>
<tal:block tal:condition="python:not here.portal_membership.isAnonymousUser()">
<div class="index_html" style="margin:20px 40px 0 40px; padding:0; text-align:left;">
<div class="index_html">
<div class="document">
<div class="actions">
<metal:block define-slot="tabs" />
......@@ -22,7 +22,6 @@
<div id="container" style="margin: 1em">
<metal:block define-slot="content" />
</div>
<p class="clear" />
</div>
<tal:block tal:condition="python: here.getPortalObject().restrictedTraverse('portal_gadgets', None) is not None">
<tal:block tal:condition="exists:here/ERP5Site_viewHomeAreaRenderer"
......
......@@ -4,8 +4,7 @@
xmlns:i18n="http://xml.zope.org/namespaces/i18n">
<tal:block metal:define-macro="breadcrumb">
<tal:block tal:repeat="item here/breadcrumbs">
<a tal:attributes="href item/url" tal:content="item/title" />
/
<li><a tal:attributes="href item/url" tal:content="item/title" /></li>
</tal:block>
</tal:block>
</tal:block>
</tal:block>
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>css</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts85362547.11</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>bootstrap-editable.css</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/css</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>21202</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>bootstrap-editable.css</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
/*!
* bootstrap-select v1.3.5
* http://silviomoreto.github.io/bootstrap-select/
*
* Copyright 2013 bootstrap-select
* Licensed under the MIT license
*/
.bootstrap-select.btn-group,
.bootstrap-select.btn-group[class*="span"] {
float: none;
display: inline-block;
margin-bottom: 10px;
margin-left: 0;
}
.form-search .bootstrap-select.btn-group,
.form-inline .bootstrap-select.btn-group,
.form-horizontal .bootstrap-select.btn-group {
margin-bottom: 0;
}
.bootstrap-select.form-control {
padding: 0;
border: none;
}
.bootstrap-select.btn-group.pull-right,
.bootstrap-select.btn-group[class*="span"].pull-right,
.row-fluid .bootstrap-select.btn-group[class*="span"].pull-right {
float: right;
}
.input-append .bootstrap-select.btn-group {
margin-left: -1px;
}
.input-prepend .bootstrap-select.btn-group {
margin-right: -1px;
}
.bootstrap-select:not([class*="span"]):not([class*="col-"]):not([class*="form-control"]) {
width: 220px;
}
.bootstrap-select {
/*width: 220px\9; IE8 and below*/
width: 220px\0; /*IE9 and below*/
}
.bootstrap-select.form-control:not([class*="span"]) {
width: 100%;
}
.bootstrap-select > .btn {
width: 100%;
}
.error .bootstrap-select .btn {
border: 1px solid #b94a48;
}
.dropdown-menu {
z-index: 2000;
}
.bootstrap-select.show-menu-arrow.open > .btn {
z-index: 2051;
}
.bootstrap-select .btn:focus {
outline: thin dotted #333333 !important;
outline: 5px auto -webkit-focus-ring-color !important;
outline-offset: -2px;
}
.bootstrap-select.btn-group .btn .filter-option {
overflow: hidden;
position: absolute;
left: 12px;
right: 25px;
text-align: left;
}
.bootstrap-select.btn-group .btn .caret {
position: absolute;
top: 50%;
right: 12px;
margin-top: -2px;
vertical-align: middle;
}
.bootstrap-select.btn-group > .disabled,
.bootstrap-select.btn-group .dropdown-menu li.disabled > a {
cursor: not-allowed;
}
.bootstrap-select.btn-group > .disabled:focus {
outline: none !important;
}
.bootstrap-select.btn-group[class*="span"] .btn {
width: 100%;
}
.bootstrap-select.btn-group .dropdown-menu {
min-width: 100%;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.bootstrap-select.btn-group .dropdown-menu.inner {
position: static;
border: 0;
padding: 0;
margin: 0;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.bootstrap-select.btn-group .dropdown-menu dt {
display: block;
padding: 3px 20px;
cursor: default;
}
.bootstrap-select.btn-group .div-contain {
overflow: hidden;
}
.bootstrap-select.btn-group .dropdown-menu li {
position: relative;
}
.bootstrap-select.btn-group .dropdown-menu li > a.opt {
position: relative;
padding-left: 35px;
}
.bootstrap-select.btn-group .dropdown-menu li > a {
cursor: pointer;
}
.bootstrap-select.btn-group .dropdown-menu li > dt small {
font-weight: normal;
}
.bootstrap-select.btn-group.show-tick .dropdown-menu li.selected a i.check-mark {
display: inline-block;
position: absolute;
right: 15px;
margin-top: 2.5px;
}
.bootstrap-select.btn-group .dropdown-menu li a i.check-mark {
display: none;
}
.bootstrap-select.btn-group.show-tick .dropdown-menu li a span.text {
margin-right: 34px;
}
.bootstrap-select.btn-group .dropdown-menu li small {
padding-left: 0.5em;
}
.bootstrap-select.btn-group .dropdown-menu li:not(.disabled) > a:hover small,
.bootstrap-select.btn-group .dropdown-menu li:not(.disabled) > a:focus small {
color: #64b1d8;
color: rgba(255,255,255,0.4);
}
.bootstrap-select.btn-group .dropdown-menu li > dt small {
font-weight: normal;
}
.bootstrap-select.show-menu-arrow .dropdown-toggle:before {
content: '';
display: inline-block;
border-left: 7px solid transparent;
border-right: 7px solid transparent;
border-bottom: 7px solid #CCC;
border-bottom-color: rgba(0, 0, 0, 0.2);
position: absolute;
bottom: -4px;
left: 9px;
display: none;
}
.bootstrap-select.show-menu-arrow .dropdown-toggle:after {
content: '';
display: inline-block;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-bottom: 6px solid white;
position: absolute;
bottom: -4px;
left: 10px;
display: none;
}
.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle:before {
bottom: auto;
top: -3px;
border-top: 7px solid #ccc;
border-bottom: 0;
border-top-color: rgba(0, 0, 0, 0.2);
}
.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle:after {
bottom: auto;
top: -3px;
border-top: 6px solid #ffffff;
border-bottom: 0;
}
.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle:before {
right: 12px;
left: auto;
}
.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle:after {
right: 13px;
left: auto;
}
.bootstrap-select.show-menu-arrow.open > .dropdown-toggle:before,
.bootstrap-select.show-menu-arrow.open > .dropdown-toggle:after {
display: block;
}
.mobile-device {
position: absolute;
top: 0;
left: 0;
display: block !important;
width: 100%;
height: 100% !important;
opacity: 0;
}
.bootstrap-select.fit-width {
width: auto !important;
}
.bootstrap-select.btn-group.fit-width .btn .filter-option {
position: static;
}
.bootstrap-select.btn-group.fit-width .btn .caret {
position: static;
top: auto;
margin-top: -1px;
}
.control-group.error .bootstrap-select .dropdown-toggle{
border-color: #b94a48;
}
.bootstrap-select-searchbox {
padding: 4px 8px;
}
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts85728106.9</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>bootstrap-select.css</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/css</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>5781</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>bootstrap-select.css</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
/*!
* Bootstrap-select v1.10.0 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2016 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
*/select.bs-select-hidden,select.selectpicker{display:none!important}.bootstrap-select{width:220px\9}.bootstrap-select>.dropdown-toggle{width:100%;padding-right:25px;z-index:1}.bootstrap-select>select{position:absolute!important;bottom:0;left:50%;display:block!important;width:.5px!important;height:100%!important;padding:0!important;opacity:0!important;border:none}.bootstrap-select>select.mobile-device{top:0;left:0;display:block!important;width:100%!important;z-index:2}.error .bootstrap-select .dropdown-toggle,.has-error .bootstrap-select .dropdown-toggle{border-color:#b94a48}.bootstrap-select.fit-width{width:auto!important}.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn){width:220px}.bootstrap-select .dropdown-toggle:focus{outline:thin dotted #333!important;outline:5px auto -webkit-focus-ring-color!important;outline-offset:-2px}.bootstrap-select.form-control{margin-bottom:0;padding:0;border:none}.bootstrap-select.form-control:not([class*=col-]){width:100%}.bootstrap-select.form-control.input-group-btn{z-index:auto}.bootstrap-select.btn-group:not(.input-group-btn),.bootstrap-select.btn-group[class*=col-]{float:none;display:inline-block;margin-left:0}.bootstrap-select.btn-group.dropdown-menu-right,.bootstrap-select.btn-group[class*=col-].dropdown-menu-right,.row .bootstrap-select.btn-group[class*=col-].dropdown-menu-right{float:right}.form-group .bootstrap-select.btn-group,.form-horizontal .bootstrap-select.btn-group,.form-inline .bootstrap-select.btn-group{margin-bottom:0}.form-group-lg .bootstrap-select.btn-group.form-control,.form-group-sm .bootstrap-select.btn-group.form-control{padding:0}.form-inline .bootstrap-select.btn-group .form-control{width:100%}.bootstrap-select.btn-group.disabled,.bootstrap-select.btn-group>.disabled{cursor:not-allowed}.bootstrap-select.btn-group.disabled:focus,.bootstrap-select.btn-group>.disabled:focus{outline:0!important}.bootstrap-select.btn-group.bs-container{position:absolute}.bootstrap-select.btn-group.bs-container .dropdown-menu{z-index:1060}.bootstrap-select.btn-group .dropdown-toggle .filter-option{display:inline-block;overflow:hidden;width:100%;text-align:left}.bootstrap-select.btn-group .dropdown-toggle .caret{position:absolute;top:50%;right:12px;margin-top:-2px;vertical-align:middle}.bootstrap-select.btn-group[class*=col-] .dropdown-toggle{width:100%}.bootstrap-select.btn-group .dropdown-menu{min-width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bootstrap-select.btn-group .dropdown-menu.inner{position:static;float:none;border:0;padding:0;margin:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none}.bootstrap-select.btn-group .dropdown-menu li{position:relative}.bootstrap-select.btn-group .dropdown-menu li.active small{color:#fff}.bootstrap-select.btn-group .dropdown-menu li.disabled a{cursor:not-allowed}.bootstrap-select.btn-group .dropdown-menu li a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bootstrap-select.btn-group .dropdown-menu li a.opt{position:relative;padding-left:2.25em}.bootstrap-select.btn-group .dropdown-menu li a span.check-mark{display:none}.bootstrap-select.btn-group .dropdown-menu li a span.text{display:inline-block}.bootstrap-select.btn-group .dropdown-menu li small{padding-left:.5em}.bootstrap-select.btn-group .dropdown-menu .notify{position:absolute;bottom:5px;width:96%;margin:0 2%;min-height:26px;padding:3px 5px;background:#f5f5f5;border:1px solid #e3e3e3;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05);pointer-events:none;opacity:.9;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bootstrap-select.btn-group .no-results{padding:3px;background:#f5f5f5;margin:0 5px;white-space:nowrap}.bootstrap-select.btn-group.fit-width .dropdown-toggle .filter-option{position:static}.bootstrap-select.btn-group.fit-width .dropdown-toggle .caret{position:static;top:auto;margin-top:-1px}.bootstrap-select.btn-group.show-tick .dropdown-menu li.selected a span.check-mark{position:absolute;display:inline-block;right:15px;margin-top:5px}.bootstrap-select.btn-group.show-tick .dropdown-menu li a span.text{margin-right:34px}.bootstrap-select.show-menu-arrow.open>.dropdown-toggle{z-index:1061}.bootstrap-select.show-menu-arrow .dropdown-toggle:before{content:'';border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(204,204,204,.2);position:absolute;bottom:-4px;left:9px;display:none}.bootstrap-select.show-menu-arrow .dropdown-toggle:after{content:'';border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;bottom:-4px;left:10px;display:none}.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle:before{bottom:auto;top:-3px;border-top:7px solid rgba(204,204,204,.2);border-bottom:0}.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle:after{bottom:auto;top:-3px;border-top:6px solid #fff;border-bottom:0}.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle:before{right:12px;left:auto}.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle:after{right:13px;left:auto}.bootstrap-select.show-menu-arrow.open>.dropdown-toggle:after,.bootstrap-select.show-menu-arrow.open>.dropdown-toggle:before{display:block}.bs-actionsbox,.bs-donebutton,.bs-searchbox{padding:4px 8px}.bs-actionsbox{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bs-actionsbox .btn-group button{width:50%}.bs-donebutton{float:left;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bs-donebutton .btn-group button{width:100%}.bs-searchbox+.bs-actionsbox{padding:0 8px 4px}.bs-searchbox .form-control{margin-bottom:0;width:100%;float:none}
\ No newline at end of file
......@@ -2,33 +2,33 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLMethod" module="OFS.DTMLMethod"/>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts59623166.89</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>erp5_xhtml_appearance.js</string> </value>
<value> <string>bootstrap-select.min.css</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
<key> <string>content_type</string> </key>
<value> <string>text/css</string> </value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>6065</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
<value> <string>bootstrap-select.min.css</string> </value>
</item>
</dictionary>
</pickle>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts87111048.84</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>bootstrap-theme.min.css</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/css</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>13135</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>bootstrap-theme.min.css</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts59622952.72</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>bootstrap.min.css</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/css</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>121260</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>bootstrap.min.css</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts59631053.4</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>font-awesome.min.css</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/css</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>27466</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>font-awesome.min.css</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -2,14 +2,23 @@
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n">
<tal:block metal:define-macro="edit_link">
<a tabindex="1000" tal:condition="python: (getattr(object, 'meta_type', None) is not None) and (getattr(object, 'getPortalObject', None) is not None)"
<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;
alt info;" /></a>
</tal:block>
<tal:block metal:define-macro="translate_link">
<a tabindex="1000" tal:define="image image | python: 'translate.png'"
tal:attributes="href python: '%s/manage_messages?regex=^%s%%24&amp;lang=%s' % ('/'.join(here.Localizer.erp5_ui.getPhysicalPath()[len(here.Localizer.erp5_ui.getPortalObject().getPhysicalPath()):]), message.replace('(', '\(').replace(')', '\)'), selected_language);
<a tabindex="1000"
class="btn btn-xs"
tal:define="image image | string:translate.png;
std nocall: modules/Products.PythonScripts.standard;
urlencode nocall: std/urlencode;
path python: '/'.join(here.Localizer.erp5_ui.getPhysicalPath()[len(here.Localizer.erp5_ui.getPortalObject().getPhysicalPath()):]);
message message | python: '^%s$'% (message.replace('(', '\(').replace(')', '\)'), );
"
tal:attributes="href python: '%s/manage_messages?%s'% ( path, urlencode( ( ('regex', message ), ('lang', selected_language))));
title info;"><img tal:attributes="src string:$portal_path/images/$image;
alt info;" /></a>
</tal:block>
......@@ -49,4 +58,4 @@
</tal:block>
</tal:block>
</tal:block>
</tal:block>
</tal:block>
\ No newline at end of file
......@@ -22,18 +22,20 @@
<div class="bottom_actions">
<button tal:condition="cancel_url|request/cancel_url|nothing" accesskey="C"
id="dialog_cancel_button" name="Base_cancel:method"
type="submit" class="bt-med dialog_cancel_button">
type="submit" class="btn btn-warning dialog_cancel_button">
<span i18n:translate="" i18n:domain="ui" tal:content="string:Cancel Action">Cancel Action</span>
</button>
<button tal:condition="form/update_action|nothing" accesskey="U"
id="dialog_update_button" name="Base_showUpdateDialog:method"
type="submit" class="bt-med dialog_update_button">
type="submit" class="btn btn-default dialog_update_button">
<i class="fa fa-refresh"></>
<span i18n:translate="" i18n:domain="ui"
tal:content="python:here.Base_getFormViewDialogActionButtonUpdateActionTitle(form)">Update</span>
</button>
<button accesskey="V"
id="dialog_submit_button" name="Base_callDialogMethod:method"
type="submit" class="bt-med dialog_submit_button">
type="submit" class="btn btn-success dialog_submit_button">
<i class="fa fa-check"></>
<span i18n:translate="" i18n:domain="ui"
tal:content="python:here.Base_getFormViewDialogActionButtonTitle(form)">Do Action</span>
</button>
......
......@@ -213,7 +213,9 @@ var resizeIFrameOnLoad = function() {
};
var changed = false;
var unsaved_warn_message = "";
function installUnsavedChangesWarning(warning_message) {
unsaved_warn_message = warning_message;
window.onbeforeunload = function() {
if ((changed)&&($("button.save")))
// show an warning box only if save button do exists
......@@ -229,42 +231,40 @@ var addOnChangeEventHandler = function() {
- clicking a relation field wheel
- clicking on a input with type submit
*/
$("#master div").each(function(i) {
if ($(this).attr("class") == "input") {
$(this).children().each(function() {
if ($(this).prop("tagName") == "INPUT" ||
$(this).prop("tagName") == "SELECT" ||
$(this).prop("tagName") == "TEXTAREA") {
if ($(this).val() == "update..." ||
($(this).prop("tagName") == "INPUT" &&
$(this).attr("type") == 'submit')) {
// this is a relation field wheel or a submit form button
this.onclick = function() { changed = false;};
} else {
if (!this.onchange) {
this.onchange = function() { changed = true; };
}
$("#master div.input").each(function(i) {
$(this).children().each(function() {
if ($(this).prop("tagName") == "INPUT" ||
$(this).prop("tagName") == "SELECT" ||
$(this).prop("tagName") == "TEXTAREA") {
if ($(this).val() == "update..." ||
($(this).prop("tagName") == "INPUT" &&
$(this).attr("type") == 'submit')) {
// this is a relation field wheel or a submit form button
this.onclick = function() { changed = false;};
} else {
if (!this.onchange) {
this.onchange = function() { changed = true; };
}
}
/* Listbox or MatrixBox */
if ($(this).prop("tagName") == "DIV" && (
$(this).attr("class") == "listbox-container" ||
$(this).attr("class") == "MatrixContent")) {
$(this).find('td').each(function(){
if ($(this).attr("class") == "listbox-search-line") {
return non-false;
}
}
/* Listbox or MatrixBox */
if ($(this).prop("tagName") == "DIV" && (
$(this).attr("class") == "listbox-container" ||
$(this).attr("class") == "MatrixContent")) {
$(this).find('td').each(function(){
if ($(this).attr("class") == "listbox-search-line") {
return non-false;
}
$(this).find('input').each(function(){
if ($(this).attr("type") != "hidden" &&
!this.onchange) {
this.onchange = function() { changed = true; };
}
$(this).find('input').each(function(){
if ($(this).attr("type") != "hidden" &&
!this.onchange) {
this.onchange = function() { changed = true; };
}
});
return true;
});
}
});
}
return true;
});
}
});
});
};
......@@ -347,9 +347,11 @@ function redirectPDFPage(event, element){
}
}
/*
if (navigator.userAgent.toLowerCase().indexOf('firefox') != -1)
$(document).ready(rewriteIndentedSelect);
$(document).ready(resizeIFrameOnLoad);
*/
$(document).ready(addOnChangeEventHandler);
$(document).ready(indexAllCheckBoxesAtBTInstallationOnLoad);
......
......@@ -26,10 +26,9 @@ function selectTab(clicked_node) {
node = tab.find("a").first();
class_name = tab.attr("class");
if (clicked_node.attr("href") == node.attr("href")){
if (class_name != "selected"){tab.attr("class", "selected");}
}
else{
if (class_name != "non_selected"){tab.attr("class", "non_selected");}
if (class_name != "active"){tab.attr("class", "active");}
} else {
if (class_name != "" ){tab.attr("class", "");}
}
}
);
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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