diff --git a/src/blenderbim/blenderbim/bim/module/cost/data.py b/src/blenderbim/blenderbim/bim/module/cost/data.py index 3cbef496ec..77efacab69 100644 --- a/src/blenderbim/blenderbim/bim/module/cost/data.py +++ b/src/blenderbim/blenderbim/bim/module/cost/data.py @@ -62,6 +62,7 @@ class CostSchedulesData: { "id": schedule.id(), "name": schedule.Name or "Unnamed", + "predefined_type": schedule.PredefinedType or "", } ) else: @@ -70,6 +71,7 @@ class CostSchedulesData: { "id": schedule.id(), "name": schedule.Name or "Unnamed", + "predefined_type": schedule.PredefinedType or "", } ) return results diff --git a/src/blenderbim/blenderbim/bim/module/cost/ui.py b/src/blenderbim/blenderbim/bim/module/cost/ui.py index db39cc51f1..6456df8916 100644 --- a/src/blenderbim/blenderbim/bim/module/cost/ui.py +++ b/src/blenderbim/blenderbim/bim/module/cost/ui.py @@ -59,7 +59,7 @@ class BIM_PT_cost_schedules(Panel): def draw_cost_schedule_ui(self, cost_schedule): row = self.layout.row(align=True) if self.props.active_cost_schedule_id and self.props.active_cost_schedule_id == cost_schedule["id"]: - row.label(text="Currently editing: {}".format(cost_schedule["name"]), icon="LINENUMBERS_ON") + row.label(text="Currently editing: {}[{}]".format(cost_schedule["name"], cost_schedule["predefined_type"]), icon="LINENUMBERS_ON") grid = self.layout.grid_flow(columns=2, even_columns=True) col = grid.column() row1 = col.row(align=True) @@ -85,7 +85,7 @@ class BIM_PT_cost_schedules(Panel): row.operator("bim.edit_cost_schedule", text="", icon="CHECKMARK") row.operator("bim.disable_editing_cost_schedule", text="Disable Editing", icon="CANCEL") else: - row.label(text=cost_schedule["name"], icon="LINENUMBERS_ON") + row.label(text="{}[{}]".format(cost_schedule["name"], cost_schedule["predefined_type"]), icon="LINENUMBERS_ON") row.operator("bim.enable_editing_cost_items", text="", icon="OUTLINER").cost_schedule = cost_schedule["id"] row.operator( "bim.enable_editing_cost_schedule_attributes", text="", icon="GREASEPENCIL"