BCMI – toole

  bcmi

Tworzenie toola

  • materialpro/classess/toolhelper.php, gdzie należy znaleźć/dopisać swój case
  • bcmiDetails.angular.js > funkcja initObjectTool. Dopisać swój tool
  • w bcmiMaterialPro dodać swój controller np. //= require bcmiPlantProgress.angular.js

Aby wrzucić do toola statycznego selecta (bcmidropdown), użyc następującego kodu

echo render('materialpro::filters/filtercontainer', array(
		'filter_top' => array(
			'view' => 'materialpro::filters/filtertop',
			'view_params' => array(
				'label' => \bcmiLang::get('status'),
				'clear_label' => \bcmiLang::get('clear'),
				'ng_show_clear' => "true",
			),

		),
		'filter_bottom' => array(
			'view' => 'materialpro::inputs/dropdown/staticangular',
			'view_params' => array(
				'name' => 'order_status',
				'selected' => 0,
				'label' => false,
				'select_items' => array(
		  				array( 'value' => 'active', 'text' => \bcmiLang::get('active') ),
		  				array( 'value' => 'asap', 'text' => \bcmiLang::get('asap') ),
	  					array( 'value' => 'cancelled', 'text' => \bcmiLang::get('cancelled') ),
		  				array( 'value' => 'closed', 'text' => \bcmiLang::get('closed') ),
		  				array( 'value' => 'hold', 'text' => \bcmiLang::get('hold') ),
		  				array( 'value' => 'will_call', 'text' => \bcmiLang::get('will_call') ),

				),
				'validation_rules' => '',
				'angular' => true,
				'ng_change' => '',
			),

		),
		'class' => 'no_input_label',
		'bcmiFilterController' => true,
	));