Source

BlogCI / application / views / admin / posts / novo.php

Full commit
<?php echo anchor('admin/posts', 'Cancelar'); ?>

<h2>Novo post</h2>

<?php
    echo form_open();

        echo form_error('form_post_titulo');
        echo form_label('Título :', 'form_post_titulo');
        echo form_input(array(
            'name'      => 'form_post_titulo',
            'id'        => 'form_post_titulo',
            'value'     => set_value('form_post_titulo', ''),
            'maxlength' => 60
        ));

        echo form_error('form_post_autor');
        echo form_label('Autor :', 'form_post_autor');
        echo form_input(array(
            'name'      => 'form_post_autor',
            'id'        => 'form_post_autor',
            'value'     => set_value('form_post_autor', ''),
            'maxlength' => 20
        ));

        echo form_error('form_post_texto');
        echo form_label('Texto :', 'form_post_texto');
        echo form_textarea(array(
            'name'      => 'form_post_texto',
            'id'        => 'form_post_texto',
            'value'     => set_value('form_post_texto', ''),
            'rows'      => 9
        ));

        echo form_error('form_post_tags');
        echo form_label('Tags :', 'form_post_tags');
        echo form_input(array(
            'name'      => 'form_post_tags',
            'id'        => 'form_post_tags',
            'value'     => set_value('form_post_tags', ''),
            'maxlength' => 100
        ));

        echo form_submit('', 'Enviar', 'class="botao"');

    echo form_close();
?>