@include('admin.author.angular_edit_article')

	<div ng-controller="AbstrctDetails">
	
		<table class="table table-bordered table-striped" ng-if="tasks.length > 0">
			
			<tr>
				<th>Seq. #</th>
				<th>Field Title</th>
				<th>Description</th>
				<th>Action</th>
			</tr>
			
			<tr ng-repeat="(index, task) in tasks">
				
					 <input type="hidden" name="abstract_id[]" value="{[{ task.abstract_id }]}" />
				<td> {[{ task.sequence }]}</td>
				<td> {[{ task.field_name }]}</td>
				<td> {[{ task.field_description }]}</td>
				<td nowrap>
					<button type="button" class="btn btn-success btn-xs" ng-click="EditAbstractDetail(index)" >Edit</button>
					<button type="button" class="btn btn-danger btn-xs" ng-click="DeleteAbstractDetail(index)" >Delete</button>
				</td>
				
			</tr>
		</table>
	
    
	
	
	<div class="form-group col-lg-12 col-md-12 col-sm-12">
		<h3>{[{ abstract_heading }]}</h3>
	</div>
	
			<div id="div_abstract_sequence" class="form-group col-lg-4 col-md-4 col-sm-4">
				<label class="control-label">Sequence:</label>
				<input type="text" ng-model="abstract_sequence"  class="form-control input-md" placeholder="Sequence">
			</div>

			<div id="div_field_name" class="form-group col-lg-4 col-md-4 col-sm-4">
				<label class="control-label">Field Name:</label>
				<input type="text" ng-model="field_name"  class="form-control input-md" placeholder="Field Name">
			</div>

			<div id="div_description" class="form-group col-lg-4 col-md-4 col-sm-4">
				<label class="control-label">Description:</label>
				<textarea ng-model="description" class="form-control input-md" placeholder="Description"></textarea>
			</div>

			<div class="form-group col-lg-12 col-md-12 col-sm-12">
				<div ng-switch="action">
					<div ng-switch-when="INSERT">
						<input id="AddAbstractDetail" class="btn btn-success btn-xs " type="button" ng-click="AddAbstractDetail()" value="Add Abstract Detail" />
					</div>
					<div ng-switch-when="UPDATE">
						<input id="UpdateAbstractDetail" class="btn btn-success btn-xs " type="button" ng-click="UpdateAbstractDetail()" value="Update Abstract Detail" />
					</div>
				</div>
			</div>
			
			<div style="clear:both;"></div>
		
    </div>
	