Skip to content

Commit

Permalink
NXP-32189: expose flexible retention during creation, edit and view
Browse files Browse the repository at this point in the history
  • Loading branch information
swarnadipa-dev authored and Nishant0928 committed Dec 18, 2023
1 parent 0e9d9c3 commit 63ef5d5
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,21 @@
>
</nuxeo-input>

<paper-checkbox role="widget" name="disabled" checked="{{document.properties.retention_rule:enabled}}">
[[i18n('retention.rule.label.enabled')]]
</paper-checkbox>
<div>
<paper-checkbox role="widget" name="disabled" checked="{{document.properties.retention_rule:enabled}}">
[[i18n('retention.rule.label.enabled')]]
</paper-checkbox>
</div>

<div>
<paper-checkbox
role="widget"
name="allowUndeclareRecord"
checked="{{document.properties.retention_rule:flexibleRecords}}"
>
[[i18n('retention.rule.label.allowUndeclareRecord')]]
</paper-checkbox>
</div>

<nuxeo-card heading="[[i18n('retention.rule.label.applicationPolicy.heading')]]">
<nuxeo-select
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,21 @@
>
</nuxeo-input>

<paper-checkbox role="widget" name="disabled" checked="{{document.properties.retention_rule:enabled}}">
[[i18n('retention.rule.label.enabled')]]
</paper-checkbox>
<div>
<paper-checkbox role="widget" name="disabled" checked="{{document.properties.retention_rule:enabled}}">
[[i18n('retention.rule.label.enabled')]]
</paper-checkbox>
</div>

<div>
<paper-checkbox
role="widget"
name="allowUndeclareRecord"
checked="{{document.properties.retention_rule:flexibleRecords}}"
>
[[i18n('retention.rule.label.allowUndeclareRecord')]]
</paper-checkbox>
</div>

<nuxeo-card heading="[[i18n('retention.rule.label.applicationPolicy.heading')]]">
<nuxeo-select
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@
>[[i18n('retention.rule.label.disabled')]]</label
>
</div>

<div role="widget">
<label hidden$="[[!document.properties.retention_rule:flexibleRecords]]">
[[i18n('retention.rule.label.canBeUndeclared')]]
</label>
<label hidden$="[[document.properties.retention_rule:flexibleRecords]]">
[[i18n('retention.rule.label.cannotBeUndeclared')]]
</label>
</div>
</nuxeo-card>

<nuxeo-card heading="[[i18n('retention.rule.label.applicationPolicy.heading')]]">
Expand Down

0 comments on commit 63ef5d5

Please sign in to comment.