<?php
defined('_JEXEC') or die('Restricted access');
?>
<!-- Attached Module Modal -->
<div class="modal fade" id="attached-child-enteties-modal" tabindex="-1" role="dialog" aria-labelledby="attached-module-modal-Label" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
        <h4 class="modal-title" id="attached-module-modal-Label"><?php echo cck_lang_text("COM_OS_CCK_ATTACHED_ENTITY_MODAL_TITLE")?></h4>
      </div>
      <div class="modal-body">
        <div class="row">
          <?php echo JHTML::_('select.genericlist', $layout->enteties_list, 'add_child_enteties', 'onchange="addChildEntityFields(\'\',1)"', 'value', 'text', 0); ?>
            <?php if($layout->type == 'add_instance'){ ?>
            <input id="child_entity_alias" type="text" value="" placeholder="<?php echo cck_lang_text("COM_OS_CCK_ATTACHED_ENTITY_MODAL_ALIAS_PLACEHOLDER")?>"/>
            <?php } ?>
        </div>
          
          <div id="modal_fields_options"></div>
      </div>
    </div>
  </div>
</div>
<!-- Attached Module Modal -->