Activity #2857
closedFeature #3752: Design of the web framework for Data Centre Software
Feature #1850: Design and Development for web based ANRS
Module #2148: Developement for Configuration screens
Module #2856: Development of modules as per design changes
Module #2896: Development for UI
Development for UI form Platforms
100%
Description
- Create a new menu Platforms
- Develop UI as per attached screenshot
- Develop for a popup form on Add New click for Deployment Type
- Develop for a popup form on Add New click for Platform Type
- Simulate a list of existing Platform list (render from a simulated JSON)
- Simulate lookup data from a response JSON
- Simulate changes in Add new with new entries from form popup.
- On Save click, Modify JSON list and update list.
{"data": [{
"pltf_id": 1,
"pltf_name": "Buoy 1",
"pltf_type_id": "1",
"pltf_type_name": "BUOY",
"dply_type_id": "1",
"dply_type_name": "DEEP",
"active":"Y"
}, {
"pltf_id": 1,
"pltf_name": "Buoy 2",
"pltf_type_id": "1",
"pltf_type_name": "BUOY",
"dply_type_id": "1",
"dply_type_name": "SHALLOW",
"active":"Y"
}
],
"lookup_data":{
"plat_types": [{"pltf_type_id": "1", "pltf_type_name": "BUOY"},{"pltf_type_id": "2", "pltf_type_name": "SHIP"}],
"deploy_types": [{"dply_type_id": "1", "dply_type_name": "SHALLOW"}, {"dply_type_id": "2", "dply_type_name": "SHALLOW"}]
},
"opstatus": {
"status": "success_or_error_warning",
"errorCode": "A code representing the specific error. codes like ERR-<4 digit code>",
"errorMessage": "A human-readable message describing the error",
"timestamp": "Timestamp of when the error occurred",
"source": "Source of the error. database_or_api_validation",
"traceId": "Unique identifier for tracking the request",
"logLevel": "INFO_or_WARN_or_ERROR"
}
}
Updated by Thara S Pillai about 2 years ago
Edit and Remove to update JSON and re-render list
Updated by Siji Mathew about 2 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 50
Updated by Siji Mathew about 2 years ago
- Status changed from In Progress to Resolved
- % Done changed from 80 to 100
The UI screen for the platform is located at: views/platform.ejs.
The corresponding JavaScript file is located at: public/appjs/platform_ui.js.
The select combo and table entries are loaded when the page loads, and the JSON is updated for new entries.
The save, clear, edit, and delete functionalities are working correctly, and when we click delete, it shows an alert message.
Updated by Siji Mathew about 2 years ago
Code modified:
When we add a new deployment type and platform type, the data is updated in the lookup.json.
Platform and platform_type are set as mandatory fields (*).
Default data is added to the existing JSON files.
Updated by Thara S Pillai about 2 years ago
- Status changed from Resolved to Closed
Updated by Thara S Pillai about 2 years ago
- Parent task changed from #2856 to #2896