# <center>13^th^ August, 2019</center> ###### tags: `Daily Internship Documentation` --- ## 30^th^ Day of Internship ## Summary Today I modify the header of Report Repair page & create a card to display the detail information of the problem report. URL: * [**NTUST_RepairmanApp Github ver 2019.08.13**](https://github.com/ianjoseph2204/NTUST_RepairmanApp/tree/0c9ae0a7aa4fe02e9c6e4c2b86f7d52bceca9ce0) --- ## Documentation ### 1. Report Repair Page #### 1.1 report-repair.page.html 1. Modify the header of Report Repair page. ```htmlmixed=3 <div class="header"> <span class="back-button" (click)="backButton()"> <ion-icon class="arrow-back" ion-text-left="10px" name="ios-arrow-back"></ion-icon> <span class="report-repairing-progress">Report repairing progress</span> </span> </div> ``` 2. Create a cart to display the detail information of the problem report. ```htmlmixed=13 + <ion-card> <div class="report-detail"> <span class="detail-logo"> <ion-icon color="primary" name="pin"></ion-icon> </span> <span class="detail-property">Location : </span> <span class="detail-information">{{device_building_position}}, {{device_placement_position}}</span> </div> <div class="report-detail"> <span class="detail-logo"> <ion-icon color="primary" name="pricetag"></ion-icon> </span> <span class="detail-property">Device ID : </span> <span class="detail-information">{{device_id}}</span> </div> <div class="report-detail"> <span class="detail-logo"> <ion-icon color="primary" name="pricetag"></ion-icon> </span> <span class="detail-property">Device Type: </span> <span class="detail-information">{{device_type}}</span> </div> <div class="report-detail"> <span class="detail-logo"> <ion-icon color="primary" name="person"></ion-icon> </span> <span class="detail-property">Repairman : </span> <span class="detail-information">{{employee_name}}</span> </div> <div class="report-detail"> <span class="detail-logo"> <ion-icon color="primary" name="warning"></ion-icon> </span> <span class="detail-property">Problem : </span> <span class="detail-information">{{problem_description}}</span> </div> </ion-card> ``` #### 1.2 report-repair.page.scss 1. The classes for the div in the html. ```css=1 +ion-header{ --ion-background-color: #4a90e2; } .back-button{ position: relative; width: 250px; height: 22px; left: 10px; } .header{ color: white; width: 100%; height: 100%; } .report-repairing-progress{ position: relative; height: 100%; top: 0; left: 5px; font-size: 17px; } .report-detail{ position: relative; width: 90%; height: 50px; margin-right: 10px; top: 5px; } .detail-logo, .detail-property, .detail-information{ position: relative; top: 10px; left: 10px; font-size: 15px; float: left; } .detail-property{ width: 95px; font-weight: bold; } .detail-information{ width: 170px; } $colors: ( primary: #4a90e2, secondary: #32db64, danger: #f53d3d, light: #f4f4f4, dark: #222, vibrant: rebeccapurple, bright: #ffc125 ); ``` --- ## Result ![](https://i.imgur.com/nTlFJG7.gif)