Commit cd0ee8e9 authored by Richard Mansfield's avatar Richard Mansfield

Move resume composite move up/down controls to LHS

Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent ae2411ba
......@@ -733,8 +733,6 @@ tableRenderers.{$compositetype} = new TableRenderer(
[
EOF;
$js .= call_static_method(generate_artefact_class_name($compositetype), 'get_tablerenderer_js');
$js .= <<<EOF
function (r, d) {
......@@ -758,6 +756,11 @@ EOF;
}
return TD({'class':'movebuttons'}, buttons);
},
EOF;
$js .= call_static_method(generate_artefact_class_name($compositetype), 'get_tablerenderer_js');
$js .= <<<EOF
function (r, d) {
var editlink = A({'href': 'editcomposite.php?id=' + r.id + '&artefact=' + r.artefact, 'title': '{$editstr}'}, IMG({'src': config.theme['images/edit.gif'], 'alt':'{$editstr}'}));
var dellink = A({'href': '', 'title': '{$delstr}'}, IMG({'src': config.theme['images/icon_close.gif'], 'alt': '[x]'}));
......
......@@ -7,22 +7,24 @@
<colgroup width="25%" span="1"></colgroup>
<thead>
<tr>
{if $controls}<th class="resumecontrols"></th>{/if}
<th class="resumedate">{str tag='date' section='artefact.resume'}</th>
<th>{str tag='title' section='artefact.resume'}</th>
{if $controls}
<th class="resumecontrols"></th>
<th class="resumecontrols"></th>
{/if}
{if $controls}<th class="resumecontrols"></th>{/if}
</tr>
</thead>
<tbody>
{foreach from=$rows item=row}
<tr class="{cycle values='r0,r0,r1,r1'} expandable-head">
{if $controls}<td></td>{/if}
<td class="toggle">{$row->date}</td>
<td>{$row->title}</td>
{if $controls}<td></td>{/if}
</tr>
<tr class="{cycle values='r0,r0,r1,r1'} expandable-body">
{if $controls}<td></td>{/if}
<td colspan="2">{$row->description}</td>
{if $controls}<td></td>{/if}
</tr>
{/foreach}
</tbody>
......
......@@ -7,22 +7,24 @@
<colgroup width="25%" span="1"></colgroup>
<thead>
<tr>
{if $controls}<th class="resumecontrols"></th>{/if}
<th class="resumedate">{str tag='date' section='artefact.resume'}</th>
<th>{str tag='title' section='artefact.resume'}</th>
{if $controls}
<th class="resumecontrols"></th>
<th class="resumecontrols"></th>
{/if}
{if $controls}<th class="resumecontrols"></th>{/if}
</tr>
</thead>
<tbody>
{foreach from=$rows item=row}
<tr class="{cycle values='r0,r0,r1,r1'} expandable-head">
{if $controls}<td></td>{/if}
<td class="toggle">{$row->date}</td>
<td>{$row->title}</td>
{if $controls}<td></td>{/if}
</tr>
<tr class="{cycle values='r0,r0,r1,r1'} expandable-body">
{if $controls}<td></td>{/if}
<td colspan="2">{$row->description}</td>
{if $controls}<td></td>{/if}
</tr>
{/foreach}
</tbody>
......
......@@ -6,24 +6,26 @@
<table id="educationhistorylist{$suffix}" class="tablerenderer resumefive resumecomposite">
<thead>
<tr>
{if $controls}<th class="resumecontrols"></th>{/if}
<th width="25%" class="resumedate">{str tag='startdate' section='artefact.resume'}</th>
<th width="25%" class="resumedate">{str tag='enddate' section='artefact.resume'}</th>
<th>{str tag='qualification' section='artefact.resume'}</th>
{if $controls}
<th class="resumecontrols"></th>
<th class="resumecontrols"></th>
{/if}
{if $controls}<th class="resumecontrols"></th>{/if}
</tr>
</thead>
<tbody>
{foreach from=$rows item=row}
<tr class="{cycle values='r0,r0,r1,r1'} expandable-head">
{if $controls}<td></td>{/if}
<td class="toggle">{$row->startdate}</td>
<td>{$row->enddate}</td>
<td>{$row->qualification}</td>
{if $controls}<td></td>{/if}
</tr>
<tr class="{cycle values='r0,r0,r1,r1'} expandable-body">
{if $controls}<td></td>{/if}
<td colspan="3">{$row->qualdescription}</td>
{if $controls}<td></td>{/if}
</tr>
{/foreach}
</tbody>
......
......@@ -7,24 +7,26 @@
<colgroup width="25%" span="2"></colgroup>
<thead>
<tr>
{if $controls}<th class="resumecontrols"></th>{/if}
<th class="resumedate">{str tag='startdate' section='artefact.resume'}</th>
<th class="resumedate">{str tag='enddate' section='artefact.resume'}</th>
<th>{str tag='position' section='artefact.resume'}</th>
{if $controls}
<th class="resumecontrols"></th>
<th class="resumecontrols"></th>
{/if}
{if $controls}<th class="resumecontrols"></th>{/if}
</tr>
</thead>
<tbody>
{foreach from=$rows item=row}
<tr class="{cycle values='r0,r0,r1,r1'} expandable-head">
{if $controls}<td></td>{/if}
<td class="toggle">{$row->startdate}</td>
<td>{$row->enddate}</td>
<td>{$row->jobtitle}: {$row->employer}</td>
{if $controls}<td></td>{/if}
</tr>
<tr class="{cycle values='r0,r0,r1,r1'} expandable-body">
{if $controls}<td></td>{/if}
<td colspan="3">{$row->positiondescription}</td>
{if $controls}<td></td>{/if}
</tr>
{/foreach}
</tbody>
......
......@@ -7,24 +7,26 @@
<colgroup width="25%" span="2"></colgroup>
<thead>
<tr>
{if $controls}<th class="resumecontrols"></th>{/if}
<th class="resumedate">{str tag='startdate' section='artefact.resume'}</th>
<th class="resumedate">{str tag='enddate' section='artefact.resume'}</th>
<th>{str tag='title' section='artefact.resume'}</th>
{if $controls}
<th class="resumecontrols"></th>
<th class="resumecontrols"></th>
{/if}
{if $controls}<th class="resumecontrols"></th>{/if}
</tr>
</thead>
<tbody>
{foreach from=$rows item=row}
<tr class="{cycle values='r0,r0,r1,r1'} expandable-head">
{if $controls}<td></td>{/if}
<td class="toggle">{$row->startdate}</td>
<td>{$row->enddate}</td>
<td>{$row->title}</td>
{if $controls}<td></td>{/if}
</tr>
<tr class="{cycle values='r0,r0,r1,r1'} expandable-body">
{if $controls}<td></td>{/if}
<td colspan="3">{$row->description}</td>
{if $controls}<td></td>{/if}
</tr>
{/foreach}
</tbody>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment