<div class="modal fade in" id="multi_author_affiliation" tabindex="-1" role="dialog" aria-hidden="false">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title">Author's Affiliations</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-md-12">

						@include('admin.author.multiple.angular_edit_multilanguage_author_affiliation')
						<div ng-controller="MultiLangAffiliation">
							<div class="table-responsive">
								<table class="table table-bordered table-striped" ng-if="multilang_affiliations.length > 0">
									
									<tr>
										<th>No.</th>
										<th>Institution</th>
										<th>Department</th>
										<th>Address</th>
										<th>Country</th>
										<th>City</th>
										<th>Postal Code</th>
										<th>Phone</th>
										<th>Fax</th>
										<th>Action</th>
									</tr>
									
									<tr ng-repeat="(index, aff) in multilang_affiliations">
										
										<td>
											 {[{ index + 1 }]}
											 <input type="hidden" name="aff_id[]" value="{[{ aff.aff_id }]}" />
										</td>
										<td> {[{ aff.institution }]}</td>
										<td> {[{ aff.department }]}</td>
										<td> {[{ aff.address }]}</td>
										<td> {[{ aff.country }]}</td>
										<td> {[{ aff.city }]}</td>
										<td> {[{ aff.postal_code }]}</td>
										<td> {[{ aff.phone }]}</td>
										<td> {[{ aff.fax }]}</td>

										<td nowrap>
										
										
											<button type="button" class="btn btn-success btn-xs" ng-click="EditAffiliation_ml(index)" >Edit</button>
											<button type="button" class="btn btn-danger btn-xs" ng-click="DeleteAffiliation_ml(index)" >Delete</button>
										
										
										</td>
										
									</tr>
								</table>
							</div>
						    
							
							
							<div class="form-group col-lg-12 col-md-12 col-sm-12">
								<h3>{[{ affiliations_heading_ml }]}</h3>
							</div>
							
							<div id="multi_author_div_institution" class="form-group col-lg-4 col-md-4 col-sm-4">
								<label class="control-label">Institution:</label>
								<input type="text" ng-model="mla_institution"  class="form-control input-md" placeholder="Institution">	
							</div>
							
							<div id="multi_author_div_department" class="form-group col-lg-4 col-md-4 col-sm-4">
								<label class="control-label">Department:</label>
								<input type="text" ng-model="mla_department"  class="form-control input-md" placeholder="Department">
							</div>

							<div id="multi_author_div_address" class="form-group col-lg-4 col-md-4 col-sm-4">
								<label class="control-label">Address:*</label>
								<input type="text" ng-model="mla_address"  class="form-control input-md" placeholder="address">
							</div>

							<div id="multi_author_div_aff_country" class="form-group col-lg-4 col-md-4 col-sm-4">
								<label class="control-label">Country:</label>
								<select class="form-control" id="multi_author_aff_country" ng-model="mla_aff_country">
								<option value="">Country</option>
									@foreach ($country as $countries)
									<option value="{{$countries->printable_name}}"> {{$countries->printable_name}}</option>
									@endforeach
								</select>
							</div>

							<div id="multi_author_div_postal_code" class="form-group col-lg-4 col-md-4 col-sm-4">
								<label class="control-label">Postal Code:</label>
								<input type="text" ng-model="mla_postal_code" class="form-control input-md" placeholder="Postal Code" >
							</div>
							
							<div id="multi_author_div_city" class="form-group col-lg-4 col-md-4 col-sm-4">
								<label class="control-label">City:</label>
								<input type="text" ng-model="mla_city" class="form-control input-md" placeholder="City" >
							</div>

							<div id="multi_author_div_phone" class="form-group col-lg-4 col-md-4 col-sm-4">
								<label class="control-label">Phone:</label>
								<input type="text" ng-model="mla_phone"  class="form-control input-md" placeholder="Phone" >
							</div>

							<div id="multi_author_div_fax" class="form-group col-lg-4 col-md-4 col-sm-4">
								<label class="control-label">Fax:</label>
								<input type="text" ng-model="mla_fax" class="form-control input-md" placeholder="Fax" >
							</div>

							<div id="multi_author_div_web_view" class="form-group col-lg-12 col-md-12 col-sm-12">
								<label class="control-label">Web View:*</label>
								<textarea ng-model="mla_web_view" class="form-control input-md" placeholder="Web View" ></textarea> 
							</div>
							
							<div class="form-group col-lg-12 col-md-12 col-sm-12" style="text-align:right">
								<div ng-switch="action">
									<div ng-switch-when="INSERT">
										<input class="btn btn-success btn-xs " type="button" ng-click="AddAffiliation_ml()" value="Add Affiliation" />
									</div>
									<div ng-switch-when="UPDATE">
										<input class="btn btn-success btn-xs " type="button" ng-click="UpdateAffiliation_ml()" value="Update Affiliation" />
									</div>
								</div>
							</div>
							
							
							<input type="hidden" id="multilang_author_id" name="multilang_author_id" value="" />
							<input class="btn btn-success btn-xs" id="get_multilang_aff" type="button" ng-click="GetMultiLnagAffiliation()" value="Get AFF" style="display: none;" />
							
							<div style="clear:both;"></div>
						</div>


                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" data-dismiss="modal" class="btn btn-default">Close</button>
            </div>
        </div>
    </div>
</div>							

