Subversion Repositories SmartDukaan

Rev

Rev 14561 | Rev 17471 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
17344 naman 11
					echo $this->Form->input('skuBundleId',array('type'=>'number'));
14517 anikendra 12
					echo $this->Form->input('FeaturedDeal.rankDetails.0',array('type'=>'number','label'=>'Default Rank'));
17344 naman 13
					// $options = array(
14
					//     '3' => 'Mobiles',
15
					//     '5' => 'Tablets'
16
					// );
14533 anikendra 17
 
17344 naman 18
					// $attributes = array(
19
					//     'legend' => false,
20
					//     'value' => 3,
21
					//     'class' => 'catselect'
22
					// );
23
					// echo $this->Form->radio('type',$options,$attributes);
14533 anikendra 24
					// echo $this->Form->input('FeaturedDeal.rankDetails',array('type'=>'number','label'=>'Rank','class'=>'categoryRank'));
17344 naman 25
					// echo $this->Form->input('FeaturedDeal.rankDetails.3',array('type'=>'number','label'=>'Mobiles Rank','class' => 'categoryRank'));
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'));
17344 naman 30
					// echo $this->Form->input('multi',array('type'=>'checkbox'));
14517 anikendra 31
				?>
32
				</fieldset>
33
			<?php echo $this->Form->end(__('Submit')); ?>
34
			</div>
35
		</div>
36
	</div>
37
</div>
38
<script type="text/javascript">
39
$(function(){
14533 anikendra 40
	$(document).on('click','.catselect',function(){
14517 anikendra 41
		var that = $(this);
14533 anikendra 42
		$('.categoryRank').prop('disabled',true).val('');
43
		$('#FeaturedDealRankDetails'+$(this).val()).prop('disabled',false);		
14517 anikendra 44
	})
45
})
46
</script>