function admin_view($id = null) {
$this->System->hasMany['Character']['limit'] = 30;
+ unset($this->System->hasMany['CharacterSheet']['conditions']['CharacterSheet.public_flag']);
unset($this->System->hasMany['Character']['conditions']['Character.public_flag']);
$this->_view($id);
}
$this->System->hasMany['Profile']['fields'] = '';
$contain = array(
'Character',
+ 'CharacterSheet',
'Profile' => array(
'ProfileSelect',
'ProfileTable' => array(
?>
</div>
+<div class="character_sheets">
+<?php
+ $header = __('CharacterSheet Skins', true).
+ $html->tag(
+ 'span',
+ $html->link(
+ __(' ...More', true),
+ array(
+ 'controller' => 'character_sheets',
+ 'action' => 'index',
+ $system['System']['id'],
+ )
+ ),
+ array(
+ 'class' => 'link',
+ )
+ );
+
+
+ $body = '';
+ if (isset($system['CharacterSheet'])) {
+ foreach($system['CharacterSheet'] as $characterSheet) {
+ $sheet = $html->link(
+ $characterSheet['name'],
+ array(
+ 'controller' => 'character_sheets',
+'action' => 'view',
+$characterSheet['id'],
+ )
+ );
+ $body .= $html->tag(
+ 'span',
+ $sheet,
+ array(
+ 'class' => 'characterSheet',
+ )
+ );
+ }
+ }
+ $footer = '<div class="actions"><ul>'.
+
+ '</ul></div>';
+
+ echo $this->renderElement('box', array(
+ 'header' =>$header,
+ 'body' => $body,
+ 'footer' => $footer,
+ ));
+ ?>
+</div>
+
<div class="profiles">
<div class="box">
<div class="boxHeader"><h3>
div.systems .characters .box {
margin-bottom: 20px;
}
+div.systems .character_sheets .box {
+ margin-bottom: 20px;
+}
+div.systems .character_sheets .box .boxBody {
+ padding: 5px 10px;
+}
+span.characterSheet {
+ font-size: 120%;
+ padding-right: 15px;
+}
div.systems .profiles .box table {
margin-top: 5px;
}