ar external_links = {{values|tojson|safe}}


//
function alert_formated(value,row){
 if (row.alert_status ==1){
  return `<input class="toggle-event"
                         type="checkbox" data-on="UP" data-off="DOWN"
                         data-onstyle="success" checked
                         data-toggle="toggle" id="toggle-event-alert-status"
                         data-size="mini" data-width="60">`
  }
 else{
  return `<input class="toggle-event"
                         type="checkbox" data-on="