+
{title} {renderShortUniqueId}
{renderChipStatus}
diff --git a/app/javascript/components/record-form/form/subforms/subform-fields/components/violation-title/styles.css b/app/javascript/components/record-form/form/subforms/subform-fields/components/violation-title/styles.css
index ec355fc729..cf1e1c9350 100644
--- a/app/javascript/components/record-form/form/subforms/subform-fields/components/violation-title/styles.css
+++ b/app/javascript/components/record-form/form/subforms/subform-fields/components/violation-title/styles.css
@@ -4,16 +4,26 @@
color: var(--c-white);
border: solid 1px var(--c-blue);
background-color: var(--c-blue);
+ width: 120px ;
+ word-wrap: normal;
}
.container {
display: inline-flex;
gap: var(--sp-2);
- align-items: center;
+ align-items: flex-start;
}
.title {
display: flex;
align-items: center;
margin-top: 0.1em;
-}
\ No newline at end of file
+}
+
+.titleViolation {
+ display: flex;
+ align-items: center;
+ margin-top: 0.1em;
+ width: 300px !important;
+ word-wrap: normal !important;
+}
diff --git a/app/javascript/components/record-form/form/subforms/subform-header/component.jsx b/app/javascript/components/record-form/form/subforms/subform-header/component.jsx
index 650936b514..9af80d1103 100644
--- a/app/javascript/components/record-form/form/subforms/subform-header/component.jsx
+++ b/app/javascript/components/record-form/form/subforms/subform-header/component.jsx
@@ -27,7 +27,8 @@ const Component = ({
isViolationSubform,
associatedViolations,
renderSecondaryText = false,
- parentTitle
+ parentTitle,
+ mode
}) => {
const i18n = useI18n();
const { collapsed_field_names: collapsedFieldNames, fields } = field.subform_section_id;
@@ -104,6 +105,7 @@ const Component = ({
values={values}
index={index}
collapsedFieldValues={subformValues}
+ mode={mode}
/>
);
}
@@ -140,9 +142,10 @@ Component.propTypes = {
index: PropTypes.number.isRequired,
isViolationSubform: PropTypes.bool,
locale: PropTypes.string.isRequired,
+ mode: PropTypes.object.isRequired,
parentTitle: PropTypes.string,
renderSecondaryText: PropTypes.bool,
- values: PropTypes.array.isRequired
+ values: PropTypes.array.isRequired
};
export default Component;
diff --git a/app/models/permission.rb b/app/models/permission.rb
index 9aebdad551..f5198c7f08 100644
--- a/app/models/permission.rb
+++ b/app/models/permission.rb
@@ -16,6 +16,7 @@ class Permission < ValueObject
# If the role_unique_ids property is empty on a ROLE permission, then that allows this role to manage all other ROLES
attr_accessor :resource, :actions, :role_unique_ids, :agency_unique_ids, :managed_report_scope
+ VERIFY_MRM = 'verify_mrm'
READ = 'read'
WRITE = 'write'
ENABLE_DISABLE_RECORD = 'enable_disable_record'
@@ -195,7 +196,7 @@ class Permission < ValueObject
INCIDENT => [
READ, CREATE, WRITE, ENABLE_DISABLE_RECORD, FLAG, FLAG_RESOLVE_ANY, EXPORT_LIST_VIEW, EXPORT_CSV, EXPORT_EXCEL,
EXPORT_PDF, EXPORT_INCIDENT_RECORDER, EXPORT_JSON, EXPORT_CUSTOM, IMPORT, SYNC_MOBILE, CHANGE_LOG,
- EXPORT_MRM_VIOLATION_XLS, REMOVE_ALERT, ASSIGN, MANAGE
+ EXPORT_MRM_VIOLATION_XLS, REMOVE_ALERT, VERIFY_MRM, ASSIGN, MANAGE
],
TRACING_REQUEST => [
READ, CREATE, WRITE, ENABLE_DISABLE_RECORD, FLAG, FLAG_RESOLVE_ANY, EXPORT_LIST_VIEW, EXPORT_CSV, EXPORT_EXCEL,
diff --git a/config/locales/en.yml b/config/locales/en.yml
index fe89ebc5fa..0897ec7fe3 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1504,6 +1504,7 @@ en:
military_use: Military use of school(s) and/or hospital(s)
denial_humanitarian_access: Denial of humanitarian access for children
incidents:
+ change_status: Change Status
disable_dialog: Clicking OK will change the status of this incident to Disabled.
disable_dialog_title: Disable Incident
disable_success: Successfully disabled incident
@@ -1585,6 +1586,7 @@ en:
survivor_code: Survivor Code
show_incident: 'Incident ID %{short_id}'
social_worker: Social Worker
+ verify_mrm: Verify MRM
violation_type: Violation Type
violence_type: Violence Type
type_violence: Type of Violence
@@ -2393,6 +2395,7 @@ en:
transfer: Can be used for transfer
user: Users
user_group: User Groups
+ verify_mrm: Verify MRM
view_approvals: View Approvals
view_assessment: View Assessment
view_photo: View Photo
@@ -3308,6 +3311,9 @@ en:
also cannot sync their mobile devices with the web application in general,
meaning that they cannot use the mobile app to manage incidents.
label: Sync with mobile device
+ verify_mrm:
+ explanation: MRM user can change the status of violations.
+ label: Verify MRM
write:
explanation: Ability to click the "Edit" button, update information about
the incident, and click "Save". Also allows the user to disable or enable