<section id="main-content">
    <section class="wrapper">
        <div class="row">
            <div class="col-sm-12">
                <?= form_open(site_url('educations/' . $educations['id'] . '/edit'), 'role="form"'); ?>
                <section class="panel">
                    <header class="panel-heading">
                        Modification d'éducation
                        <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('educations[years]') ? ' has-error' : ''); ?>">
                                    <label class="control-label" for="years">Années :</label>
                                    <?= (form_error('educations[years]') ? form_error('educations[years]', ' <span class="help-inline"> | ', '</span>') : ''); ?>
                                    <?= form_input('educations[years]', set_value('educations[years]', $educations['years']), 'class="form-control form-title-article" placeholder="Années " htmlEscape="true"'); ?>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-12 col-sm-12 col-xs-12">
                                <div class="form-group<?= (form_error('educations[place]') ? ' has-error' : ''); ?>">
                                    <label class="control-label" for="years">Place :</label>
                                    <?= (form_error('educations[place]') ? form_error('educations[place]', ' <span class="help-inline"> | ', '</span>') : ''); ?>
                                    <?= form_input('educations[place]', set_value('educations[place]', $educations['place']), 'class="form-control form-title-article" placeholder="Place " htmlEscape="true"'); ?>
                                </div>
                            </div>
                            <div class="col-lg-9 col-md-12 col-sm-12 col-xs-12">
                                <div class="form-group<?= (form_error('educations[title]') ? ' has-error' : ''); ?>">
                                    <label class="control-label" for="title">Titre :</label>
                                    <?= (form_error('educations[title]') ? form_error('educations[title]', ' <span class="help-inline"> | ', '</span>') : ''); ?>
                                    <?= form_input('educations[title]', set_value('educations[title]', $educations['title']), 'class="form-control form-title-article" placeholder="Titre " htmlEscape="true"'); ?>
                                </div>
                            </div>
                            <div class="col-lg-3 col-md-12 col-sm-12 col-xs-12">
                                <div class="form-group<?= (form_error('educations[position]') ? ' has-error' : ''); ?>">
                                    <label class="control-label" for="title">Position :</label>
                                    <?= (form_error('educations[position]') ? form_error('educations[position]', ' <span class="help-inline"> | ', '</span>') : ''); ?>
                                    <?= form_input('educations[position]', set_value('educations[position]', $educations['position']), 'class="form-control form-title-article" placeholder="Position " htmlEscape="true"'); ?>
                                </div>
                            </div>
                            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                <div class="form-group<?= (form_error('educations[description]') ? ' has-error' : ''); ?>">
                                    <label class="control-label" for="title">Description :</label>
                                    <?= (form_error('educations[description]') ? form_error('educations[description]', ' <span class="help-inline"> | ', '</span>') : ''); ?>
                                    <?= form_textarea('educations[description]', set_value('educations[description]', $educations['description']), 'class="form-control form-title-article" placeholder="Description " 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>