package tars.ui;

import javafx.fxml.FXML;
import javafx.scene.Node;
import javafx.scene.control.Label;
import javafx.scene.layout.HBox;
import tars.model.task.ReadOnlyTask;

public class TaskCard extends UiPart{

    private static final String FXML = "TaskListCard.fxml";

    @FXML
    private HBox cardPane;
    @FXML
    private Label name;
    @FXML
    private Label id;
    @FXML
    private Label datetime;
    @FXML
    private Label priority;
    @FXML
    private Label email;
    @FXML
    private Label tags;

    private ReadOnlyTask task;
    private int displayedIndex;

    public TaskCard(){

    }

    public static TaskCard load(ReadOnlyTask task, int displayedIndex){
        TaskCard card = new TaskCard();
        card.task = task;
        card.displayedIndex = displayedIndex;
        return UiPartLoader.loadUiPart(card);
    }

    @FXML
    public void initialize() {
        name.setText(task.getName().taskName);
        priority.setText(task.priorityString());
        id.setText(displayedIndex + ". ");
        datetime.setText(task.getDateTime().toString());
//        address.setText(task.getAddress().value);
//        email.setText(task.getEmail().value);
        tags.setText(task.tagsString());
    }

    public HBox getLayout() {
        return cardPane;
    }

    @Override
    public void setNode(Node node) {
        cardPane = (HBox)node;
    }

    @Override
    public String getFxmlPath() {
        return FXML;
    }
}

@@ -475,21 +475,22 @@
 e Label 
-email
+status
 ;%0A    @F
@@ -1087,26 +1087,24 @@
 ing());%0A
-//
         
 address.
@@ -1099,14 +1099,13 @@
     
-addres
+statu
 s.se
@@ -1122,71 +1122,27 @@
 .get
-Address().value);%0A//        email.setText(task.getEmail().value
+Status().toString()
 );%0A 

Add Status to TaskCard.java