Remove some references to "buefy" name within docstrings, comments
This commit is contained in:
parent
c036932ce4
commit
ba521abf4f
|
@ -968,10 +968,10 @@ class Form(object):
|
||||||
|
|
||||||
def render_field_complete(self, fieldname, bfield_attrs={}):
|
def render_field_complete(self, fieldname, bfield_attrs={}):
|
||||||
"""
|
"""
|
||||||
Render the given field in a Buefy-compatible way. Note that
|
Render the given field completely, i.e. with ``<b-field>``
|
||||||
this is meant to render *editable* fields, i.e. showing a
|
wrapper. Note that this is meant to render *editable* fields,
|
||||||
widget, unless the field input is hidden. In other words it's
|
i.e. showing a widget, unless the field input is hidden. In
|
||||||
not for "readonly" fields.
|
other words it's not for "readonly" fields.
|
||||||
"""
|
"""
|
||||||
dform = self.make_deform_form()
|
dform = self.make_deform_form()
|
||||||
field = dform[fieldname] if fieldname in dform else None
|
field = dform[fieldname] if fieldname in dform else None
|
||||||
|
|
|
@ -57,11 +57,11 @@ class NumberInputWidget(dfwidget.TextInputWidget):
|
||||||
|
|
||||||
class NumericInputWidget(NumberInputWidget):
|
class NumericInputWidget(NumberInputWidget):
|
||||||
"""
|
"""
|
||||||
This widget only supports Buefy themes for now. It uses a
|
This widget uses a ``<numeric-input>`` component, which will
|
||||||
``<numeric-input>`` component, which will leverage the ``numeric.js``
|
leverage the ``numeric.js`` functions to ensure user doesn't enter
|
||||||
functions to ensure user doesn't enter any non-numeric values. Note that
|
any non-numeric values. Note that this still uses a normal "text"
|
||||||
this still uses a normal "text" input on the HTML side, as opposed to a
|
input on the HTML side, as opposed to a "number" input, since the
|
||||||
"number" input, since the latter is a bit ugly IMHO.
|
latter is a bit ugly IMHO.
|
||||||
"""
|
"""
|
||||||
template = 'numericinput'
|
template = 'numericinput'
|
||||||
allow_enter = True
|
allow_enter = True
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* grids.rowstatus.css
|
* grids.rowstatus.css
|
||||||
*
|
*
|
||||||
* Add "row status" styles for Buefy grid tables.
|
* Add "row status" styles for grid tables.
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
/**************************************************
|
/**************************************************
|
||||||
|
|
|
@ -28,9 +28,7 @@
|
||||||
% endif
|
% endif
|
||||||
|
|
||||||
ThisPage.methods.detachPerson = function(url) {
|
ThisPage.methods.detachPerson = function(url) {
|
||||||
## TODO: this should require POST, but we will add that once
|
## TODO: this should require POST! but for now we just redirect..
|
||||||
## we can assume a Buefy theme is present, to avoid having to
|
|
||||||
## implement the logic in old jquery...
|
|
||||||
if (confirm("Are you sure you want to detach this person from this customer account?")) {
|
if (confirm("Are you sure you want to detach this person from this customer account?")) {
|
||||||
location.href = url
|
location.href = url
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,9 +15,7 @@
|
||||||
% endif
|
% endif
|
||||||
|
|
||||||
ThisPage.methods.detachPerson = function(url) {
|
ThisPage.methods.detachPerson = function(url) {
|
||||||
## TODO: this should require POST, but we will add that once
|
## TODO: this should require POST! but for now we just redirect..
|
||||||
## we can assume a Buefy theme is present, to avoid having to
|
|
||||||
## implement the logic in old jquery...
|
|
||||||
if (confirm("Are you sure you want to detach this person from this customer account?")) {
|
if (confirm("Are you sure you want to detach this person from this customer account?")) {
|
||||||
location.href = url
|
location.href = url
|
||||||
}
|
}
|
||||||
|
|
|
@ -341,8 +341,7 @@ class AppSettingsView(View):
|
||||||
|
|
||||||
# specify error / message if applicable
|
# specify error / message if applicable
|
||||||
# TODO: not entirely clear to me why some field errors are
|
# TODO: not entirely clear to me why some field errors are
|
||||||
# represented differently? presumably it depends on
|
# represented differently?
|
||||||
# whether Buefy is used by the theme.
|
|
||||||
if field.error:
|
if field.error:
|
||||||
s['error'] = True
|
s['error'] = True
|
||||||
if isinstance(field.error, colander.Invalid):
|
if isinstance(field.error, colander.Invalid):
|
||||||
|
|
Loading…
Reference in a new issue