-
Notifications
You must be signed in to change notification settings - Fork 1
fix(registry,programs): restore readonly=disabled and editable lists broken by lint #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -218,8 +218,8 @@ Part of OpenSPP. See LICENSE file for full copyright and licensing details. | |
| </field> | ||
| </page> | ||
| <page string="IDs" name="ids"> | ||
| <field name="reg_ids" nolabel="1" colspan="2" readonly="1"> | ||
| <list> | ||
| <field name="reg_ids" nolabel="1" colspan="2"> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| <list editable="bottom"> | ||
| <field name="id_type_id" /> | ||
| <field name="value" string="ID Number" /> | ||
| <field name="expiry_date" /> | ||
|
|
@@ -228,13 +228,8 @@ Part of OpenSPP. See LICENSE file for full copyright and licensing details. | |
| </page> | ||
| <page string="Relationships" name="relationships"> | ||
| <group string="Registrant is related to:"> | ||
| <field | ||
| name="related_1_ids" | ||
| nolabel="1" | ||
| colspan="2" | ||
| readonly="1" | ||
| > | ||
| <list> | ||
| <field name="related_1_ids" nolabel="1" colspan="2"> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| <list editable="bottom"> | ||
| <field | ||
| name="source" | ||
| domain="[('is_registrant','=',True),('id','!=',id)]" | ||
|
|
@@ -318,9 +313,8 @@ Part of OpenSPP. See LICENSE file for full copyright and licensing details. | |
| name="individual_membership_ids" | ||
| nolabel="1" | ||
| colspan="2" | ||
| readonly="1" | ||
| > | ||
| <list> | ||
| <list editable="bottom"> | ||
| <field | ||
| name="group" | ||
| domain="[('is_registrant','=',True),('is_group','=',True)]" | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -14,8 +14,8 @@ | |||||||||||||||||||||||
| </xpath> | ||||||||||||||||||||||||
| <xpath expr="//div[@name='group_members_section']" position="inside"> | ||||||||||||||||||||||||
| <separator string="Group Members" /> | ||||||||||||||||||||||||
| <field name="group_membership_ids" readonly="1" nolabel="1"> | ||||||||||||||||||||||||
| <list default_order='status asc,ended_date asc'> | ||||||||||||||||||||||||
| <field name="group_membership_ids" readonly="disabled" nolabel="1"> | ||||||||||||||||||||||||
| <list editable="top" default_order='status asc,ended_date asc'> | ||||||||||||||||||||||||
|
Comment on lines
+17
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency with other view files in this PR (e.g.,
Suggested change
|
||||||||||||||||||||||||
| <button | ||||||||||||||||||||||||
| name="open_individual_form" | ||||||||||||||||||||||||
| type="object" | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,8 +14,8 @@ | |
| </xpath> | ||
| <xpath expr="//div[@name='membership_section']" position="inside"> | ||
| <separator string="Group Membership" /> | ||
| <field name="individual_membership_ids" readonly="1" nolabel="1"> | ||
| <list> | ||
| <field name="individual_membership_ids" readonly="disabled" nolabel="1"> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| <list editable="top"> | ||
| <button | ||
| name="open_group_form" | ||
| type="object" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency with other view files in this pull request (e.g.,
spp_registry/views/individual_views.xml) and for better readability, consider placing attributes of the<field>and<list>tags on separate lines.