data['contract'] ?? new NullContract(); $isNew = $contract->id === 0; echo $this->data['nav']->render(); ?>
request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
>
getHtml('Contract'); ?>
printHtml($contract->description); ?>
request->uri->fragment === 'c-tab-2' ? ' checked' : ''; ?>>
data['media-upload']->render('contract-file', 'files', '', $contract->files, '{/api}contract/file?csrf={$CSRF}', (string) $contract->id); ?>
request->uri->fragment === 'c-tab-3' ? ' checked' : ''; ?>>
data['note']->render('contract-note', 'notes', $contract->notes, '{/api}contract/note?csrf={$CSRF}', (string) $contract->id); ?>
request->uri->fragment === 'c-tab-4' ? ' checked' : ''; ?>>
data['attributeView']->render( $contract->attributes, $this->data['attributeTypes'] ?? [], $this->data['units'] ?? [], '{/api}contract/attribute?csrf={$CSRF}', $contract->id ); ?>
request->uri->fragment === 'c-tab-5' ? ' checked' : ''; ?>>
getHtml('Contracts'); ?>download
data['children'] as $key => $value) : ++$count; $url = UriFactory::build('{/base}/contract/view?{?}&id=' . $value->id); $type = 'ok'; if (($value->end->getTimestamp() < $now->getTimestamp() && $value->end->getTimestamp() + 7776000 > $now->getTimestamp()) || ($value->end->getTimestamp() > $now->getTimestamp() && $value->end->getTimestamp() - 7776000 < $now->getTimestamp()) ) { $type = 'error'; } elseif ($value->end->getTimestamp() < $now->getTimestamp()) { $type = 'info'; } elseif ($value->end->getTimestamp() + 7776000 < $now->getTimestamp()) { $type = 'warning'; } ?>
getHtml('End'); ?> getHtml('With'); ?> getHtml('Title'); ?>
end !== null ? $value->end->format('Y-m-d') : ''; ?> printHtml($value->account->name1); ?> printHtml($value->account->name2); ?> printHtml($value->title); ?>
getHtml('Empty', '0', '0'); ?>