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

/web/kontaktPersoner/CreateKontaktperson.xhtml

https://bitbucket.org/mgyth/server2
XHTML | 51 lines | 49 code | 2 blank | 0 comment | 0 complexity | eb25428a5190ef0a364e5b76fe96fd40 MD5 | raw file
 1<?xml version="1.0" encoding="UTF-8"?>
 2<!DOCTYPE html >
 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      xmlns:p="http://primefaces.org/ui">
 8
 9    <h:body>
10        <h:panelGroup styleClass="dialogForm" layout="block">
11            <h:form >
12                <header>
13                    <h2>
14                        <h:outputText value="#{kontaktPersonerController.currentDialog.tittel} #{kontaktPersonerController.currentDialog.navn}"></h:outputText>
15                    </h2>
16                </header>
17                <p:panelGrid columns="2" id="CreateDialog">
18                    <h:outputLabel value="#{bundle.KontaktPersonerLabel_tittel}" for="tittel" />
19                    <h:inputText id="tittel" value="#{kontaktPersonerController.currentDialog.tittel}" title="#{bundle.KontaktPersonerTitle_tittel}" />
20                    <h:outputLabel value="#{bundle.KontaktPersonerLabel_navn}" for="navn" />
21                    <h:inputText id="navn" value="#{kontaktPersonerController.currentDialog.navn}" title="#{bundle.KontaktPersonerTitle_navn}" />
22                    <h:outputLabel value="#{bundle.KontaktPersonerLabel_tlf}" for="tlf" />
23                    <h:inputText id="tlf" value="#{kontaktPersonerController.currentDialog.tlf}" title="#{bundle.KontaktPersonerTitle_tlf}" />
24                    <h:outputLabel value="#{bundle.KontaktPersonerLabel_epost}" for="epost" />
25                    <h:inputText id="epost" value="#{kontaktPersonerController.currentDialog.epost}" title="#{bundle.KontaktPersonerTitle_epost}" />
26                    <h:outputLabel value="#{bundle.KontaktPersonerLabel_firmaid}" for="firmaid" />
27                    <h:selectOneMenu id="firmaid" value="#{kontaktPersonerController.currentDialog.firmaid}" title="#{bundle.KontaktPersonerTitle_firmaid}" >
28                        <f:selectItems value="#{firmaController.itemsAvailableSelectOne}" itemLabel="#{firmaController.itemsAvailableSelectOne}"/>
29                    </h:selectOneMenu>
30                    <h:outputLabel value="#{bundle.AdresseLabel_adr1}" for="adr1" />
31                    <h:inputText id="adr1" value="#{kontaktPersonerController.adr1}" title="#{bundle.AdresseTitle_adr1}" />
32                    <h:outputLabel value="#{bundle.AdresseLabel_adr2}" for="adr2" />
33                    <h:inputText id="adr2" value="#{kontaktPersonerController.adr2}" title="#{bundle.AdresseTitle_adr2}" />
34                    <h:outputLabel value="#{bundle.AdresseLabel_adr3}" for="adr3" />
35                    <h:inputText id="adr3" value="#{kontaktPersonerController.adr3}" title="#{bundle.AdresseTitle_adr3}" />
36                    <h:outputLabel value="#{bundle.AdresseLabel_postNr}" for="postNr" />
37                    <h:inputText id="postNr" value="#{kontaktPersonerController.postNr}" title="#{bundle.AdresseTitle_postNr}" />
38                    <h:outputLabel value="#{bundle.AdresseLabel_postSted}" for="postSted" />
39                    <h:inputText id="postSted" value="#{kontaktPersonerController.postSted}" title="#{bundle.AdresseTitle_postSted}" />  
40                </p:panelGrid>
41                <p:commandButton value="#{bundle.SaveLink}"
42                                 id="submitButton"                                
43                                 actionListener="#{kontaktPersonerController.createDialog}"
44                                 update=":kontaktForm"
45                                 oncomplete="createKontaktPersonDlg.hide()"
46                                 />
47                
48            </h:form>
49        </h:panelGroup>
50    </h:body>
51</html>