Skip to content

Commit

Permalink
feat: Add Display Type on field info.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt committed Oct 25, 2024
1 parent 2ca2401 commit 918a973
Show file tree
Hide file tree
Showing 6 changed files with 160 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@
{{ fieldAttributes.help }}
</el-form-item>

<el-form-item
:label="$t('field.displayType.displayType')"
class="justify-text"
>
<b>
{{ fieldAttributes.displayTypeName }}
</b>
</el-form-item>

<el-form-item
v-if="!isEmptyValue(valueField)"
:label="$t('fieldOptions.info.currentValue')"
Expand Down
56 changes: 56 additions & 0 deletions src/lang/ADempiere/en/field/displayType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/**
* ADempiere-Vue (Frontend) for ADempiere ERP & CRM Smart Business Solution
* Copyright (C) 2018-Present E.R.P. Consultores y Asociados, C.A. www.erpya.com
* Contributor(s): Edwin Betancourt [email protected] https://github.com/EdwinBetanc0urt
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

const displayType = {
displayType: 'Display Type',
accountElement: 'Account Element',
amount: 'Amount',
binaryData: 'Binary Data',
button: 'Button',
chart: 'Chart',
color: 'Color',
costPlusPrices: 'Cost+Prices',
date: 'Date',
datePlusTime: 'Date+Time',
fileName: 'Local File Name',
filePath: 'Local File Patch',
filePathOrName: 'Local File Path or Name',
identifier: 'Identifier',
image: 'Image',
integer: 'Integer',
list: 'Reference List',
locationAddress: 'Location Address',
memo: 'Memo (Large Text Editor)',
number: 'Float Number',
printerName: 'Printer Name',
productAttribute: 'Product Attribute',
quantity: 'Quantity',
search: 'Search',
charString: 'Character String',
table: 'Table List',
tableDirect: 'Table Direct',
text: 'Text',
textLong: 'Text Long',
time: 'Time',
url: 'URL',
yesNo: 'Yes/No',
warehouseLocator: 'Warehouse Locator',
resourceAssignment: 'Resource Assignment'
}

export default displayType
2 changes: 2 additions & 0 deletions src/lang/ADempiere/en/field/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

import businessPartner from './businessPartner.ts'
import displayType from './displayType.ts'
import product from './product.ts'
import productAttribute from './productAttribute'
import warehouseLocator from './warehouseLocator'
Expand All @@ -27,6 +28,7 @@ import payment from './payment.ts'

export default {
businessPartner,
displayType,
field: 'Field',
info: 'Information',
calculator: 'Calculator',
Expand Down
56 changes: 56 additions & 0 deletions src/lang/ADempiere/es/field/displayType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/**
* ADempiere-Vue (Frontend) for ADempiere ERP & CRM Smart Business Solution
* Copyright (C) 2018-Present E.R.P. Consultores y Asociados, C.A. www.erpya.com
* Contributor(s): Edwin Betancourt [email protected] https://github.com/EdwinBetanc0urt
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

const displayType = {
displayType: 'Tipo de Visualizaicón',
accountElement: 'Combinanción Contable',
amount: 'Monto',
binaryData: 'Datos Binarios',
button: 'Botón',
chart: 'Gráfico',
color: 'Color',
costPlusPrices: 'Costos+Precios',
date: 'Fecha',
datePlusTime: 'Fecha+Hora',
fileName: 'Nombre de Archivo',
filePath: 'Ruta de Archivo',
filePathOrName: 'Ruta de Archivo o Nombre',
identifier: 'Identificador',
image: 'Imagen',
integer: 'Entero',
list: 'Lista de Referencia',
locationAddress: 'Localización/Dirección',
memo: 'Memo (Texto Largo)',
number: 'Número Flotante',
printerName: 'Nombre Impresora',
productAttribute: 'Atributo de Producto',
quantity: 'Cantidad',
search: 'Búsqueda',
charString: 'Cadena de Caracteres',
table: 'Lista de Tablas',
tableDirect: 'Tabla Directa',
text: 'Texto',
textLong: 'Texto Largo',
time: 'Hora',
url: 'Dirección Web',
yesNo: 'Si/No',
warehouseLocator: 'Ubicación de Almacén',
resourceAssignment: 'Asignación Recurso'
}

export default displayType
2 changes: 2 additions & 0 deletions src/lang/ADempiere/es/field/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

import businessPartner from './businessPartner.ts'
import displayType from './displayType.ts'
import product from './product.ts'
import productAttribute from './productAttribute'
import warehouseLocator from './warehouseLocator'
Expand All @@ -27,6 +28,7 @@ import order from './order.ts'

export default {
businessPartner,
displayType,
field: 'Campo',
info: 'Información',
calculator: 'Calculadora',
Expand Down
Loading

0 comments on commit 918a973

Please sign in to comment.