| 14517 |
anikendra |
1 |
<div class="container">
|
|
|
2 |
<div class="row">
|
|
|
3 |
<div class="col-lg-3">
|
|
|
4 |
<?php echo $this->Element('adminactions');?>
|
|
|
5 |
</div>
|
|
|
6 |
<div class="col-lg-9">
|
|
|
7 |
<?php echo $this->Form->create('FeaturedDeal'); ?>
|
|
|
8 |
<fieldset>
|
|
|
9 |
<legend><?php echo __('Add Featured Deal'); ?></legend>
|
|
|
10 |
<?php
|
|
|
11 |
echo $this->Form->input('sku',array('type'=>'number'));
|
|
|
12 |
echo $this->Form->input('FeaturedDeal.rankDetails.0',array('type'=>'number','label'=>'Default Rank'));
|
| 14533 |
anikendra |
13 |
$options = array(
|
|
|
14 |
'3' => 'Mobiles',
|
|
|
15 |
'5' => 'Tablets'
|
|
|
16 |
);
|
|
|
17 |
|
|
|
18 |
$attributes = array(
|
|
|
19 |
'legend' => false,
|
|
|
20 |
'value' => 3,
|
|
|
21 |
'class' => 'catselect'
|
|
|
22 |
);
|
|
|
23 |
echo $this->Form->radio('type',$options,$attributes);
|
|
|
24 |
// echo $this->Form->input('FeaturedDeal.rankDetails',array('type'=>'number','label'=>'Rank','class'=>'categoryRank'));
|
| 14517 |
anikendra |
25 |
echo $this->Form->input('FeaturedDeal.rankDetails.3',array('type'=>'number','label'=>'Mobiles Rank','class' => 'categoryRank'));
|
| 14533 |
anikendra |
26 |
echo $this->Form->input('FeaturedDeal.rankDetails.5',array('type'=>'number','label'=>'Tablets Rank','class'=>'categoryRank','disabled'=>true));
|
| 14517 |
anikendra |
27 |
echo $this->Form->input('startDate',array('type'=>'datetime','timeFormat'=>24));
|
|
|
28 |
echo $this->Form->input('endDate',array('type'=>'datetime','timeFormat'=>24));
|
|
|
29 |
echo $this->Form->input('thresholdPrice',array('type'=>'number'));
|
|
|
30 |
?>
|
|
|
31 |
</fieldset>
|
|
|
32 |
<?php echo $this->Form->end(__('Submit')); ?>
|
|
|
33 |
</div>
|
|
|
34 |
</div>
|
|
|
35 |
</div>
|
|
|
36 |
</div>
|
|
|
37 |
<script type="text/javascript">
|
|
|
38 |
$(function(){
|
| 14533 |
anikendra |
39 |
$(document).on('click','.catselect',function(){
|
| 14517 |
anikendra |
40 |
var that = $(this);
|
| 14533 |
anikendra |
41 |
$('.categoryRank').prop('disabled',true).val('');
|
|
|
42 |
$('#FeaturedDealRankDetails'+$(this).val()).prop('disabled',false);
|
| 14517 |
anikendra |
43 |
})
|
|
|
44 |
})
|
|
|
45 |
</script>
|