<section id="main-content">
    <section class="wrapper">
        <div class="row">
            <div class="col-sm-12">
                <?= form_open(site_url('competences/' . $competences['id'] . '/edit'), 'role="form"'); ?>
                <section class="panel">
                    <header class="panel-heading">
                        Modification du compétence
                        <span class="tools pull-right">
                            <a href="javascript:;" class="fa fa-chevron-down"></a>
                        </span>
                    </header>
                    <div class="panel-body">
                        <div class="row">                
                            <div class="col-lg-6 col-md-12 col-sm-12 col-xs-12">
                                <div class="form-group<?= (form_error('skill[name]') ? ' has-error' : ''); ?>">
                                    <label class="control-label" for="name">Nom :</label>
                                    <?= (form_error('skill[name]') ? form_error('skill[name]', ' <span class="help-inline"> | ', '</span>') : ''); ?>
                                    <?= form_input('skill[name]', set_value('skill[name]', $competences['name']), 'class="form-control form-title-article" placeholder="Nom " htmlEscape="true"'); ?>
                                </div>
                            </div>
                            <div class="col-lg-3 col-md-12 col-sm-12 col-xs-12">
                                <div class="form-group<?= (form_error('skill[percentage]') ? ' has-error' : ''); ?>">
                                    <label class="control-label" for="percentage">Pourcentage :</label>
                                    <?= (form_error('skill[percentage]') ? form_error('skill[percentage]', ' <span class="help-inline"> | ', '</span>') : ''); ?>
                                    <?= form_input('skill[percentage]', set_value('skill[percentage]', $competences['percentage']), 'class="form-control form-title-article" placeholder="Pourcentage " htmlEscape="true"'); ?>
                                </div>
                            </div>
                            <div class="col-lg-3 col-md-12 col-sm-12 col-xs-12">
                                <div class="form-group<?= (form_error('skill[position]') ? ' has-error' : ''); ?>">
                                    <label class="control-label" for="position">Position :</label>
                                    <?= (form_error('skill[position]') ? form_error('skill[position]', ' <span class="help-inline"> | ', '</span>') : ''); ?>
                                    <?= form_input('skill[position]', set_value('skill[position]', $competences['position']), 'class="form-control form-title-article" placeholder="Position " htmlEscape="true"'); ?>
                                </div>
                            </div>
                        </div>
                        
                        <div class="row">
                            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 text-right">
                                <?= form_submit('submit', 'Modifier', 'class="btn btn-success btn-sm"'); ?>
                            </div>
                        </div>
                    </div>
                </section>
                <?= form_close(); ?>
            </div>
        </div>
    </section>
</section>