from branch of project todolist
This commit is contained in:
45
src/main/webapp/pages/note/list.xhtml
Normal file
45
src/main/webapp/pages/note/list.xhtml
Normal file
@@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:my="http://xmlns.jcp.org/jsf/composite/my" xmlns:b="http://bootsfaces.net/ui">
|
||||
<h:head>
|
||||
<title>Aufgaben</title>
|
||||
</h:head>
|
||||
<h:body>
|
||||
<ui:composition template="/pages/template.xhtml">
|
||||
<ui:define name="top">
|
||||
<b:messages />
|
||||
</ui:define>
|
||||
<ui:define name="main">
|
||||
<b:panel title="Notizen" look="primary">
|
||||
<h:form>
|
||||
<b:dataTable value="#{noteModel.beans}" var="n" lang="de" pageLength="5" pageLengthMenu="5,10,20,50,100" saveState="true" striped="false">
|
||||
<b:dataTableColumn label="Titel">
|
||||
<b:commandButton action="#{noteControl.toItem(n)}" value="#{n.title}" look="link" />
|
||||
</b:dataTableColumn>
|
||||
<b:dataTableColumn label="Kategorie">
|
||||
<b:commandButton action="#{noteControl.toItem(n)}" value="#{n.category}" look="link" />
|
||||
</b:dataTableColumn>
|
||||
<b:dataTableColumn label="Typ">
|
||||
<b:commandButton action="#{noteControl.toItem(n)}" value="#{n.type}" look="link" />
|
||||
</b:dataTableColumn>
|
||||
<b:dataTableColumn label="Inhalt">
|
||||
<b:commandButton action="#{noteControl.toItem(n)}" value="#{noteControl.trimTo(n.content, 32)}" look="link" />
|
||||
</b:dataTableColumn>
|
||||
<b:dataTableColumn label="Angelegt">
|
||||
<b:commandButton action="#{noteControl.toItem(n)}" value="#{n.lastchange}" look="link" />
|
||||
</b:dataTableColumn>
|
||||
</b:dataTable>
|
||||
</h:form>
|
||||
</b:panel>
|
||||
</ui:define>
|
||||
<ui:define name="navigation">
|
||||
<h:form>
|
||||
<b:buttonGroup>
|
||||
<b:commandButton action="#{noteControl.toStart}" value="zurück" look="primary" iconAwesome="arrow-left" />
|
||||
<b:commandButton action="#{noteControl.toAdd}" value="hinzufügen" look="success" iconAwesome="plus" />
|
||||
</b:buttonGroup>
|
||||
</h:form>
|
||||
</ui:define>
|
||||
</ui:composition>
|
||||
</h:body>
|
||||
</html>
|
Reference in New Issue
Block a user