@@ -0,0 +1,1293 @@
+package gq.vaccum121.ui;%0A%0Aimport com.vaadin.shared.ui.datefield.Resolution;%0Aimport com.vaadin.ui.DateField;%0Aimport com.vaadin.ui.FormLayout;%0Aimport com.vaadin.ui.InlineDateField;%0Aimport com.vaadin.ui.Label;%0Aimport gq.vaccum121.data.OrderRepository;%0Aimport gq.vaccum121.ui.event.EventSystem;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0A%0Aimport java.util.Date;%0Aimport java.util.Locale;%0Aimport java.util.TimeZone;%0A%0A/**%0A * Created by dezmo on 28.05.2016.%0A */%0Apublic class OrderForm extends FormLayout %7B%0A    private Logger log = LoggerFactory.getLogger(OrderForm.class);%0A%0A    @Autowired%0A    private OrderRepository orderService;%0A%0A    @Autowired%0A    private EventSystem eventSystem;%0A%0A    private String id = null;%0A    private Label orderTime = new Label(%22Order time: %22);%0A    private InlineDateField orderDate = new InlineDateField();%0A%0A%0A    public OrderForm() %7B%0A        initForm();%0A    %7D%0A%0A    private void initForm() %7B%0A        orderDate.setValue(new Date());%0A        orderDate.setImmediate(true);%0A        orderDate.setTimeZone(TimeZone.getTimeZone(%22UTC%22));%0A        orderDate.setLocale(Locale.US);%0A        orderDate.setResolution(Resolution.MINUTE);%0A        addComponent(orderTime);%0A        addComponent(orderDate);%0A%0A    %7D%0A%7D%0A

add OrderForm