{if $us_rights_mode>=3}
    {* //SaaS v2 *}
    {include file='r/checkbox.tpl' name="policy_use_policies" title=$i.masterdatamanagement_password_policies_use default=true readonly=true}
{else}
    {include file='r/checkbox.tpl' name="policy_use_policies" title=$i.masterdatamanagement_password_policies_use default=$use_policies}
{/if}

<div id="policies_section" style="{if !$use_policies}display:none; {/if}margin-left: 20px">
    {include file='r/input.tpl' name="policy_min_length" title=$i.masterdatamanagement_password_policies_min_length collapse='' class="numberi18n digits"}
    {include file='r/input.tpl' name="policy_max_length" title=$i.masterdatamanagement_password_policies_max_length collapse='' class="numberi18n digits"}
    {include file='r/input.tpl' name="policy_min_numeric" title=$i.masterdatamanagement_password_policies_min_numeric collapse='' class="numberi18n digits"}
    {include file='r/input.tpl' name="policy_min_upper" title=$i.masterdatamanagement_password_policies_min_upper collapse='' class="numberi18n digits"}
    {include file='r/input.tpl' name="policy_min_special" title=$i.masterdatamanagement_password_policies_min_special collapse='' class="numberi18n digits"
    add_icons_file="basic_icon" add_icons_class="dialog_make_btn16 info smallbtns ui-corner-all"}

    {include file='r/input.tpl' name="policy_regex" title=$i.masterdatamanagement_password_policies_regex default=$regex collapse='' class="t-mid" filter_extra='onchange="webConfig.pwpolicies.test();"' readonly="readonly"}
    {include file='r/input.tpl' name="policy_test" title=$i.masterdatamanagement_password_policies_test collapse='' class="" filter_extra="onkeyup='webConfig.pwpolicies.test();'"}
</div>
