<?php

if (acl_i3_entity_add_is_allowed('information')) {
    ?>
 
<a class="btn btn-primary" href="<?php 
    echo get_url('events', 'add_source', null, array('eid' => $event_id));
    ?>
"><i class="icon-plus icon-white"></i> <?php 
    echo _t('ADD_SOURCE');
    ?>
</a>
<?php 
}
?>
<br />
<br />
<?php 
if (is_array($sources) && count($sources) != 0) {
    ?>
<form class="form-horizontal"  action="<?php 
    get_url('events', 'delete_information');
    ?>
" method="post">
<table class='table table-bordered table-striped table-hover'>
    <thead>
        <tr>
			<th width='16px'><input type='checkbox' onchange='$("input.delete").attr("checked",this.checked)' /></th>
            <th class="title"><?php 
    echo _t('DATE_OF_SOURCE_MATERIAL');
    ?>
<?php

if (acl_i3_entity_add_is_allowed('intervention')) {
    ?>
<a class="btn btn-primary" href="<?php 
    echo get_url('events', 'add_intv_party', null, array('eid' => $event_id));
    ?>
"><i class="icon-plus icon-white"></i><?php 
    echo _t('ADD_INTERVENTION');
    ?>
</a>
<?php 
}
?>
<br />
<br />
<?php 
if (!isset($intv_list)) {
    ?>
    <div class='alert alert-info'> <button type="button" class="close" data-dismiss="alert">×</button> 
    <?php 
    echo _t('THERE_IS_NO_INFORMATION_ABOUT_INTERVENING_PARTY_AND_INTERVENTION_YET__YOU_SHOULD_ADD_SOME_');
    ?>
    </div>
<?php 
} else {
    ?>
<form class="form-horizontal"  action="<?php 
    get_url('events', 'delete_intervention');
    ?>
" method="post">