public function __construct()
 {
     date_default_timezone_set('Asia/Jakarta');
     Former::framework($this->form_framework);
     //$this->beforeFilter('auth', array('on'=>'get', 'only'=>array('getIndex','getAdd','getEdit') ));
     $this->backlink = strtolower($this->controller_name);
 }
示例#2
0
 public function __construct()
 {
     View::share(array('theme' => get_current_theme(), 'pages' => array('products', 'categories', 'pages', 'purchases'), 'results' => array('Users' => admin_path('users'), 'Settings' => admin_path('settings'), 'Log out' => admin_path('logout')), 'welcome_message' => Plugin::fire('admin.welcome_message', 'Welcome to Aviate!')->last()));
     //  Don't use Bootstrap-style inputs
     Former::framework('Nude');
     return $this->beforeFilter('auth|install');
 }
 /**
  * Setup the layout used by the controller.
  *
  * @return void
  */
 protected function setupLayout()
 {
     Former::framework('TwitterBootstrap');
     if (!is_null($this->layout)) {
         $this->layout = View::make($this->layout);
     }
 }
示例#4
0
 public function getAdd()
 {
     $controller_name = strtolower($this->controller_name);
     Former::framework($this->form_framework);
     //$this->crumb->add($controller_name.'/add','New '.Str::singular($this->controller_name));
     $data = $this->beforeAddForm();
     $model = $this->model;
     $form = $this->form;
     $this->title = $this->title == '' ? Str::singular($this->controller_name) : Str::singular($this->title);
     Breadcrumbs::addCrumb($this->title, URL::to($controller_name));
     Breadcrumbs::addCrumb('New ' . $this->title, URL::to('/'));
     return View::make($controller_name . '.' . $this->form_add)->with('validator', $this->validator)->with('back', $controller_name)->with('auxdata', $data)->with('form', $form)->with('submit', $controller_name . '/add')->with('crumb', $this->crumb)->with('title', 'New ' . $this->title);
 }
示例#5
0
        <div class="row-fluid lmargin">
            <div class="span3"></div>
            <div class="span2">
                {{ Former::text('tax','Tax')->class('span6') }}
            </div>
            <div class="span3">
                {{ Former::text('insurance','Insurance')->class('span6') }}
            </div>
            <div class="span3">
                {{ Former::text('HOA','HOA')->class('span6') }}
            </div>
        </div>

        <?php 
Former::framework('TwitterBootstrap');
?>

        {{ Former::text('propertyManager','Property Manager') }}

        {{ Former::textarea('specialConditionRemarks','Special Condition Remarks')->class('span10')->rows(8) }}

        <?php 
$fupload = new Fupload();
?>

        {{ $fupload->id('imageupload')->multi(true)->url('upload')->title('Select Images')->label('Upload Images')->make() }}

    </div>
</div>