0005-Feature-764-Add-template-enable-disable-status-colum.patch

c) Add enable/disable column to oZones templates - Hector Sanjuan, 08/31/2011 11:29 PM

Download (3.14 KB)

View differences:

src/ozones/Server/public/js/ozones-util.js
138 138
                template.GNAME,
139 139
                template.NAME,
140 140
                pretty_time(template.REGTIME),
141
                parseInt(template.PUBLIC) ? "yes" : "no"
141
                parseInt(template.PUBLIC,10) ? "yes" : "no",
142
                parseInt(template.ENABLED,10) ? "yes" : "no"
142 143
            ]);
143 144
        } else {
144 145
            template_array.push([
......
147 148
                template.GNAME,
148 149
                template.NAME,
149 150
                pretty_time(template.REGTIME),
150
                parseInt(template.PUBLIC) ? "yes" : "no"
151
                parseInt(template.PUBLIC,10) ? "yes" : "no",
152
                parseInt(template.ENABLED,10) ? "yes" : "no"
151 153
           ]);
152 154
        };
153 155
    });
src/ozones/Server/public/js/plugins/aggregated-tab.js
130 130
      <th>Name</th>\
131 131
      <th>Registration time</th>\
132 132
      <th>Public</th>\
133
      <th>Enabled</th>\
133 134
    </tr>\
134 135
  </thead>\
135 136
  <tbody>\
......
589 590
        "bAutoWidth":false,
590 591
        "sPaginationType": "full_numbers",
591 592
        "aoColumnDefs": [
592
            { "sWidth": "35px", "aTargets": [0,2,7] },
593
            { "sWidth": "35px", "aTargets": [0,2,7,8] },
593 594
            { "sWidth": "100px", "aTargets": [1,3,4,6] }
594 595
        ]
595 596
    });
src/ozones/Server/public/js/plugins/zones-tab.js
338 338
      <th>Name</th>\
339 339
      <th>Registration time</th>\
340 340
      <th>Public</th>\
341
      <th>Enabled</th>\
341 342
    </tr>\
342 343
  </thead>\
343 344
  <tbody>\
......
498 499
        "bAutoWidth":false,
499 500
        "sPaginationType": "full_numbers",
500 501
        "aoColumnDefs": [
501
            { "sWidth": "35px", "aTargets": [0,5] },
502
            { "sWidth": "35px", "aTargets": [0,5,6] },
502 503
            { "sWidth": "100px", "aTargets": [1,2,4] }
503 504
        ]
504 505
    });
505
-