
<!--Cabecalho -->
<?php $this->load->view('commons/cabecalho'); ?>
<?php $this->load->view('commons/header'); ?>
<?php $this->load->view('commons/menu'); ?>

<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>Termo de Uso</h1>
    </section>

    <!-- Main content -->
    <section class="content container-fluid">

        <?php echo $this->session->flashdata('erro-dado'); ?>
        <?php echo $this->session->flashdata('sucesso-dados'); ?>
        <?php echo $this->session->flashdata('erro-form'); ?>
        <div class="box">
            <div class="box-body">
                <?php if ($termo != NULL) { ?>
                
                <form role="form"  method="POST" id="termo">
                    <div class="form-group">
                        <textarea class="form-control" cols="5" rows="20" name="termo" data-sample="1" id="editor" placeholder="Digite o texto do Termo de Uso">
                                <?php echo $termo['conteudo']; ?>
                        </textarea>
                        <br>    
                    <button type="submit" class="btn btn-flat btn-botao"> Salvar</button>

                    </div>
                </form>
                <?php } else { ?>
                    <span style="font-size: 13pt;">  <i class="fa fa-info-circle" aria-hidden="true"></i> Nenhum registro encontrado</span>
                <?php } ?>
            </div>
        </div>

    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->
<?php $this->load->view('commons/rodape'); ?>
