<?php

$title = 'Bulk Access Control'; ?>
<div>
    <?php if ($this->errorMsg != '') { ?>
        <div id="error" class="alertError" style="display:block;margin-bottom:5px;">
            <? echo $this->errorMsg; ?>
        </div>
    <?php } ?>
    <?php $this->placeholder('breadcrumb')->set('<a href="/relationships.php">Relationships</a> > Bulk Access Control');?>    
    <div class="panelHeader">
        <h3><?=$title?></h3>
    </div>
    <div class="panelContent">
        <form name="feature_access_control" action="/relationships/vendorfeatures/" method="post" onsubmit="return validateBulkUpdaterForm();">
            <div>
                <table class="data">
                    <tr>
                        <th>Label ID</th>
                        <th class="center">Features</th>
                        <th>Enable</th>
                        <th>Disable</th>
                    </tr>
                    <tr>
                        <td> * Label ID(s) Separated by line breaks<br><textarea name="vendor_ids"><?php echo $this->vendor_ids;?></textarea></td>
                        <td colspan="3"> 
                            <table class="form full" style="width: 85%;">
                                <?php 
                                foreach($this->featuresList as $featureObj) {
                                    if ($this->isDeprecatePerformanceRightsFeatureControlEnabled && $featureObj->feature_name == 'Performance Rights') {
                                        continue;
                                    }
                                ?>
                                    <tr>
                                        <td width="34%" align="center"><?php echo $featureObj->feature_name;?></td>
                                        <td align="center"><input type="radio" name="vendor_feature[<?php echo $featureObj->feature_id;?>]" value="Y"></td>
                                        <td width="25%" align="center"><input type="radio" name="vendor_feature[<?php echo $featureObj->feature_id;?>]" value="N"></td>
                                    </tr>
                               <?php 
                                }
                                ?>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4" align="right">  
                            <input type="submit" value="Submit" class="btn btn-primary btn-sm" />
                            <input type="reset" value="Cancel" class="btn btn-default btn-sm">
                         </td>
                    </tr>
                </table>
            </div>
        </form>
    </div>
</div>
