Project: * Clean-up (Eclipse cruft, unused files, etc...) * Git-specific changes * Maven POMs clean-up and changes for the build system * Version set to 1.0.0-0 in the development branches * Maven plug-ins updated to latest versions * Very partial dev. documentation added
This commit is contained in:
parent
c74e30d5ba
commit
0665a760de
1439 changed files with 1020 additions and 1649 deletions
legacyworlds-web-main/Content/Raw/WEB-INF/fm/layout
|
@ -0,0 +1,18 @@
|
|||
<#macro left_column width=0>
|
||||
<#if width gt 0>
|
||||
<div class="left-column" style="width: ${width}px">
|
||||
<#else>
|
||||
<div class="column left-column">
|
||||
</#if>
|
||||
<#nested>
|
||||
</div>
|
||||
</#macro>
|
||||
<#macro right_column width=0>
|
||||
<#if width gt 0>
|
||||
<div style="width: ${width}px; padding: 0 0 0 ${width}px">
|
||||
<#else>
|
||||
<div class="column right-column">
|
||||
</#if>
|
||||
<#nested>
|
||||
</div>
|
||||
</#macro>
|
|
@ -0,0 +1,20 @@
|
|||
<#macro dt_main title="">
|
||||
<table class="data-table">
|
||||
<#if title != "">
|
||||
<tr><th colspan="2" class="title">${title}</th></tr>
|
||||
</#if>
|
||||
<#nested>
|
||||
</table>
|
||||
</#macro>
|
||||
<#macro dt_entry title abbr="" width=0>
|
||||
<tr>
|
||||
<th<#if width gt 0> style="width: ${width}px"</#if>><#if title == ""> <#else><#if abbr != ""><abbr title="${title?xhtml}">${abbr?xhtml}</abbr><#else>${title?xhtml}</#if>:</#if></th>
|
||||
<td><#nested></td>
|
||||
</tr>
|
||||
</#macro>
|
||||
<#macro dt_blank>
|
||||
<tr><td colspan="2"> </td></tr>
|
||||
</#macro>
|
||||
<#macro dt_status>
|
||||
<tr><td colspan="2" class="status"><#nested></td></tr>
|
||||
</#macro>
|
|
@ -0,0 +1,20 @@
|
|||
<#macro ff_text name value id="" maxLength=0 size=0>
|
||||
<input class="input" id="ff-${id?xhtml}" type="text" value="${value?xhtml}" name="${name?xhtml}" <#if maxLength gt 0>maxlength="${maxLength?string}"</#if> <#if size gt 0>size="${size?string}"</#if> />
|
||||
</#macro>
|
||||
<#macro ff_pwd id name>
|
||||
<input class="input" id="ff-${id?xhtml}" type="password" name="${name?xhtml}" />
|
||||
</#macro>
|
||||
<#macro ff_select id name style="">
|
||||
<select class="input" name="${name?xhtml}" id="ff-${id?xhtml}" <#if style != "">style="${style}"</#if>>
|
||||
<#nested>
|
||||
</select>
|
||||
</#macro>
|
||||
<#macro ff_checkbox id name value checked=false>
|
||||
<input class="input" type="checkbox" name="${name?xhtml}" id="ff-${id?xhtml}" value="${value?xhtml}" <#if checked>checked="checked"</#if> />
|
||||
</#macro>
|
||||
<#macro form_option text="" selected=false value="">
|
||||
<option<#if value?string != ""> value="${value?xhtml}"</#if><#if selected> selected="selected"</#if>><#if text == ""><#nested><#else>${text?xhtml}</#if></option>
|
||||
</#macro>
|
||||
<#macro ff_submit label extraClass="" name="" style="">
|
||||
<input class="input<#if extraClass?has_content> ${extraClass}</#if>" <#if name?has_content>name="${name?xhtml}"</#if> type="submit" value="${label?xhtml}" <#if style != "">style="${style}"</#if> />
|
||||
</#macro>
|
98
legacyworlds-web-main/Content/Raw/WEB-INF/fm/layout/form.ftl
Normal file
98
legacyworlds-web-main/Content/Raw/WEB-INF/fm/layout/form.ftl
Normal file
|
@ -0,0 +1,98 @@
|
|||
<#macro form action name="" hash="">
|
||||
<div class="form-container">
|
||||
<form action="${action?url}.action<#if hash != "">#${hash?url}</#if>" method="post">
|
||||
<table>
|
||||
<#nested>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</#macro>
|
||||
<#macro form_field_line label id>
|
||||
<tr class="form-field">
|
||||
<th><label for="ff-${id?xhtml}">${label?xhtml}:</label></th>
|
||||
<td><#nested></td>
|
||||
</tr>
|
||||
</#macro>
|
||||
<#macro form_text label name value id="" maxLength=0 multiline=false>
|
||||
<#if id = "">
|
||||
<#local id = name>
|
||||
</#if>
|
||||
<@form_field_line label=label id=id>
|
||||
<#if multiline>
|
||||
<textarea class="input" rows="${maxLength}" id="ff-${id}" name="${name}" cols="60" style="height:auto">${value?xhtml}</textarea>
|
||||
<#else>
|
||||
<@ff_text id=id name=name maxLength=maxLenth value=value />
|
||||
</#if>
|
||||
</@form_field_line>
|
||||
</#macro>
|
||||
<#macro form_checkbox label name value id="" checked=false>
|
||||
<#if id = "">
|
||||
<#local id = name>
|
||||
</#if>
|
||||
<@form_field_line label=label id=id>
|
||||
<@ff_checkbox id=id name=name value=value checked=checked />
|
||||
</@form_field_line>
|
||||
</#macro>
|
||||
<#macro form_pwd label name id="">
|
||||
<#if id = "">
|
||||
<#local id = name>
|
||||
</#if>
|
||||
<@form_field_line label=label id=id>
|
||||
<@ff_pwd id=id name=name />
|
||||
</@form_field_line>
|
||||
</#macro>
|
||||
<#macro form_select label name id="">
|
||||
<#if id = "">
|
||||
<#local id = name>
|
||||
</#if>
|
||||
<@form_field_line label=label id=id>
|
||||
<@ff_select id=id name=name>
|
||||
<#nested>
|
||||
</@ff_select>
|
||||
</@form_field_line>
|
||||
</#macro>
|
||||
<#macro form_part title>
|
||||
<tr class="form-part">
|
||||
<th colspan="2">${title}</th>
|
||||
</tr>
|
||||
</#macro>
|
||||
<#macro form_extra>
|
||||
<tr class="form-extra">
|
||||
<td colspan="2"><#nested></td>
|
||||
</tr>
|
||||
</#macro>
|
||||
<#macro form_error>
|
||||
<tr class="form-error">
|
||||
<td colspan="2"><#nested></td>
|
||||
</tr>
|
||||
</#macro>
|
||||
<#macro standalone_error>
|
||||
<div class="form-container">
|
||||
<table>
|
||||
<tr class="form-error">
|
||||
<td colspan="2"><#nested></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</#macro>
|
||||
<#macro form_submit label extraClass="">
|
||||
<tr class="form-submit">
|
||||
<th> </th>
|
||||
<td><@ff_submit label=label extraClass=extraClass /></td>
|
||||
</tr>
|
||||
</#macro>
|
||||
<#macro form_extended_submit label extraClass="">
|
||||
<tr class="form-submit">
|
||||
<th> </th>
|
||||
<td><@ff_submit label=label extraClass=extraClass /><#nested /></td>
|
||||
</tr>
|
||||
</#macro>
|
||||
<#macro lineform action name="" hash="">
|
||||
<div class="form-container">
|
||||
<form action="${action?url}.action<#if hash != "">#${hash?url}</#if>" method="post">
|
||||
<table>
|
||||
<tr><td><#nested></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</#macro>
|
|
@ -0,0 +1,20 @@
|
|||
<#macro happiness value>
|
||||
<#if value lt 26>
|
||||
<#assign colour = "#ffafaf">
|
||||
<#elseif value lt 51>
|
||||
<#assign colour = "#ffffaf">
|
||||
<#elseif value lt 76>
|
||||
<#assign colour = "#afafff">
|
||||
<#else>
|
||||
<#assign colour = "#afffaf">
|
||||
</#if>
|
||||
<strong style="color: ${colour}">${value}%</strong>
|
||||
</#macro>
|
||||
<#macro happiness_change value>
|
||||
<#switch data.own.hChange>
|
||||
<#case -2>--<#break>
|
||||
<#case -1>-<#break>
|
||||
<#case 1>+<#break>
|
||||
<#case 2>++<#break>
|
||||
</#switch>
|
||||
</#macro>
|
|
@ -0,0 +1,25 @@
|
|||
<#macro listview>
|
||||
<table class="list-view">
|
||||
<#nested>
|
||||
</table>
|
||||
</#macro>
|
||||
<#macro lv_line headers=false class="">
|
||||
<tr<#if class != ""> class="${class}<#if headers>headers</#if>"<#elseif headers> class="headers"</#if>>
|
||||
<#nested>
|
||||
</tr>
|
||||
</#macro>
|
||||
<#macro lv_column width=0 centered=false right=false>
|
||||
<#if width?is_string>
|
||||
<th style="text-align: <#if centered>center<#elseif right>right<#else>left</#if>">
|
||||
<#nested>
|
||||
</th>
|
||||
<#elseif width gt 0>
|
||||
<th style="width: ${width}px; text-align: <#if centered>center<#elseif right>right<#else>left</#if>">
|
||||
<#nested>
|
||||
</th>
|
||||
<#else>
|
||||
<td style="text-align: <#if centered>center<#elseif right>right<#else>left</#if>">
|
||||
<#nested>
|
||||
</td>
|
||||
</#if>
|
||||
</#macro>
|
13
legacyworlds-web-main/Content/Raw/WEB-INF/fm/layout/tabs.ftl
Normal file
13
legacyworlds-web-main/Content/Raw/WEB-INF/fm/layout/tabs.ftl
Normal file
|
@ -0,0 +1,13 @@
|
|||
<#macro tabs>
|
||||
<div class="tabs">
|
||||
<#nested>
|
||||
</div>
|
||||
</#macro>
|
||||
<#macro tab id title>
|
||||
<div class="tab" id="${id?xhtml}">
|
||||
<h3>${title?xhtml}</h3>
|
||||
<div class="tab-contents">
|
||||
<#nested>
|
||||
</div>
|
||||
</div>
|
||||
</#macro>
|
Reference in a new issue