forked from amer2004/SweetHome
Added city and document type
This commit is contained in:
19
app/enums/DocumentType.js
Normal file
19
app/enums/DocumentType.js
Normal file
@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Document type enum for owner property submission.
|
||||
* Values are intentionally English keys so the UI can store normalized identifiers.
|
||||
*/
|
||||
const DocumentType = Object.freeze({
|
||||
PASSPORT: 'Passport',
|
||||
IDCARD: 'IDCard',
|
||||
BOTH: 'Both',
|
||||
});
|
||||
|
||||
const DocumentTypeLabels = Object.freeze({
|
||||
[DocumentType.PASSPORT]: 'جواز سفر',
|
||||
[DocumentType.IDCARD]: 'بطاقة شخصية',
|
||||
[DocumentType.BOTH]: 'كلاهما',
|
||||
});
|
||||
|
||||
const DocumentTypeList = Object.freeze(Object.values(DocumentType));
|
||||
|
||||
export { DocumentType, DocumentTypeLabels, DocumentTypeList };
|
||||
39
app/enums/Governorate.js
Normal file
39
app/enums/Governorate.js
Normal file
@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Syrian governorates enum using English normalized values.
|
||||
* Labels are provided separately for Arabic display.
|
||||
*/
|
||||
const Governorate = Object.freeze({
|
||||
DAMASCUS: 'Damascus',
|
||||
ALEPPO: 'Aleppo',
|
||||
LATAKIA: 'Latakia',
|
||||
HAMA: 'Hama',
|
||||
TARTOUS: 'Tartous',
|
||||
DEIR_EZZOR: 'DeirEzzor',
|
||||
RAQQA: 'Raqqa',
|
||||
IDLIB: 'Idlib',
|
||||
DRAA: 'Daraa',
|
||||
SUWEIDA: 'Suweida',
|
||||
HASAKAH: 'Hasakah',
|
||||
QUNEITRA: 'Quneitra',
|
||||
RURAL_DAMASCUS: 'RuralDamascus',
|
||||
});
|
||||
|
||||
const GovernorateLabels = Object.freeze({
|
||||
[Governorate.DAMASCUS]: 'دمشق',
|
||||
[Governorate.ALEPPO]: 'حلب',
|
||||
[Governorate.LATAKIA]: 'اللاذقية',
|
||||
[Governorate.HAMA]: 'حماة',
|
||||
[Governorate.TARTOUS]: 'طرطوس',
|
||||
[Governorate.DEIR_EZZOR]: 'دير الزور',
|
||||
[Governorate.RAQQA]: 'الرقة',
|
||||
[Governorate.IDLIB]: 'إدلب',
|
||||
[Governorate.DRAA]: 'درعا',
|
||||
[Governorate.SUWEIDA]: 'السويداء',
|
||||
[Governorate.HASAKAH]: 'الحسكة',
|
||||
[Governorate.QUNEITRA]: 'القنيطرة',
|
||||
[Governorate.RURAL_DAMASCUS]: 'ريف دمشق',
|
||||
});
|
||||
|
||||
const GovernorateList = Object.freeze(Object.values(Governorate));
|
||||
|
||||
export { Governorate, GovernorateLabels, GovernorateList };
|
||||
@ -18,6 +18,8 @@ export { RentPropertyType, RentPropertyTypeLabels } from './RentPropertyType';
|
||||
export { RentType, RentTypeLabels } from './RentType';
|
||||
export { PropertyService, PropertyServiceLabels, PropertyServicesList } from './PropertyService';
|
||||
export { PropertyTerm, PropertyTermLabels, PropertyTermsList } from './PropertyTerm';
|
||||
export { DocumentType, DocumentTypeLabels, DocumentTypeList } from './DocumentType';
|
||||
export { Governorate, GovernorateLabels, GovernorateList } from './Governorate';
|
||||
export { Currency, CurrencyLabels, CurrencySymbols } from './Currency';
|
||||
export { DeviceType } from './DeviceType';
|
||||
export { SalePropertiesStatus, SalePropertiesStatusLabels } from './SalePropertiesStatus';
|
||||
|
||||
Reference in New Issue
Block a user