PageRenderTime 32ms CodeModel.GetById 28ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/web/beslagslister/Create.xhtml

https://bitbucket.org/mgyth/server2
XHTML | 55 lines | 53 code | 2 blank | 0 comment | 0 complexity | 76f1a6519ef0cdf864c26fc0f02b6a05 MD5 | raw file
 1<?xml version="1.0" encoding="UTF-8" ?>
 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 3<html xmlns="http://www.w3.org/1999/xhtml"
 4      xmlns:ui="http://java.sun.com/jsf/facelets"
 5      xmlns:h="http://java.sun.com/jsf/html"
 6      xmlns:f="http://java.sun.com/jsf/core">
 7
 8    <ui:composition template="/template.xhtml">
 9        <ui:define name="title">
10            <h:outputText value="#{bundle.CreateBeslagslisterTitle}"></h:outputText>
11        </ui:define>
12        <ui:define name="body">
13            <h:panelGroup id="messagePanel" layout="block">
14                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
15            </h:panelGroup>
16            <h:form>
17                <h:panelGrid columns="2">
18                    <h:outputLabel value="#{bundle.CreateBeslagslisterLabel_IDBeslagsliste}" for="IDBeslagsliste" />
19                    <h:inputText id="IDBeslagsliste" value="#{beslagslisterController.selected.IDBeslagsliste}" title="#{bundle.CreateBeslagslisterTitle_IDBeslagsliste}" required="true" requiredMessage="#{bundle.CreateBeslagslisterRequiredMessage_IDBeslagsliste}"/>
20                    <h:outputLabel value="#{bundle.CreateBeslagslisterLabel_beslagnavn}" for="beslagnavn" />
21                    <h:inputText id="beslagnavn" value="#{beslagslisterController.selected.beslagnavn}" title="#{bundle.CreateBeslagslisterTitle_beslagnavn}" />
22                    <h:outputLabel value="#{bundle.CreateBeslagslisterLabel_overflate}" for="overflate" />
23                    <h:inputText id="overflate" value="#{beslagslisterController.selected.overflate}" title="#{bundle.CreateBeslagslisterTitle_overflate}" />
24                    <h:outputLabel value="#{bundle.CreateBeslagslisterLabel_montert}" for="montert" />
25                    <h:inputText id="montert" value="#{beslagslisterController.selected.montert}" title="#{bundle.CreateBeslagslisterTitle_montert}" />
26                    <h:outputLabel value="#{bundle.CreateBeslagslisterLabel_sistendret}" for="sistendret" />
27                    <h:inputText id="sistendret" value="#{beslagslisterController.selected.sistendret}" title="#{bundle.CreateBeslagslisterTitle_sistendret}" >
28                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
29                    </h:inputText>
30                    <h:outputLabel value="#{bundle.CreateBeslagslisterLabel_montertavfk}" for="montertavfk" />
31                    <h:selectOneMenu id="montertavfk" value="#{beslagslisterController.selected.montertavfk}" title="#{bundle.CreateBeslagslisterTitle_montertavfk}" >
32                        <f:selectItems value="#{brukereController.itemsAvailableSelectOne}"/>
33                    </h:selectOneMenu>
34                    <h:outputLabel value="#{bundle.CreateBeslagslisterLabel_doridfk}" for="doridfk" />
35                    <h:selectOneMenu id="doridfk" value="#{beslagslisterController.selected.doridfk}" title="#{bundle.CreateBeslagslisterTitle_doridfk}" required="true" requiredMessage="#{bundle.CreateBeslagslisterRequiredMessage_doridfk}">
36                        <f:selectItems value="#{doererController.itemsAvailableSelectOne}"/>
37                    </h:selectOneMenu>
38                    <h:outputLabel value="#{bundle.CreateBeslagslisterLabel_kategoriidfk}" for="kategoriidfk" />
39                    <h:selectOneMenu id="kategoriidfk" value="#{beslagslisterController.selected.kategoriidfk}" title="#{bundle.CreateBeslagslisterTitle_kategoriidfk}" required="true" requiredMessage="#{bundle.CreateBeslagslisterRequiredMessage_kategoriidfk}">
40                        <f:selectItems value="#{kategorierController.itemsAvailableSelectOne}"/>
41                    </h:selectOneMenu>
42                </h:panelGrid>
43                <br />
44                <h:commandLink action="#{beslagslisterController.create}" value="#{bundle.CreateBeslagslisterSaveLink}" />
45                <br />
46                <br />
47                <h:commandLink action="#{beslagslisterController.prepareList}" value="#{bundle.CreateBeslagslisterShowAllLink}" immediate="true"/>
48                <br />
49                <br />
50                <h:link outcome="/index" value="#{bundle.CreateBeslagslisterIndexLink}"/>
51            </h:form>
52        </ui:define>
53    </ui:composition>
54
55</html>