<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<section class="content-header">
    <h1><i class="fa fa-user-plus"></i> Cadastrar Advogado</h1>
    <ol class="breadcrumb">
        <li><a href="<?php echo site_url('admin/diario_oficial')?>">Diário Oficial</a></li>
        <li class="active">Cadastrar Advogado</li>
    </ol>
</section>
<section class="content">
<div class="row"><div class="col-md-6 col-md-offset-3">
<div class="box box-primary">
    <div class="box-header with-border"><h3 class="box-title">Dados do Advogado</h3></div>
    <form method="post" action="<?php echo site_url('admin/diario_oficial/add_advogado')?>">
    <div class="box-body">
        <div class="form-group">
            <label>Nome Completo <span class="text-danger">*</span></label>
            <input type="text" name="nome" class="form-control" required placeholder="Ex: Breno Augusto Wanderley de Paiva">
        </div>
        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label>Número OAB <span class="text-danger">*</span></label>
                    <input type="text" name="oab" class="form-control" required placeholder="Ex: 31577">
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group">
                    <label>UF OAB <span class="text-danger">*</span></label>
                    <select name="uf_oab" class="form-control" required>
                        <?php foreach(['AC','AL','AM','AP','BA','CE','DF','ES','GO','MA','MG','MS','MT','PA','PB','PE','PI','PR','RJ','RN','RO','RR','RS','SC','SE','SP','TO'] as $uf): ?>
                        <option value="<?php echo $uf?>" <?php echo $uf==='PE'?'selected':''?>><?php echo $uf?></option>
                        <?php endforeach; ?>
                    </select>
                </div>
            </div>
        </div>
        <input type="hidden" name="submitted" value="1">
    </div>
    <div class="box-footer">
        <button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> Cadastrar</button>
        <a href="<?php echo site_url('admin/diario_oficial')?>" class="btn btn-default">Cancelar</a>
    </div>
    </form>
</div>
</div></div>
</section>
