Ejemplo n.º 1
0
<div class="row">
    <form action="" method="post" enctype="multipart/form-data">
        <div class="col-md-8">
            <?php 
echo $this->utils->alert();
?>

            <div class="panel panel-default">
                <div class="panel-heading"><i class="fa fa-plus-square"></i> Yeni Kayıt Ekle</div>
                <div class="panel-body">

                    <?php 
echo bsFormText('title', 'Başlık', array('required' => true));
?>
                    <?php 
echo bsFormSlug('slug', 'Slug', array('checked' => true));
?>
                    <?php 
echo bsFormImage('image', 'Resim');
?>

                </div>
                <div class="panel-footer">
                    <button class="btn btn-success" type="submit">Kaydet</button>
                    <button class="btn btn-success" type="submit" name="redirect" value="<?php 
echo $this->module;
?>
/records">Kaydet ve Listeye Dön</button>
                    <a class="btn btn-default" href="<?php 
echo $this->module;
?>
Ejemplo n.º 2
0
<div class="row">
    <form action="" method="post" enctype="multipart/form-data">
        <div class="col-md-8">
            <?php 
echo $this->utils->alert();
?>

            <div class="panel panel-default">
                <div class="panel-heading"><i class="fa fa-edit"></i> Kayıt Düzenle</div>
                <div class="panel-body">

                    <?php 
echo bsFormText('title', 'Başlık', array('required' => true, 'value' => $record->title));
?>
                    <?php 
echo bsFormSlug('slug', 'Slug', array('required' => true, 'value' => $record->slug));
?>
                    <?php 
echo bsFormImage('image', 'Resim', array('value' => $record->image, 'path' => '../public/upload/service/'));
?>
                    <?php 
echo bsFormTextarea('summary', 'Özet', array('required' => true, 'value' => $record->summary));
?>
                    <?php 
echo bsFormEditor('detail', 'Detay', array('required' => true, 'value' => $record->detail));
?>


                </div>
                <div class="panel-footer">
                    <button class="btn btn-success" type="submit">Kaydet</button>