PM-397 Arreglar el formulario de creacion/edicion de Inputdocs
Se corrigieron los siguientes errores: - Se agrego * en todos los campos requeridos. - Se aumento '*.*' como valor por defecto en el campo 'Allowed file extensions' - Se valido que el campo 'Maximum file size' no permita vacio.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
<td class="FormTitle" colspan="2" align="">{$form.TITLE}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="FormLabel" width="{$form_labelWidth}">{$INP_DOC_TITLE}</td>
|
||||
<td class="FormLabel" width="{$form_labelWidth}"><font color="red">* </font>{$INP_DOC_TITLE}</td>
|
||||
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.INP_DOC_TITLE} </td> //-->
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.INP_DOC_TITLE}</td>
|
||||
</tr>
|
||||
@@ -57,13 +57,13 @@
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.INP_DOC_TAGS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="FormLabel" width="{$form_labelWidth}">{$INP_DOC_TYPE_FILE}</td>
|
||||
<td class="FormLabel" width="{$form_labelWidth}"><font color="red">* </font>{$INP_DOC_TYPE_FILE}</td>
|
||||
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.INP_DOC_TYPE_FILE} </td> //-->
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.INP_DOC_TYPE_FILE}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='FormLabel' width="{$form_labelWidth}">{$INP_DOC_MAX_FILESIZE}</td>
|
||||
<td class='FormLabel' width="{$form_labelWidth}"><font color="red">* </font>{$INP_DOC_MAX_FILESIZE}</td>
|
||||
<td class='FormFieldContent' >{$form.INP_DOC_MAX_FILESIZE} {$form.INP_DOC_MAX_FILESIZE_UNIT} {$INP_DOC_UPLOAD_MAX_FILESIZE_LABEL} {$form.INP_DOC_UPLOAD_MAX_FILESIZE_LABEL}</td>
|
||||
</tr>
|
||||
|
||||
@@ -75,6 +75,7 @@
|
||||
</tr>
|
||||
</tbody></table>
|
||||
</div>
|
||||
<div class="FormRequiredTextMessage"><font color="red">* </font>{php}echo (G::LoadTranslation('ID_REQUIRED_FIELD'));{/php}</div>
|
||||
<div class="boxBottom"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
<INP_DOC_TAGS type="textpm" size="30" maxlength="200" showVars="1" process="@#PRO_UID" symbol="@#" validate="Tag">
|
||||
<en><![CDATA[Tags]]></en>
|
||||
</INP_DOC_TAGS>
|
||||
<INP_DOC_TYPE_FILE type="text" maxlength="200" size="37" colWidth="200" titleAlign="left" align="left" hint="To verify that the content of the file is the correct according to its extension, it is necessary to enable the FILEINFO extension, if this is not enabled only the extension will be verified." dataCompareField="T.CON_VALUE" dataCompareType="contains">
|
||||
<en><![CDATA[Allowed file extensions (use *.* to allow any extension)]]></en>
|
||||
<INP_DOC_TYPE_FILE type="text" defaultvalue="*.*" maxlength="200" size="37" colWidth="200" titleAlign="left" align="left" hint="To verify that the content of the file is the correct according to its extension, it is necessary to enable the FILEINFO extension, if this is not enabled only the extension will be verified." dataCompareField="T.CON_VALUE" dataCompareType="contains">
|
||||
<en><![CDATA[Allowed file extensions (Use *.* to allow any extension)]]></en>
|
||||
</INP_DOC_TYPE_FILE>
|
||||
|
||||
<INP_DOC_MAX_FILESIZE type="text" defaultvalue="0" maxlength="10" size="8" mode="edit">
|
||||
|
||||
@@ -52,7 +52,7 @@ var currentPagedTable = @#PAGED_TABLE_ID;
|
||||
|
||||
maxFilesize = maxFilesize * ((maxFilesizeUnit == "MB")? 1024 * 1024 : 1024);
|
||||
|
||||
if (maxFilesize != "" && maxFilesize != 0) {
|
||||
if (getField("INP_DOC_MAX_FILESIZE").value != "") {
|
||||
if(maxFilesize > 0) {
|
||||
if(maxFilesize > uploadMaxFilesize) {
|
||||
new leimnud.module.app.alert().make({label: _("ID_SIZE_VERY_LARGE_PERMITTED")});
|
||||
@@ -60,6 +60,10 @@ var currentPagedTable = @#PAGED_TABLE_ID;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
alert('@G::LoadTranslation(ID_INPUT_DOC_MAX_FILESIZE_REQUIRED)');
|
||||
maxFilesize.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user