ItEr30S05RFComportamentoGraficoPlanificadorItEr23S12: Added styling to breadcrumbs
This commit is contained in:
parent
b5e79c6ced
commit
0038f0e44d
4 changed files with 31 additions and 16 deletions
|
|
@ -53,6 +53,7 @@ import org.zkoss.ganttz.resourceload.ResourcesLoadPanel.IToolbarCommand;
|
|||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.util.Composer;
|
||||
import org.zkoss.zkplus.databind.AnnotateDataBinder;
|
||||
import org.zkoss.zul.Image;
|
||||
import org.zkoss.zul.Label;
|
||||
|
||||
/**
|
||||
|
|
@ -104,6 +105,10 @@ public class MultipleTabsPlannerController implements Composer {
|
|||
|
||||
private static final String ORDER_ORDERS_VIEW = _("Order Details");
|
||||
|
||||
private static final String PLANNIFICATION = _("Plannification");
|
||||
|
||||
private static final String BREADCRUMBS_SEPARATOR = "/common/img/migas_separacion.gif";
|
||||
|
||||
private TabsConfiguration tabsConfiguration;
|
||||
|
||||
private Mode mode = Mode.initial();
|
||||
|
|
@ -223,8 +228,9 @@ public class MultipleTabsPlannerController implements Composer {
|
|||
super.afterShowAction();
|
||||
companyPlanningController.setConfigurationForPlanner();
|
||||
breadcrumbs.getChildren().clear();
|
||||
breadcrumbs.appendChild(new Label(
|
||||
"Plannification > Company schedulling "));
|
||||
breadcrumbs.appendChild(new Label(PLANNIFICATION));
|
||||
breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
|
||||
breadcrumbs.appendChild(new Label(ENTERPRISE_VIEW));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
@ -254,12 +260,13 @@ public class MultipleTabsPlannerController implements Composer {
|
|||
if (breadcrumbs.getChildren() != null) {
|
||||
breadcrumbs.getChildren().clear();
|
||||
}
|
||||
breadcrumbs.appendChild(new Label(
|
||||
"Plannification > ORder schedulling "));
|
||||
breadcrumbs.appendChild(new Label(PLANNIFICATION));
|
||||
breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
|
||||
breadcrumbs.appendChild(new Label(ORDER_ENTERPRISE_VIEW));
|
||||
if (mode.isOf(ModeType.ORDER)) {
|
||||
breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
|
||||
breadcrumbs
|
||||
.appendChild(new Label("> "
|
||||
+ mode.getOrder().getName()));
|
||||
.appendChild(new Label(mode.getOrder().getName()));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -297,10 +304,10 @@ public class MultipleTabsPlannerController implements Composer {
|
|||
@Override
|
||||
protected void afterShowAction() {
|
||||
breadcrumbs.getChildren().clear();
|
||||
breadcrumbs.appendChild(new Label("Planification"));
|
||||
breadcrumbs.appendChild(new Label(" > "));
|
||||
breadcrumbs.appendChild(new Label("Resources Load"));
|
||||
breadcrumbs.appendChild(new Label(" > "));
|
||||
breadcrumbs.appendChild(new Label(PLANNIFICATION));
|
||||
breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
|
||||
breadcrumbs.appendChild(new Label(ORDER_RESOURCE_LOAD_VIEW));
|
||||
breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
|
||||
if (mode.isOf(ModeType.ORDER)
|
||||
&& mode.getOrder() != currentOrder) {
|
||||
currentOrder = mode.getOrder();
|
||||
|
|
@ -330,8 +337,9 @@ public class MultipleTabsPlannerController implements Composer {
|
|||
if (breadcrumbs.getChildren() != null) {
|
||||
breadcrumbs.getChildren().clear();
|
||||
}
|
||||
breadcrumbs.appendChild(new Label(
|
||||
"Planification > Overall Resources Load"));
|
||||
breadcrumbs.appendChild(new Label(PLANNIFICATION));
|
||||
breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
|
||||
breadcrumbs.appendChild(new Label(RESOURCE_LOAD_VIEW));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -396,7 +404,8 @@ public class MultipleTabsPlannerController implements Composer {
|
|||
@Override
|
||||
protected void afterShowAction() {
|
||||
breadcrumbs.getChildren().clear();
|
||||
breadcrumbs.appendChild(new Label("order2 > "));
|
||||
breadcrumbs.appendChild(new Label(ORDER_ORDERS_VIEW));
|
||||
breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
|
||||
if (mode.isOf(ModeType.ORDER)) {
|
||||
orderCRUDController.goToEditForm(mode.getOrder());
|
||||
breadcrumbs
|
||||
|
|
|
|||
|
|
@ -135,6 +135,7 @@ a.sub_menu:hover {
|
|||
border-top-color: #DCEEF9;
|
||||
border-bottom-color: #DCEEF9;
|
||||
}
|
||||
.ruta img {
|
||||
margin-bottom:4px;
|
||||
|
||||
.ruta div {
|
||||
padding-bottom:3px;
|
||||
}
|
||||
|
|
@ -183,6 +183,11 @@ table {
|
|||
width: 300px;
|
||||
}
|
||||
|
||||
.message_ERROR img {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.message_INFO {
|
||||
color: #006600;
|
||||
padding: 15px;
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@
|
|||
<n:tr class="ruta">
|
||||
<n:td width="10" height="25"></n:td>
|
||||
<n:td><n:a href="/navalplanner-webapp/" class="ruta"><n:strong>${i18n:_('START')}</n:strong></n:a></n:td>
|
||||
<n:td width="15"><n:div align="center"><n:img src="/navalplanner-webapp/common/img/migas_separacion.gif" width="10" height="15" /></n:div></n:td>
|
||||
<n:td width="15"><n:div align="center"><n:img src="/navalplanner-webapp/common/img/migas_separacion.gif" /></n:div></n:td>
|
||||
<n:td><div id="breadcrumbs"></div></n:td>
|
||||
</n:tr>
|
||||
</n:table></n:td>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue