| Conditions | 1 |
| Paths | 1 |
| Total Lines | 26 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 24 | public function init() |
||
| 25 | { |
||
| 26 | $this->setName('admin-job-edit'); |
||
| 27 | $this->setDescription(sprintf( |
||
| 28 | /*@translate*/ 'Change status or publish date.%1$s%2$sBeware!%3$s Status changes will eventually cause notification emails to be send.', |
||
| 29 | '<br><br>', '<strong>', '</strong>' |
||
| 30 | )); |
||
| 31 | |||
| 32 | $this->add([ |
||
| 33 | 'type' => 'Jobs/StatusSelect', |
||
| 34 | |||
| 35 | ]); |
||
| 36 | |||
| 37 | $this->add([ |
||
| 38 | 'type' => 'Core/Datepicker', |
||
| 39 | 'name' => 'datePublishStart', |
||
| 40 | 'options' => [ |
||
| 41 | 'label' => /*@translate*/ 'Start date', |
||
| 42 | 'description' => /*@translate*/ 'Set the start date of this job.', |
||
| 43 | ], |
||
| 44 | 'attributes' => [ |
||
| 45 | 'data-date-autoclose' => 'true', |
||
| 46 | ], |
||
| 47 | ]); |
||
| 48 | $this->setIsDescriptionsEnabled(true); |
||
| 49 | } |
||
| 50 | |||
| 66 | } |