Subversion Repositories SmartDukaan

Rev

Rev 14533 | Go to most recent revision | Details | 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
11
					echo $this->Form->input('sku',array('type'=>'number'));
12
					echo $this->Form->input('FeaturedDeal.rankDetails.0',array('type'=>'number','label'=>'Default Rank'));
13
					echo $this->Form->input('FeaturedDeal.rankDetails.3',array('type'=>'number','label'=>'Mobiles Rank','class' => 'categoryRank'));
14
					echo $this->Form->input('FeaturedDeal.rankDetails.5',array('type'=>'number','label'=>'Tablets Rank','class'=>'categoryRank'));
15
					echo $this->Form->input('startDate',array('type'=>'datetime','timeFormat'=>24));
16
					echo $this->Form->input('endDate',array('type'=>'datetime','timeFormat'=>24));
17
					echo $this->Form->input('thresholdPrice',array('type'=>'number'));
18
				?>
19
				</fieldset>
20
			<?php echo $this->Form->end(__('Submit')); ?>
21
			</div>
22
		</div>
23
	</div>
24
</div>
25
<script type="text/javascript">
26
$(function(){
27
	$(document).on('click','.categoryRank',function(){
28
		var that = $(this);
29
		$(this).prop('readonly',false);
30
		$('.categoryRank').each(function(){
31
			if($(this).prop('id') != $(that).prop('id')){
32
				$(this).val('').prop('readonly',true);
33
			}
34
		});
35
	})
36
})
37
</script>