Skip to content

Commit

Permalink
new message and validation rsa
Browse files Browse the repository at this point in the history
  • Loading branch information
brandoCarquin committed May 2, 2024
1 parent 0846143 commit a0c23ab
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions views/templates/hook/setting.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -1898,7 +1898,7 @@
<input required="true" type="text" name="CULQI_RSA_ID" id="CULQI_RSA_ID"
value="{$fields_value.CULQI_RSA_ID|escape:'htmlall':'UTF-8'}" class="">
<span id="errorrsaid" class="form-text text-muted"
style="display: none; color: red; font-size: 0.8rem !important;">RSA Id incorrecto.</span>
style="display: none; color: red; font-size: 0.8rem !important;">Ingrese el RSA Id.</span>
<span class="form-text text-muted"> Ingresa tu RSA Id. </span>
</div>
</div>
Expand All @@ -1919,8 +1919,8 @@
</label>
<div class="col-lg-8">
<textarea rows="9" required="true" type="text" name="CULQI_RSA_PK" id="CULQI_RSA_PK">{$fields_value.CULQI_RSA_PK|escape:'htmlall':'UTF-8'}</textarea>
<span id="errorrsaid" class="form-text text-muted"
style="display: none; color: red; font-size: 0.8rem !important;">RSA PK incorrecto.</span>
<span id="errorrsapk" class="form-text text-muted"
style="display: none; color: red; font-size: 0.8rem !important;">Ingrese el RSA Publickey.</span>
<span class="form-text text-muted"> Ingresa tu RSA Publickey. </span>
</div>
</div>
Expand Down Expand Up @@ -2770,6 +2770,16 @@
hasError = '1';
}
if (jQuery('#CULQI_RSA_ID').val() === '' && jQuery('#CULQI_RSA_PK').val()){
jQuery('#errorrsaid').css('display', 'block');
hasError = '1';
}
if (jQuery('#CULQI_RSA_ID').val() && jQuery('#CULQI_RSA_PK').val() === '' ){
jQuery('#errorrsapk').css('display', 'block');
hasError = '1';
}
if (hasError == '1') {
e.preventDefault();
return false;
Expand Down

0 comments on commit a0c23ab

Please sign in to comment.