<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class InternBanners extends AdminGodController {
	protected $model = 'InternBannerModel';
	protected $names = [
		'singular' => 'Banner',
		'plural' => 'Banners',
		'link' => 'internBanners'
	];
	protected $uploadFolder = 'intern-banners';
	protected $permissions = [
		'create' => false,
		'update' => true,
		'delete' => false
	];
	protected $fields = [
		[
			'name' => 'id',
			'label' => 'Id',
			'type' => 'hidden',
			'rules' => 'trim'
		],
		[
			'name' => 'page',
			'label' => 'Página',
			'type' => 'text',
			'showOnTable' => true,
			'disabled' => true,
			'rules' => 'trim',
			'col' => 'col-md-4'
		],
		[
			'name' => 'image',
			'label' => 'Imagem',
			'type' => 'image',
			'showOnTable' => true,
			'rules' => 'trim|required',
			'col' => 'col-md-12'
		]
	];

	function __construct () {
		parent::__construct();
	}
}
