text: /**
  * Class MainPrioridadesView
  * @author KOI || @dropecamargo
  * @link http://koi-ti.com
  */
  
  //Global App Backbone
  app || (app = {});
  
  (function ($, window, document, undefined) {
  
      app.MainPrioridadesView = Backbone.View.extend({
  
          el: '#prioridades-main',
  
          /**
          * Constructor Method
          */
          initialize : function() {
  
              this.$prioridadesSearchTable = this.$('#prioridades-search-table');
              this.$prioridadesSearchTable.DataTable({
                  dom: "<'row'<'col-sm-4'B><'col-sm-4 text-center'l><'col-sm-4'f>>" +
                      "<'row'<'col-sm-12'tr>>" +
                      "<'row'<'col-sm-5'i><'col-sm-7'p>>",
                  processing: true,
                  serverSide: true,
                  language: window.Misc.dataTableES(),
                  ajax: window.Misc.urlFull( Route.route('prioridades.index') ),
                  columns: [
                      { data: 'id', name: 'id' },
                      { data: 'prioridad_nombre', name: 'prioridad_nombre' },
                      { data: 'prioridad_activo', name: 'prioridad_activo'}
                  ],
                  buttons: [
                      {
                          text: '<i class="fa fa-plus"></i> Nueva prioridad',
                          className: 'btn-sm',
                          action: function ( e, dt, node, config ) {
                              window.Misc.redirect( window.Misc.urlFull( Route.route('prioridades.create') ) )
                          }
                      }
                  ],
                  columnDefs: [
                      {
                          targets: 0,
                          width: '10%',
                          render: function ( data, type, full, row ) {
                              return '<a href="'+ window.Misc.urlFull( Route.route('prioridades.show', {prioridades: full.id }) )  +'">' + data + '</a>';
                          }
                      },
                      {
                          targets: 2,
                          width: '10%',
                          render: function ( data, type, full, row ) {
                              return data ? 'Si' : 'No';
                          },
                      }
                  ]
              });
          }
      });
  
  })(jQuery, this, this.document);
  