Races lists - Fixed styles and disabled competition format

This commit is contained in:
Benjamin Barth committed 2015-07-03 10:05:04 +02:00
1 parent b97f20a8d0
commit 70e1ccec0e
3 files changed
+7 -9

No files matched your search

@@ -3,7 +3,7 @@
*/
.phase {
font-size: 1rem;
margin-top: 2em;
margin-bottom: 2em;
}
.phase_head {
padding: 1.333333333333333em 1.333333333333333em 2.666666666666667em 2em;
@@ -3,7 +3,7 @@
xmlns:s="urn:import:com.sap.sailing.gwt.home.client.shared" xmlns:p='urn:import:com.sap.sailing.gwt.home.client.place.event.partials'>
<ui:with field="res" type="com.sap.sailing.gwt.common.client.SharedResources" />
<ui:with field="local_res" type="com.sap.sailing.gwt.home.client.place.event.partials.raceCompetition.RegattaCompetitionResources" />
<div addStyleNames="{local_res.css.fleet}">
<div class="{local_res.css.fleet}">
<div class="{local_res.css.fleet_corner}" ui:field="fleetCornerUi"></div>
<div class="{local_res.css.fleet_details}">
<div class="{local_res.css.fleet_details_name}" ui:field="fleetNameUi"></div>
@@ -18,7 +18,6 @@ import com.sap.sailing.gwt.home.client.place.event.partials.listNavigation.ListN
import com.sap.sailing.gwt.home.client.place.event.partials.listNavigation.ListNavigationPanel.ListNavigationAction;
import com.sap.sailing.gwt.home.client.place.event.partials.listNavigation.ListNavigationPanel.SelectionCallback;
import com.sap.sailing.gwt.home.client.place.event.partials.listNavigation.RaceStateLegend;
import com.sap.sailing.gwt.home.client.place.event.partials.raceCompetition.RegattaCompetitionSeries;
import com.sap.sailing.gwt.home.client.place.event.partials.raceListLive.RacesListLive;
import com.sap.sailing.gwt.home.client.place.event.partials.racelist.AbstractRaceList;
import com.sap.sailing.gwt.home.client.place.event.partials.racelist.RaceListContainer;
@@ -27,7 +26,6 @@ import com.sap.sailing.gwt.home.client.place.event.regatta.RegattaTabView;
import com.sap.sailing.gwt.ui.shared.dispatch.ResultWithTTL;
import com.sap.sailing.gwt.ui.shared.dispatch.event.GetRaceListViewAction;
import com.sap.sailing.gwt.ui.shared.dispatch.event.RaceListRaceDTO;
import com.sap.sailing.gwt.ui.shared.dispatch.event.RaceListSeriesDTO;
import com.sap.sailing.gwt.ui.shared.dispatch.event.RaceListViewDTO;
/**
@@ -83,7 +81,7 @@ public class RegattaRacesTabView extends Composite implements RegattaTabView<Reg
this.currentPresenter = currentPresenter;
listFormatContainerUi.add(liveRacesList = new RacesListLive(currentPresenter, false));
RaceListContainer<RaceListRaceDTO> container = new RaceListContainer<>("Finished Races TODO", finishedRacesList = new RaceListFinishedRaces(currentPresenter));
container.setInfoText("Das ist eine Info!!");
container.setInfoText("Info text");
listFormatContainerUi.add(container);
}
@@ -95,7 +93,7 @@ public class RegattaRacesTabView extends Composite implements RegattaTabView<Reg
@Override
public void start(RegattaRacesPlace myPlace, final AcceptsOneWidget contentArea) {
listNavigationPanelUi.addAction(Navigation.SORT_LIST_FORMAT, true);
listNavigationPanelUi.addAction(Navigation.COMPETITION_FORMAT, false);
// listNavigationPanelUi.addAction(Navigation.COMPETITION_FORMAT, false);
GetRaceListViewAction action = new GetRaceListViewAction(myPlace.getCtx().getEventDTO().getId());
currentPresenter.getDispatch().execute(action, new AsyncCallback<ResultWithTTL<RaceListViewDTO>>() {
@@ -106,9 +104,9 @@ public class RegattaRacesTabView extends Composite implements RegattaTabView<Reg
public void onSuccess(ResultWithTTL<RaceListViewDTO> result) {
liveRacesList.setData(result.getDto().getLiveRaces(), 0, 0);
finishedRacesList.setListData(result.getDto().getAllRaces());
for (RaceListSeriesDTO series : result.getDto().getRacesForCompetitionFormat()) {
compFormatContainerUi.add(new RegattaCompetitionSeries(currentPresenter, series));
}
// for (RaceListSeriesDTO series : result.getDto().getRacesForCompetitionFormat()) {
// compFormatContainerUi.add(new RegattaCompetitionSeries(currentPresenter, series));
// }
contentArea.setWidget(RegattaRacesTabView.this);
}
});