diff --git a/applications/welcome/static/css/web2py-bootstrap4.css b/applications/welcome/static/css/web2py-bootstrap4.css index 641a4cfa..1fc98619 100644 --- a/applications/welcome/static/css/web2py-bootstrap4.css +++ b/applications/welcome/static/css/web2py-bootstrap4.css @@ -321,3 +321,20 @@ td.w2p_fc, input[type=checkbox], input[type=radio] { margin: 4px 4px 0 0; } + +/* for backward compatbility with pre-font-awesome */ +.icon.plus,.icon.arrowleft,.icon.download,.icon.trash,.icon.pen,.icon.arrowright,.icon.magnifier { + display: inline-block; + font: normal normal normal 14px/1 FontAwesome; + font-size: inherit; + text-rendering: auto; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +.icon.plus:before { content: "\f067";} +.icon.arrowleft:before { content: "\f060";} +.icon.download:before { content: "\f019";} +.icon.trash:before { content: "\f1f8";} +.icon.pen:before { content: "\f040";} +.icon.arrowright:before { content: "\f061";} +.icon.magnifier:before { content: "\f002";} \ No newline at end of file diff --git a/applications/welcome/views/default/index.html b/applications/welcome/views/default/index.html index 4a614a1f..5517fcfc 100644 --- a/applications/welcome/views/default/index.html +++ b/applications/welcome/views/default/index.html @@ -23,7 +23,7 @@
- + {{=T("admin")}} {{=T("Online examples")}} diff --git a/applications/welcome/views/layout.html b/applications/welcome/views/layout.html index 54dcf8d2..a65a78a7 100644 --- a/applications/welcome/views/layout.html +++ b/applications/welcome/views/layout.html @@ -20,6 +20,7 @@ http://google.com/webmasters --> + diff --git a/gluon/packages/dal b/gluon/packages/dal index ccc4d4c7..ecb71853 160000 --- a/gluon/packages/dal +++ b/gluon/packages/dal @@ -1 +1 @@ -Subproject commit ccc4d4c7f8e9bfb285597d266489e169ecadbbfa +Subproject commit ecb71853bfc753a6d33fdb8aab64b0a281f9f5e9 diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 2354983b..aa0f5505 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -2307,7 +2307,7 @@ class SQLFORM(FORM): cornerall='', cornertop='', cornerbottom='', - button='button btn btn-default', + button='button btn btn-default btn-secondary', buttontext='buttontext button', buttonadd='icon plus icon-plus glyphicon glyphicon-plus', buttonback='icon leftarrow icon-arrow-left glyphicon glyphicon-arrow-left', @@ -2748,8 +2748,8 @@ class SQLFORM(FORM): _id=skeywords_id, _class='form-control', _onfocus="jQuery('#%s').change();jQuery('#%s').slideDown();" % (spanel_id, sfields_id) if advanced_search else '' ), - INPUT(_type='submit', _value=T('Search'), _class="btn btn-default"), - INPUT(_type='submit', _value=T('Clear'), _class="btn btn-default", + INPUT(_type='submit', _value=T('Search'), _class="btn btn-default btn-secondary"), + INPUT(_type='submit', _value=T('Clear'), _class="btn btn-default btn-secondary", _onclick="jQuery('#%s').val('');" % skeywords_id), *hidden_fields, _method="GET", _action=url), search_menu) @@ -3135,7 +3135,7 @@ class SQLFORM(FORM): order=request.vars.order or '', _export_type=k, keywords=keywords or '')) - export_links.append(A(T(label), _href=link, _title=title, _class='btn btn-default')) + export_links.append(A(T(label), _href=link, _title=title, _class='btn btn-default btn-secondary')) export_menu = \ DIV(T('Export:'), _class="w2p_export_menu", *export_links) else: