SLN_Form::fieldDate($helper->getFieldName($postType, 'date'), $booking->getDate()); ?> <?php SLN_Form::fieldTime($helper->getFieldName($postType, 'time'), $booking->getTime()); ?> </label> </div> </div> <div class="col-md-6 col-sm-4"> <div class="form-group sln_meta_field "> <label><?php _e('Status', 'sln'); ?> </label> <?php SLN_Form::fieldSelect($helper->getFieldName($postType, 'status'), SLN_Enum_BookingStatus::toArray(), $booking->getStatus(), array('map' => true)); ?> </div> </div> </div> <div class="sln-separator"></div> <div class="form-group sln_meta_field"> <label><?php _e('Attendant', 'sln'); ?> </label><br/> <?php foreach ($plugin->getAttendants() as $attendant) { ?> <div class="row"> <div class="col-md-1 col-sm-1 col-xs-2">
public function bulkPostStates() { global $post; $arg = get_query_var('post_status'); if ($post->post_type == SLN_Plugin::POST_TYPE_BOOKING) { foreach (SLN_Enum_BookingStatus::toArray() as $k => $v) { if ($arg != $k) { if ($post->post_status == $k) { return array($v); } } } } return null; }