Commit fce4b5f6 by Jani Huhtala

tyyliviilausta tapahtumaa varten

1 parent bc1828ec
......@@ -5,6 +5,7 @@
<persistence-unit name="BortalDb" transaction-type="JTA">
<jta-data-source>jdbc/bortal</jta-data-source>
<properties>
<property name="eclipselink.ddl-generation" value="create-tables"/>
<property name="eclipselink.ddl-generation.output-mode" value="both"/>
<property name="eclipselink.cache.size.default" value="16384"/>
......
......@@ -28,6 +28,7 @@ import javax.persistence.TemporalType;
* Account event contains the money / credit traffic for the user. Each row
* references a Product entity.
*/
@Entity
@Table(name = "account_events")
@NamedQueries({
......
......@@ -25,6 +25,7 @@ import javax.persistence.Version;
*/
@Entity
@Table(name = "bill_lines")
@NamedQueries({
@NamedQuery(name = "BillLine.findAll", query = "SELECT b FROM BillLine b"),
......@@ -37,6 +38,8 @@ public class BillLine implements EventChildInterface {
private static final BigDecimal DEFAULT_VAT = BigDecimal.ZERO;
@EmbeddedId
private EventPk id;
/**
* Product name shown on the bill
......
......@@ -38,6 +38,7 @@ import javax.persistence.Version;
@NamedQuery(name = "Compo.findBySubmitEnd", query = "SELECT c FROM Compo c WHERE c.submitEnd = :submitEnd"),
@NamedQuery(name = "Compo.findByHoldVoting", query = "SELECT c FROM Compo c WHERE c.holdVoting = :holdVoting"),
@NamedQuery(name = "Compo.findByDescription", query = "SELECT c FROM Compo c WHERE c.description = :description") })
public class Compo implements EventChildInterface {
private static final long serialVersionUID = 1L;
@EmbeddedId
......
......@@ -22,9 +22,16 @@
<div id="wrapper">
<div id="navigation">
<img id="head" src="#{request.contextPath}/resources/style/insomnia1/img/header.gif" alt="headerimage" />
<div style="float: left" >
<div id="headerbox"><tools:isLoggedIn>#{sessionHandler.loginname}</tools:isLoggedIn><tools:loginLogout /></div>
<div>
</div>
<div id="mainmenu">
<div class="link#{i18n[util.concat(thispage,'.pagegroup')] == 'frontpage'?'a':''}"> <h:link outcome="/index" value="#{i18n['topmenu.frontpage']}" /></div>
<tools:isLoggedIn>
<div class="link#{i18n[util.concat(thispage,'.pagegroup')] == 'user'?'a':''}"> <h:link outcome="/user/editself" value="#{i18n['topmenu.usersPreferences']}" /></div>
......@@ -33,9 +40,10 @@
</tools:isLoggedIn>
<div class="link#{i18n[util.concat(thispage,'.pagegroup')] == 'placemap'?'a':''}"> <h:link outcome="/place/placemap" value="#{i18n['topmenu.placemap']}" /></div>
</div>
</div>
</div>
<div id="content">
<div id="cwrap">
......
......@@ -74,6 +74,10 @@ body {
height: 80px;
}
#mainmenu {
margin-left: 10px;
}
#content {
width: 100%;
background-image: url('img/top.gif');
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!