<?php 
$form->hidden('file', array('attributes' => array('id' => 'attachment')));
?>
        <?php 
if ($model->exist && $model->file) {
    ?>
            <span
                class="help-block m-b-none"><?php 
    _e("File attached, upload new file will replace the current file.", ig_uploader()->domain);
    ?>
</span>
        <?php 
}
?>
        <span class="help-block m-b-none error-file"><?php 
$form->error("file");
?>
</span>

        <div class="clearfix"></div>
    </div>
    <div style="margin-bottom: 0" class="form-group <?php 
echo $model->has_error("url") ? "has-error" : null;
?>
">
        <?php 
$form->label("url", array("text" => "Url", "attributes" => array("class" => "control-label hidden-xs hidden-sm")));
?>
        <?php 
$form->text("url", array("attributes" => array("class" => "form-control input-sm", "placeholder" => __("Url", ig_uploader()->domain))));
?>
">
                                <?php 
$form->label("send_to", array("text" => "Send To", "attributes" => array("class" => "control-label col-sm-2 hidden-xs hidden-sm")));
?>
                                <div class="col-md-10 col-sm-12 col-xs-12">
                                    <?php 
$form->text("send_to", array("attributes" => array("class" => "form-control", "placeholder" => "Send to", 'id' => 'admin-bar-mm-send-to')));
?>
                                    <!--<span
                                class="help-block m-b-none"><?php 
/*_e("Please enter the username, separate by commas", mmg()->domain) */
?>
</span>-->
                                    <span
                                        class="help-block m-b-none error-send_to"><?php 
$form->error("send_to");
?>
</span>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                            <div style="margin-bottom: 0"
                                 class="form-group <?php 
echo $model->has_error("subject") ? "has-error" : null;
?>
">
                                <?php 
$form->label("subject", array("text" => "Subject", "attributes" => array("class" => "control-label col-sm-2 hidden-xs hidden-sm")));
?>
                                <div class="col-md-10 col-sm-12 col-xs-12">
                                    <?php 
Exemple #3
0
?>

    <div class="form-group <?php 
echo $model->has_error("noti_subject") ? "has-error" : null;
?>
">
        <?php 
$form->label("noti_subject", array("text" => "Subject", "attributes" => array("class" => "col-lg-2 control-label")));
?>
        <div class="col-lg-10">
            <?php 
$form->text_area("noti_subject", array("attributes" => array("class" => "form-control", "style" => "height:50px")));
?>
            <span
                class="help-block m-b-none error-noti_subject"><?php 
$form->error("noti_subject");
?>
</span>
        </div>
        <div class="clearfix"></div>
    </div>
    <div class="form-group <?php 
echo $model->has_error("noti_content") ? "has-error" : null;
?>
">
        <?php 
$form->label("noti_content", array("text" => "Content", "attributes" => array("class" => "col-lg-2 control-label")));
?>
        <div class="col-lg-10">
            <?php 
$form->text_area("noti_content", array("attributes" => array("class" => "form-control", "style" => "height:50px")));