public static function build_toolbar($pod_name, $pod_label, $use_dialog = false, $url_params = null, $use_filter = false) { $toolbar = ""; $current_page_url = urlencode(core_utilities::get_current_page_url()); if (dms_security::is_allowed($pod_name, "add")) { $toolbar .= "<a class='btn btn-default' href='" . pods_related::get_pod_url($pod_name, "add", -1, $use_dialog, $current_page_url, $url_params) . "' title='Add {$pod_label}'><span class='glyphicon glyphicon-plus'></span></a>"; } if ($use_filter) { $toolbar .= "<a onclick='hide_show_filter()' id='filter-button' class='btn btn-default' href='#' title='Search in {$pod_label}'><span class='glyphicon glyphicon-filter'></span></a>"; } if ($toolbar != "") { $toolbar = "<div class='btn-group' role='group' aria-label='...'>{$toolbar}</div>"; } return $toolbar; }
</h1> </div> </div> </div> </div> </div> <div class="row"> <div class="col-xs-12 delete-message <?php echo $notification_css_class; ?> "> <?php echo $notification_message; ?> </div> </div> <div class="row"> <div class="col-xs-12 delete-options text-center"> <?php if ($record_sealed && dms_security::is_allowed($podname, "delete_sealed") || !$record_sealed) { echo "<a title='Delete' href='" . core_utilities::get_current_page_url() . "&confirm-delete=1' class='btn btn-danger'>Delete</a>"; } ?> <a title="Cancel" href="<?php echo $return_url; ?> " class="btn btn-default">Cancel</a> </div> </div> <?php get_footer("dialog");