fixed display of computed fields
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
label, th {
|
||||||
|
font-weigth: bold;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
div.w2p_flash {
|
div.w2p_flash {
|
||||||
background-image: none;
|
background-image: none;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|||||||
+4
-3
@@ -1345,9 +1345,10 @@ class SQLFORM(FORM):
|
|||||||
# if no fields are provided, build it from the provided table
|
# if no fields are provided, build it from the provided table
|
||||||
# will only use writable or readable fields, unless forced to ignore
|
# will only use writable or readable fields, unless forced to ignore
|
||||||
if fields is None:
|
if fields is None:
|
||||||
fields = [f.name for f in table if
|
if not readonly:
|
||||||
(ignore_rw or f.writable or f.readable) and
|
fields = [f.name for f in table if (ignore_rw or f.writable) and (not f.compute or record)]
|
||||||
not (f.compute and not record)]
|
else:
|
||||||
|
fields = [f.name for f in table if (ignore_rw or f.readable)]
|
||||||
self.fields = fields
|
self.fields = fields
|
||||||
|
|
||||||
# make sure we have an id
|
# make sure we have an id
|
||||||
|
|||||||
+1
-1
@@ -3051,7 +3051,7 @@ class Auth(AuthAPI):
|
|||||||
|
|
||||||
if self.settings.register_verify_password:
|
if self.settings.register_verify_password:
|
||||||
if self.settings.register_fields is None:
|
if self.settings.register_fields is None:
|
||||||
self.settings.register_fields = [f.name for f in table_user if f.writable]
|
self.settings.register_fields = [f.name for f in table_user if f.writable and not f.compute]
|
||||||
k = self.settings.register_fields.index(passfield)
|
k = self.settings.register_fields.index(passfield)
|
||||||
self.settings.register_fields.insert(k + 1, "password_two")
|
self.settings.register_fields.insert(k + 1, "password_two")
|
||||||
extra_fields = [
|
extra_fields = [
|
||||||
|
|||||||
Reference in New Issue
Block a user