<?php
/**
 * Created by PhpStorm.
 * User: Utilisateur
 * Date: 2019-09-23
 * Time: 09:41

 */

?>


                    <!-- new widget -->
                    <div class="jarviswidget jarviswidget-color-blueDark">
                        <header>
                            <h2><?php echo $projet; ?></h2>
                        </header>

                        <!-- widget div-->
                        <div>

                            <div class="widget-body">
                                <!-- content goes here -->
                                popupeventstatut
                                <?php  echo form_open('projets/savetache/' . $id . '/'. $section . '/' . $section_id .'/'.$page.'/'.$details_id , 'class="smart-form" id="saveRecord"');?>
                                    <fieldset>

                                        <div class="form-group">
                                            <label>
                                                <?php

                                                $mem_champ='tach_aqui_id';
                                                echo form_label($label[$mem_champ]);

                                                ?>

                                            </label>
                                            <label class="select">
                                                <?php
                                                echo  $icon[$mem_champ];
                                                echo form_dropdown($mem_champ,$select[$mem_champ]['choix'],$select[$mem_champ]['value']);
                                                ?>
                                                <i>

                                                </i>
                                            </label>

                                        </div>


                                        <div class="form-group">
                                                    <?php
                                                    $mem_champ = 'tach_echeance_date';


                                                    ?>
                                                    <label >
                                                        <?php

                                                        echo form_label($label[$mem_champ]);

                                                        ?>

                                                    </label>
                                            <label class="input"> <i class="icon-append fa fa-calendar"></i>
                                                <?php


                                                echo form_input($input[$mem_champ]); ?>
                                            </label>
                                                </div>
                                        <br>
                                            <div class="form-group">
                                                <label >
                                                    <?php
                                                    $mem_champ='tach_type';
                                                    echo form_label($label[$mem_champ]);
                                                    ?>
                                                </label>

                                                <label>
                                                    <?php

                                                    echo form_dropdown($mem_champ,$select[$mem_champ]['choix'],$select[$mem_champ]['value']);
                                                    ?>

                                                </label>
                                            </div>  <br>
                                        <div class="form-group">
                                            <label >
                                                <?php
                                                $mem_champ='tach_statut';
                                                echo form_label($label[$mem_champ]);
                                                ?>
                                            </label>

                                            <label>
                                                <?php

                                                echo form_dropdown($mem_champ,$select[$mem_champ]['choix'],$select[$mem_champ]['value']);
                                                ?>

                                            </label>
                                        </div><br>
                                        <div class="form-group">
                                            <label>
                                                Demande
                                            </label>
                                            <label class="textarea">
                                                <?php
                                                $mem_champ = 'tach_note_demande';
                                                echo $icon[$mem_champ];
                                                echo form_textarea($input[$mem_champ]);
                                                ?>
                                            </label>
                                        </div>
                                        <div class="form-group">
                                            <label>
                                                Suivie
                                            </label>
                                            <label class="textarea">
                                                <?php
                                                $mem_champ = 'tach_note_suivie';
                                                echo $icon[$mem_champ];
                                                echo form_textarea($input[$mem_champ]);
                                                ?>
                                            </label>
                                        </div>


                                    </fieldset>
                                    <div class="form-actions">
                                        <?php if ($id!=0){

                                              if ($terminer==1){
                                                ?>
                                                 <button style="float: left;" name="button"  class="btn btn-default" type="submit" value="Terminer"  >
                                                     Terminer
                                                 </button>
                                                <?php }else{?>
                                                  <button style="float: left;" name="button"  class="btn btn-default" type="submit" value="Activer"  >
                                                Activer
                                            </button>
                                            <?php }}?>



                                        <button name="buttonfin"  class="btn btn-default" type="submit" value="Ajout"   >
                                                    Ajout
                                                </button>


                                    </div>
                                </form>

                                <!-- end content -->
                            </div>

                        </div>
                        <!-- end widget div -->
                    </div>
                    <!-- end widget -->



<script>
    $('#tach_echeance_date').datepicker({
        dateFormat: 'yy-mm-dd',
        prevText: '<i class="fa fa-chevron-left"></i>',
        nextText: '<i class="fa fa-chevron-right"></i>'
    });
 </script>