New research and technology page

* Added legacyworlds-server-beans-technologies Maven module, including
the player-level DAO and controller.

* Added session classes to carry technology information, modified web
client session façade accordingly

* Various changes to common UI elements (forms, lists, etc...) so the
start and end of some element can be drawn separately

* Added controller, templates and JavaScript for research page
This commit is contained in:
Emmanuel BENOîT 2012-04-07 13:06:03 +02:00
parent 154f215e24
commit 6dcd59d7bc
45 changed files with 2314 additions and 178 deletions
legacyworlds-web-main/Content/Raw/WEB-INF/fm/layout

View file

@ -1,12 +1,21 @@
<#macro form action name="" hash="">
<#macro rawFormStart action name="" hash="">
<form action="${action?url}.action<#if hash != "">#${hash?url}</#if>" method="post">
</#macro>
<#macro formStart action name="" hash="">
<div class="form-container">
<form action="${action?url}.action<#if hash != "">#${hash?url}</#if>" method="post">
<@rawFormStart action name hash />
<table>
<#nested>
</#macro>
<#macro formEnd>
</table>
</form>
</div>
</#macro>
<#macro form action name="" hash="">
<@formStart action name hash />
<#nested>
<@formEnd />
</#macro>
<#macro form_field_line label id>
<tr class="form-field">
<th><label for="ff-${id?xhtml}">${label?xhtml}:</label></th>

View file

@ -1,24 +1,30 @@
<#macro listview>
<#macro listviewStart>
<table class="list-view">
<#nested>
</#macro>
<#macro listviewEnd>
</table>
</#macro>
<#macro listview>
<@listviewStart />
<#nested>
<@listviewEnd />
</#macro>
<#macro lv_line headers=false class="">
<tr<#if class != ""> class="${class}<#if headers>headers</#if>"<#elseif headers> class="headers"</#if>>
<#macro lv_line headers=false class="" id="">
<tr<#if class != ""> class="${class}<#if headers>headers</#if>"<#elseif headers> class="headers"</#if><#if id != ""> id="${id?xhtml}"</#if>>
<#nested>
</tr>
</#macro>
<#macro lv_column width=0 centered=false right=false colspan=0>
<#macro lv_column width=0 centered=false right=false colspan=0 id="">
<#if width?is_string>
<th style="text-align: <#if centered>center<#elseif right>right<#else>left</#if>"<#if colspan gt 1> colspan="${colspan}"</#if>>
<th style="text-align: <#if centered>center<#elseif right>right<#else>left</#if>"<#if colspan gt 1> colspan="${colspan}"</#if><#if id != ""> id="${id?xhtml}"</#if>>
<#nested>
</th>
<#elseif width gt 0>
<th style="width: ${width}px; text-align: <#if centered>center<#elseif right>right<#else>left</#if>"<#if colspan gt 1> colspan="${colspan}"</#if>>
<th style="width: ${width}px; text-align: <#if centered>center<#elseif right>right<#else>left</#if>"<#if colspan gt 1> colspan="${colspan}"</#if><#if id != ""> id="${id?xhtml}"</#if>>
<#nested>
</th>
<#else>
<td style="text-align: <#if centered>center<#elseif right>right<#else>left</#if>"<#if colspan gt 1> colspan="${colspan}"</#if>>
<td style="text-align: <#if centered>center<#elseif right>right<#else>left</#if>"<#if colspan gt 1> colspan="${colspan}"</#if><#if id != ""> id="${id?xhtml}"</#if>>
<#nested>
</td>
</#if>

View file

@ -3,11 +3,17 @@
<#nested>
</div>
</#macro>
<#macro tab id title>
<#macro tabStart id title>
<div class="tab" id="${id?xhtml}">
<h3>${title?xhtml}</h3>
<div class="tab-contents">
<#nested>
</#macro>
<#macro tabEnd>
</div>
</div>
</#macro>
<#macro tab id title>
<@tabStart id title />
<#nested>
<@tabEnd />
</#macro>