<?php
    defined('C5_EXECUTE') or die("Access Denied.");
    $al = Loader::helper('concrete/asset_library');
    $bf = null;
    if ($controller->getFileID() > 0) {
        $bf = $controller->getFileObject();
    }
?>
<div class="form-group">
	<?php echo $form->label('fID', t('File'))?>
	<?php echo $al->file('ccm-b-file', 'fID', t('Choose File'), $bf);?>
</div>
<div class="form-group">
	<?php echo $form->label('fileLinkText', t('Text for Linked File'))?>
	<?php echo $form->text('fileLinkText', $controller->getLinkText())?>
</div>
<div class="form-group">
	<?php echo $form->checkbox('forceDownload', '1', $forceDownload); ?>
	<?php echo $form->label('forceDownload', t('Force file to download')); ?>
</div>