Commit 142a75e1 authored by Cyril Vazquez's avatar Cyril Vazquez

FIX: show description of management rules once selected in modification form modal

parent d076d315
......@@ -15,8 +15,9 @@
<option value='[?merge .code ?]' data-json='[?merge .json ?]'><?merge .code ?></option>
</select><br>
<dl id="accessRule">
<dt><span>Duration</span> : <span id="accessRuleDuration"></span></dt>
<dl class="dl dl-horizontal" id="accessRule">
<dt><span>Duration</span> : </dt><dd span id="accessRuleDuration"></dd>
<dt><span>Description</span> : </dt><dd id="accessRuleDescription"></dd>
</dl>
</td></tr>
......@@ -26,13 +27,13 @@
<?merge retentionRules ?>
<option value='[?merge .code ?]' data-json='[?merge .json ?]'><?merge .label ?></option>
</select><br>
<dl id="retentionRules">
<dt><span>Duration</span> : <span id="retentionRuleDuration"></span></dt>
<dt><span>Final disposition</span> : <span id="retentionRuleFinalDisposition"></span></dt>
</dl>
<dl class="dl dl-horizontal" id="retentionRule">
<dt><span>Duration</span> : </dt><dd id="retentionRuleDuration"></dd>
<dt><span>Final disposition</span> : </dt><dd id="retentionRuleFinalDisposition"></dd>
<dt><span>Description</span> : </dt><dd id="retentionRuleDescription"></dd>
</dl>
</tr>
</tbody>
</table>
</div>
......
......@@ -266,12 +266,15 @@
var accessRuleDuration = (accessRuleCode.duration.split(accessRuleDurationUnit))[0].split("P");
$('#accessRule').css("display", '');
$('#accessRuleDuration').text(accessRuleDuration[1] + ' ' + $('#text_' + accessRuleDurationUnit).html());
$('#accessRuleDescription').text(accessRuleCode.description);
} else {
$('#accessRule').css("display", '');
$('#accessRuleDuration').text(accessRuleCode.durationUnit);
$('#accessRuleDescription').text(accessRuleCode.description);
}
} else {
$('#accessRule').css("display", 'none');
}
......@@ -300,11 +303,12 @@
$('#retentionRule').css("display", '');
$('#retentionRuleDuration').text(retentionRuleDuration[1] + ' ' + $('#text_' + retentionRuleDurationUnit).html());
$('#retentionRuleFinalDisposition').text( $('#text_' + retentionRuleFinalDisposition).html());
$('#retentionRuleDescription').text(retentionRuleCode.description);
} else {
$('#retentionRule').css("display", '');
$('#retentionRuleDuration').text(retentionRuleCode.durationUnit);
$('#retentionRuleFinalDisposition').text($('#text_' + retentionRuleFinalDisposition).html());
$('#retentionRuleDescription').text(retentionRuleCode.description);
}
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment