Skip to content

Commit

Permalink
[GITFLOW]merging 'hotfix-0.13.1' into 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Wahnschaffe committed Jan 25, 2018
2 parents 15217ff + bf89660 commit 2d431a3
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 19 deletions.
2 changes: 1 addition & 1 deletion sormas-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<parent>
<groupId>de.symeda.sormas</groupId>
<artifactId>sormas-base</artifactId>
<version>0.13.0</version>
<version>0.13.1</version>
<relativePath>../sormas-base</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion sormas-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>sormas-base</artifactId>
<groupId>de.symeda.sormas</groupId>
<version>0.13.0</version>
<version>0.13.1</version>
<relativePath>../sormas-base</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion sormas-backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>sormas-base</artifactId>
<groupId>de.symeda.sormas</groupId>
<version>0.13.0</version>
<version>0.13.1</version>
<relativePath>../sormas-base</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion sormas-base/dependencies/bundles.pom
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<artifactId>sormas-base</artifactId>
<groupId>de.symeda.sormas</groupId>
<version>0.13.0</version>
<version>0.13.1</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion sormas-base/dependencies/gf-modules.pom
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<artifactId>sormas-base</artifactId>
<groupId>de.symeda.sormas</groupId>
<version>0.13.0</version>
<version>0.13.1</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion sormas-base/dependencies/serverlibs.pom
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<artifactId>sormas-base</artifactId>
<groupId>de.symeda.sormas</groupId>
<version>0.13.0</version>
<version>0.13.1</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion sormas-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>de.symeda.sormas</groupId>
<artifactId>sormas-base</artifactId>
<packaging>pom</packaging>
<version>0.13.0</version>
<version>0.13.1</version>

<prerequisites>
<maven>3.0</maven>
Expand Down
2 changes: 1 addition & 1 deletion sormas-ear/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>de.symeda.sormas</groupId>
<artifactId>sormas-base</artifactId>
<version>0.13.0</version>
<version>0.13.1</version>
<relativePath>../sormas-base</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion sormas-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>de.symeda.sormas</groupId>
<artifactId>sormas-base</artifactId>
<version>0.13.0</version>
<version>0.13.1</version>
<relativePath>../sormas-base</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion sormas-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>sormas-base</artifactId>
<groupId>de.symeda.sormas</groupId>
<version>0.13.0</version>
<version>0.13.1</version>
<relativePath>../sormas-base</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import java.util.Date;
import java.util.GregorianCalendar;

import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.AbstractSelect;
import com.vaadin.ui.AbstractSelect.ItemCaptionMode;
import com.vaadin.ui.ComboBox;
Expand Down Expand Up @@ -49,8 +50,8 @@ public class PersonEditForm extends AbstractEditForm<PersonDto> {
private static final String OCCUPATION_HEADER = "occupationHeader";
private static final String ADDRESS_HEADER = "addressHeader";

private Label occupationHeader = new Label(LayoutUtil.h3("Occupation"));
private Label addressHeader = new Label(LayoutUtil.h3("Permanent residence of person"));
private Label occupationHeader = new Label(LayoutUtil.h3("Occupation"), ContentMode.HTML);
private Label addressHeader = new Label(LayoutUtil.h3("Permanent residence of person"), ContentMode.HTML);

private boolean facilityFieldsInitialized = false;
private Disease disease;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,15 @@ public HorizontalLayout createFilterBar() {
yearFilter.select(year);
yearFilter.setCaption("Year");
yearFilter.setItemCaptionMode(ItemCaptionMode.ID_TOSTRING);
yearFilter.addValueChangeListener(e -> {
updateEpiWeeks((int)e.getProperty().getValue(), (int)epiWeekFilter.getValue());
reloadGrid();
});
filterLayout.addComponent(yearFilter);

epiWeekFilter = new ComboBox();
epiWeekFilter.setWidth(200, Unit.PIXELS);
List<EpiWeek> epiWeekList = DateHelper.createEpiWeekList(year);
for (EpiWeek epiWeek : epiWeekList) {
epiWeekFilter.addItem(epiWeek.getWeek());
epiWeekFilter.setItemCaption(epiWeek.getWeek(), epiWeek.getWeek() + " (" + DateHelper.formatShortDate(DateHelper.getEpiWeekStart(epiWeek)) + " - " + DateHelper.formatShortDate(DateHelper.getEpiWeekEnd(epiWeek)) + ")");
}
epiWeekFilter.select(week);
updateEpiWeeks(year, week);
epiWeekFilter.setCaption("Epi Week");
epiWeekFilter.addValueChangeListener(e -> {
reloadGrid();
Expand Down Expand Up @@ -99,6 +98,15 @@ public HorizontalLayout createFilterBar() {
return filterLayout;
}

private void updateEpiWeeks(int year, int week) {
List<EpiWeek> epiWeekList = DateHelper.createEpiWeekList(year);
for (EpiWeek epiWeek : epiWeekList) {
epiWeekFilter.addItem(epiWeek.getWeek());
epiWeekFilter.setItemCaption(epiWeek.getWeek(), epiWeek.getWeek() + " (" + DateHelper.formatShortDate(DateHelper.getEpiWeekStart(epiWeek)) + " - " + DateHelper.formatShortDate(DateHelper.getEpiWeekEnd(epiWeek)) + ")");
}
epiWeekFilter.select(week);
}

@Override
public void enter(ViewChangeEvent event) {
reloadGrid();
Expand Down
2 changes: 1 addition & 1 deletion sormas-widgetset/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>sormas-base</artifactId>
<groupId>de.symeda.sormas</groupId>
<version>0.13.0</version>
<version>0.13.1</version>
<relativePath>../sormas-base</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down

0 comments on commit 2d431a3

Please sign in to comment.