Ustawienie start date end date startdate enddate
$scope.bcmiForm.find('input[name="construction_start_date"]').datepicker('setStartDate', start_date.format('DD MMM YYYY') );
$scope.bcmiForm.find('input[name="construction_start_date"]').datepicker('setEndDate', start_date.format('DD MMM YYYY') );
Relacja między datami, dates relation
odbywa się w funkcji datesRelation() w bcmiform2. Ustawia się ją za pomocą ng-change
echo render('materialpro::inputs/date', array(
'name' => 'construction_start_date',
'value' => null,
'label' => \bcmiLang::get('project.construction_start_date.label'),
'object' => null,
'validation_rules' => 'required',
'class' => '',
'ignore_placeholder' => true,
//'placeholder' => \bcmiLang::get('type'),
//'ng_model' => 'search_query',
'angular' => true,
'ng_change' => "datesRelation('opportunity_workflow', 'construction_start_date');"
));