-
Notifications
You must be signed in to change notification settings - Fork 3
feat(spp_hazard): promote to Beta with UX improvements #32
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 1 commit
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 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -63,28 +63,35 @@ | |||||||||||
| <div class="oe_title"> | ||||||||||||
| <label for="name"/> | ||||||||||||
| <h1> | ||||||||||||
| <field name="name" placeholder="e.g., Typhoon Yolanda"/> | ||||||||||||
| <field name="name" placeholder="e.g., Typhoon Yolanda" | ||||||||||||
| readonly="status == 'closed'"/> | ||||||||||||
| </h1> | ||||||||||||
| </div> | ||||||||||||
| <group> | ||||||||||||
| <group name="main_info"> | ||||||||||||
| <field name="code" placeholder="e.g., 2013-YOLANDA"/> | ||||||||||||
| <field name="category_id" options="{'no_create': True}"/> | ||||||||||||
| <field name="severity"/> | ||||||||||||
| <field name="code" placeholder="e.g., 2013-YOLANDA" | ||||||||||||
| readonly="status == 'closed'"/> | ||||||||||||
| <field name="category_id" options="{'no_create': True}" | ||||||||||||
| readonly="status == 'closed'"/> | ||||||||||||
|
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. The formatting of attributes for this
Suggested change
|
||||||||||||
| <field name="severity" | ||||||||||||
| readonly="status == 'closed'"/> | ||||||||||||
| </group> | ||||||||||||
| <group name="dates"> | ||||||||||||
| <field name="start_date"/> | ||||||||||||
| <field name="end_date"/> | ||||||||||||
| <field name="start_date" | ||||||||||||
| readonly="status == 'closed'"/> | ||||||||||||
| <field name="end_date" | ||||||||||||
| readonly="status == 'closed'"/> | ||||||||||||
| <field name="is_ongoing" invisible="1"/> | ||||||||||||
| </group> | ||||||||||||
| </group> | ||||||||||||
| <notebook> | ||||||||||||
| <page string="Description" name="description"> | ||||||||||||
| <field name="description" placeholder="Describe the incident in detail..."/> | ||||||||||||
| <field name="description" placeholder="Describe the incident in detail..." | ||||||||||||
| readonly="status == 'closed'"/> | ||||||||||||
| </page> | ||||||||||||
| <page string="Affected Areas" name="areas"> | ||||||||||||
| <p class="text-muted">Add areas affected by this incident. Specify severity and population estimates for each area.</p> | ||||||||||||
| <field name="incident_area_ids"> | ||||||||||||
| <p class="text-muted" invisible="status == 'closed'">Add areas affected by this incident. Specify severity and population estimates for each area.</p> | ||||||||||||
| <field name="incident_area_ids" readonly="status == 'closed'"> | ||||||||||||
|
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="area_id" options="{'no_create': True}"/> | ||||||||||||
| <field name="severity_override"/> | ||||||||||||
|
|
@@ -94,7 +101,7 @@ | |||||||||||
| </field> | ||||||||||||
| </page> | ||||||||||||
| <page string="Impacts" name="impacts"> | ||||||||||||
| <field name="impact_ids"> | ||||||||||||
| <field name="impact_ids" readonly="status == 'closed'"> | ||||||||||||
|
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> | ||||||||||||
| <field name="registrant_id"/> | ||||||||||||
| <field name="impact_type_id"/> | ||||||||||||
|
|
||||||||||||
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.
The formatting of attributes for this
fieldtag is inconsistent with other fields in this file (e.g.,registrant_idon line 54). For better readability and maintainability, please adopt a consistent style where attributes other thannameandplaceholderare on new lines.