<?php 
$rejectReleaseUrl = $this->url(
    array(
    "module" => "oa",
    "controller" => "relationships",
    "action" => "rejectrelease",
    "releaseId" => $this->release->release_id
    )
);
$blackListArtistMsg = "This release has been rejected due to the inclusion of content from our Hidden Artist List,
please reach out to your client manager with any questions.";
$btnreject = 'btn btn-danger';
?>

<form id="frmRejectRelease" method="post" action="<?php echo $rejectReleaseUrl?>">
	<input type="hidden" name="hdnRejectionCount" id="hdnRejectionCount" value="0"></input>
	<?php if ($this->isBlackListedRelease) { ?>
		<input type="hidden" name="notForDistribution" id="notForDistribution" value=""/>
    <?php } ?>
    <div id="rejectionErrorMsg">
        <div id="errormsg" class="alert alert-img alert-danger"></div>
    </div>
	<div class="panelHeader"><h3>Reasons for rejection</h3></div>
    <div class="panelContent">
        <table id="tbldynamic" class="data">
            <tr>
                <td width="250">
                    <label>General Comments</label>
                </td>
                <td>
                    <textarea id="txtareaOther" name="txtareaOther" class="form-control rejection-textarea"><?php if ($this->isBlackListedRelease) { echo $blackListArtistMsg;}?></textarea>
                </td>
            </tr>
        </table>
	    <div class="panelButtons">
	        <a href="#cancel" id="cancel" class="btn btn-default">Cancel</a>
	        <?php if ($this->isBlackListedRelease) { ?>
	            <input type="button" name="btnReject" id="btnReject" value="Reject" class="<?=$btnreject?>" onclick="confirmRejection();"></input>
	        <?php
	        } else { ?>
	            <input type="button" name="btnReject" id="btnReject" value="Reject" class="<?=$btnreject?>"></input>
              <?php } ?>
		</div>
	</div>
</form>
