<div class="modal-header">
    <button type="button" class="close" ng-click="cancel()">&times;</button>
    <h3>Add the serial numbers of the produc {[{ item.stock.name }]}</h3>
</div>
<form id='stockForm' name='stockForm' ng-submit="save()" class="basic-form">
<div class="modal-body">

        <div class="modal-body row">
            <div class="alert alert-danger ng-scope col-sm-10" ng-if=" errorMessage  ">
               <i class="fa fa-warning"></i> Repeated serial number/s
            </div>
            <br>
            <div class="col-sm-12">
                <label>
                    <input type="checkbox" name="not_applicable" value="1" ng-model="data.sn_na"> <strong>Serial Number is not applicable for this product</strong>
                </label>
            </div>
            <br><br>
            <div class="control-group col-sm-12" ng-if=" ! data.sn_na" ng-repeat="serial in serials">
                <label class="control-label" >Serial Number:</label>
                <div class="controls">
                    <input type="text" name="name" ng-model="serial.serial_number" ng-readonly=" serial.added" ng-required=" ! data.sn_na">
                </div>
            </div>


        </div>
</div>
<div class="form-actions">
    <button class="btn btn-primary" data-loading-text="Saving..." data-success-text="Saved.." ng-disabled=" ! valid() || loading "><i ng-if="loading" class="fa fa-spinner fa-spin"></i> Create</button>
</div>
</form>
