<section id="main-content">
    <section class="wrapper">
        <div class="row">
            <div class="col-sm-12">
                <?= form_open(site_url('services/add'), 'role="form"'); ?>
                <section class="panel">
                    <header class="panel-heading">
                        Ajout d'un service
                        <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-4 col-md-12 col-sm-12 col-xs-12">
                                <div class="form-group<?= (form_error('services[title]') ? ' has-error' : ''); ?>">
                                    <label class="control-label" for="name">Nom :</label>
                                    <?= (form_error('services[title]') ? form_error('services[title]', ' <span class="help-inline"> | ', '</span>') : ''); ?>
                                    <?= form_input('services[title]', set_value('services[title]'), 'class="form-control form-title-article" placeholder="Nom " htmlEscape="true"'); ?>
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-12 col-sm-12 col-xs-12">
                                <div class="form-group<?= (form_error('services[class]') ? ' has-error' : ''); ?>">
                                    <label class="control-label" for="class">Icon :</label>
                                    <?= (form_error('services[class]') ? form_error('services[class]', ' <span class="help-inline"> | ', '</span>') : ''); ?>
                                    <?= form_input('services[class]', set_value('services[class]'), 'class="form-control form-title-article" placeholder="Icon " htmlEscape="true"'); ?>
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-12 col-sm-12 col-xs-12">
                                <div class="form-group<?= (form_error('services[pos]') ? ' has-error' : ''); ?>">
                                    <label class="control-label" for="pos">Position :</label>
                                    <?= (form_error('services[pos]') ? form_error('services[pos]', ' <span class="help-inline"> | ', '</span>') : ''); ?>
                                    <?= form_input('services[pos]', set_value('services[pos]'), '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('services[description]') ? ' has-error' : ''); ?>">
                                    <label class="control-label" for="link">Description :</label>
                                    <?= (form_error('services[description]') ? form_error('services[description]', ' <span class="help-inline"> | ', '</span>') : ''); ?>
                                    <?= form_textarea('services[description]', set_value('services[description]'), 'class="form-control form-title-article" placeholder="Description " htmlEscape="true"'); ?>
                                </div>
                            </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', 'Ajouter', 'class="btn btn-success btn-sm"'); ?>
                        </div>
                    </div>
            </div>
    </section>
    <?= form_close(); ?>
</div>
</div>
</section>
</section>