<commit_before><?php slot('title', __('Loan Overview'));  ?>
<div class="page">
    <h1 class="view_mode"><?php echo __('Overview');?></h1>

    <?php include_partial('tabs', array('loan'=> $loan, 'items'=>array(),'view'=>true)); ?>
    <div class="tab_content panel_view">
        <table class="catalogue_table_view">
        <thead>
          <tr>
            <th><?php echo __('Darwin Part') ;?></th>
            <th><?php echo __('I.g. Num');?></th>
            <th><?php echo __('Details') ;?></th>
            <th><?php echo __('Expedition') ;?></th>
            <th><?php echo __('Return') ;?></th>
            <th></th>
          </tr>
        </thead>
        <tbody>
          <?php foreach($items as $item):?>
            <td><?php echo $item->getPartRef();?></td>
            <td><?php echo $item->getIgRef();?></td>
            <td><?php echo $item->getDetails();?></td>
            <td><?php echo $item->getFromDate();?></td>
            <td><?php echo $item->getToDate();?></td>
            <td><?php echo link_to(image_tag('blue_eyel.png', array("title" => __("View"))),'loanitem/view?id='.$item->getId());?></td>
          <?php endforeach;?>
        </tbody>
       </table>
       <?php if(! count($item)):?>
        <div class="warn_message"><?php echo __('There is currently no items in the loan.');?></div>
       <?php endif;?>
  <br />
      <p class="clear"></p>
      <p align="right">
        &nbsp;<a class="bt_close" href="<?php echo url_for('loan/edit?id='.$loan->getId()) ?>" id="spec_cancel"><?php echo __('Back to Loan');?></a>
      </p>

    </div>

</div><commit_msg>Add more info for linked parts ref #967<commit_after><?php slot('title', __('Loan Overview'));  ?>
<div class="page">
    <h1 class="view_mode"><?php echo __('Overview');?></h1>

    <?php include_partial('tabs', array('loan'=> $loan, 'items'=>array(),'view'=>true)); ?>
    <div class="tab_content panel_view">
        <table class="catalogue_table_view">
        <thead>
          <tr>
            <th><?php echo __('Darwin Part') ;?></th>
            <th><?php echo __('I.g. Num');?></th>
            <th><?php echo __('Details') ;?></th>
            <th><?php echo __('Expedition') ;?></th>
            <th><?php echo __('Return') ;?></th>
            <th></th>
          </tr>
        </thead>
        <tbody>
          <?php foreach($items as $item):?>
            <tr>
              <td><?php if($item->getPartRef()):?>
                <?php echo image_tag('info.png',"title=info class=extd_info data_id=".$item->getPartRef());?>
                <?php echo link_to('#' . $item->getPartRef(), 'part/view?id='. $item->getPartRef());?>
              <?php endif;?></td>
              <td><?php echo $item->Ig->getIgNum();?></td>
              <td><?php echo $item->getDetails();?></td>
              <td><?php echo $item->getFromDate();?></td>
              <td><?php echo $item->getToDate();?></td>
              <td><?php echo link_to(image_tag('blue_eyel.png', array("title" => __("View"))),'loanitem/view?id='.$item->getId());?></td>
            </tr>
          <?php endforeach;?>
        </tbody>
       </table>
       <?php if(! count($item)):?>
        <div class="warn_message"><?php echo __('There is currently no items in the loan.');?></div>
       <?php endif;?>
  <br />
      <p class="clear"></p>
      <p align="right">
        &nbsp;<a class="bt_close" href="<?php echo url_for('loan/edit?id='.$loan->getId()) ?>" id="spec_cancel"><?php echo __('Back to Loan');?></a>
      </p>

    </div>

</div>
<script  type="text/javascript">
$(document).ready(function () {
  $('.extd_info').mouseover(function(event){
      $(this).qtip({
        show: {
          ready: true,
          delay: 0,
          event: event.type,
          solo: true,
        },
        //hide: { event: 'mouseout' },
        style: {
          tip: true, // Give it a speech bubble tip with automatic corner detection
          name: 'cream'
        },
        content: {
          text: '<img src="/images/loader.gif" alt="loading"> Loading ...',
          title: { text: '<?php echo __("Linked Info") ; ?>' },
          ajax: {
            url: '<?php echo url_for("loan/getPartInfo");?>',
            type: 'GET',
            data: { id:   $(this).attr('data_id') }
          }
        },
        events: {
          hide: function(event, api) {
            api.destroy();
          }
        }
      });
    });
  });
</script>
{'fraction_non_alphanumeric': 0.2327313769751693, 'fraction_numerical': 0.0018058690744920992, 'mean_word_length': 2.185478073328541, 'pattern_counts': {'":': 0, '<': 149, '<?xml version=': 0, '>': 175, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '825818', 'n_tokens_mistral': 1455, 'n_tokens_neox': 1451, 'n_words': 298}