Rev 14517 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<div class="container"><div class="row"><div class="col-lg-3"><?php echo $this->Element('adminactions');?></div><div class="col-lg-9"><?php echo $this->element('adminsearch');?><h2><?php echo __('Exceptional Nlcs'); ?></h2><table class="table table-striped"><tr><th><?php echo ('skuBundleId'); ?></th><th><?php echo ('maxNlc'); ?></th><th><?php echo ('minNlc'); ?></th><th><?php echo ('overrideNlc'); ?></th><th class="actions"><?php echo __('Actions'); ?></th></tr><?php foreach ($exceptionalnlcs as $exceptionalnlc): ?><?phpif(!is_array($exceptionalnlc)){$exceptionalnlc = json_decode($exceptionalnlc,1);}?><tr><td><?php echo h($exceptionalnlc['skuBundleId']); ?> </td><td class="edit" id="maxNlc" data-oid="<?php echo $exceptionalnlc['_id']['$oid'];?>"><?php echo h($exceptionalnlc['maxNlc']); ?></td><td class="edit" id="minNlc" data-oid="<?php echo $exceptionalnlc['_id']['$oid'];?>"><?php echo h($exceptionalnlc['minNlc']); ?></td><td class="editable" id="overrideNlc" data-oid="<?php echo $exceptionalnlc['_id']['$oid'];?>"><?php echo $exceptionalnlc['overrideNlc']==1?'Yes':'No'; ?></td><td class="actions"><?php //echo $this->Html->link(__('Edit'), array('action' => 'edit', $exceptionalnlc['_id']['$oid'])); ?><?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $exceptionalnlc['_id']['$oid']), null, __('Are you sure you want to delete # %s?', $exceptionalnlc['_id']['$oid'])); ?></td></tr><?php endforeach; ?></table></div></div><nav><ul class="pager"><?php if($page>1):?><li><a href="?page=<?php echo $page-1;?>">Previous</a></li><?php endif;?><li><a href="?page=<?php echo $page+1;?>">Next</a></li></ul></nav></div><script type="text/javascript">$(document).ready(function() {$('.editable').editable(base_url+'admin/'+controller+'/update', {data : "{0:'No',1:'Yes'}",type : 'select',submit : 'OK',tooltip : 'Click to edit...',submitdata : function(value, settings) {return {oid: $(this).data('oid')};}});});</script>