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