<ng-form name="editDailyCodesForm"> <div class="form-horizontal" ng-cloak ng-show="finishedLoading"> <div class="form-group"> <table class="table table-responsive table-hover table-list" id="tableDailyCodes"> <thead> <tr> <th>@Labels.date</th> <th>@Labels.code 1</th> <th>@Labels.picture 1</th> <th>@Labels.code 2</th> <th>@Labels.picture 2</th> <th>@Labels.code 3</th> <th>@Labels.picture 3</th> <th>@Labels.code 4</th> <th>@Labels.picture 4</th> </tr> </thead> <tr ng-repeat="row in selections.dailyCodes" ng-form="formRow"> <td>{{row.monthDay}}</td> <td class="col-md-1"> <input type="text" name="dailyCode1" id="dailyCode1" class="form-control" ng-model="row.dailyCode" ng-maxlength="40" /> <div class="field-validation-error"> <span ng-show="formRow.dailyCode1.$error.maxlength && formRow.dailyCode1.$dirty"> @String.Format(Messages.cannotExceed, Labels.daily + " " + Labels.code + "1", "40") </span> </div> </td> <td> <span ng-if="row.p1Caption!=''"> <span><img height="32" width="32" alt="{{row.p1Caption}}" title="{{row.p1Caption}}" src="{{getImageData(row.dailyPict, row.p1Caption)}}" /></span> <span><i class="fa fa-times-circle redText" title="@Labels.removeImage" modal-popup cancel-label="@Labels.cancel" ok-label="@Labels.removeImage" modal-message="'@String.Format(Messages.confirmDelete, Labels.image)'" modal-title="@Labels.removeImage" ok-action="removeImage(row, 1)"></i> </span></span> @*<i class="fa fa-picture-o" sm-file-uploader-modal ok-label="@Labels.doneUploading" error-message="errorMessage" cancel-label="@Labels.cancel" upload-options="imageUploadOptions" upload-template="~/app/templates/fileUploader" upload-title="Select image to Upload" file-mask="'image/*'" show-drop-zone="true" title="@String.Format(Labels.selectX, Labels.image)"></i>*@ </td>td tags are repeated for other 3 * 2 columns.