<section id="main-content">
    <section class="wrapper">
        <div class="row">
            <div class="col-sm-12">
                <?= form_open(site_url('socials/add'), 'role="form"'); ?>
                <section class="panel">
                    <header class="panel-heading">
                        Ajout d'un réseau
                        <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('socials[name]') ? ' has-error' : ''); ?>">
                                    <label class="control-label" for="name">Nom :</label>
                                    <?= (form_error('socials[name]') ? form_error('socials[name]', ' <span class="help-inline"> | ', '</span>') : ''); ?>
                                    <?= form_input('socials[name]', set_value('socials[name]'), 'class="form-control form-title-article" placeholder="Nom " htmlEscape="true"'); ?>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-12 col-sm-12 col-xs-12">
                                <div class="form-group<?= (form_error('socials[class]') ? ' has-error' : ''); ?>">
                                    <label class="control-label" for="class">Icon :</label>
                                    <?= (form_error('socials[class]') ? form_error('socials[class]', ' <span class="help-inline"> | ', '</span>') : ''); ?>
                                    <?= form_input('socials[class]', set_value('socials[class]'), 'class="form-control form-title-article" placeholder="Icon " htmlEscape="true"'); ?>
                                </div>
                            </div>
                            <div class="col-lg-9 col-md-12 col-sm-12 col-xs-12">
                                <div class="form-group<?= (form_error('socials[link]') ? ' has-error' : ''); ?>">
                                    <label class="control-label" for="link">Place :</label>
                                    <?= (form_error('socials[link]') ? form_error('socials[link]', ' <span class="help-inline"> | ', '</span>') : ''); ?>
                                    <?= form_input('socials[link]', set_value('socials[link]'), 'class="form-control form-title-article" placeholder="Lien " htmlEscape="true"'); ?>
                                </div>
                            </div>
                            <div class="col-lg-3 col-md-12 col-sm-12 col-xs-12">
                                <div class="form-group<?= (form_error('socials[pos]') ? ' has-error' : ''); ?>">
                                    <label class="control-label" for="pos">Position :</label>
                                    <?= (form_error('socials[pos]') ? form_error('socials[pos]', ' <span class="help-inline"> | ', '</span>') : ''); ?>
                                    <?= form_input('socials[pos]', set_value('socials[pos]'), 'class="form-control form-title-article" placeholder="Position " 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>