Subversion Repositories SmartDukaan

Rev

Rev 19918 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
19563 naman 1
<script>
2
 
3
$(document).ready(function(){
4
	if($('#MasterDataCategoryId').val() == "6")
5
	{
6
		$('#MasterDataInternalRank').prop('readonly',false);
7
	}
19919 naman 8
// 	if($('#MasterDataSourceId').val() == "4"){
9
// 		$("#MasterDataExclusive").removeAttr("disabled");
10
// 	}
19563 naman 11
});
12
</script>
13
 
14600 anikendra 14
<div class="container">
15
	<div class="row">
16
		<div class="col-lg-3">
17
			<?php echo $this->Element('adminactions');?>
18
		</div>
19
		<div class="col-lg-9">
20
			<?php echo $this->Form->create('MasterData'); ?>
21
				<fieldset>
22
					<legend><?php echo __('Add to existing Master Data bundle'); ?></legend>
23
				<?php
24
					echo $this->Form->input('_id',array('readonly'=>true,'value'=>$data['_id'],'type'=>'text'));
25
					echo $this->Form->input('skuBundleId',array('readonly'=>true,'value'=>$data['skuBundleId']));
26
					echo $this->Form->input('available_price',array('value'=>$data['available_price']));
16454 anikendra 27
					echo $this->Form->input('gross_price',array('value'=>$data['gross_price']));
14600 anikendra 28
					echo $this->Form->input('brand',array('value'=>$data['brand']));
29
					echo $this->Form->input('cashback', array('type' => 'hidden','value'=>$data['cashback'] ));
15242 anikendra 30
					echo $this->Form->input('category_id',array('value'=>$data['category_id']));
14600 anikendra 31
					echo $this->Form->input('category',array('type'=>'text','value'=>$data['category']));
32
					echo $this->Form->input('identifier',array('required'=>1,'value'=>$data['identifier']));					
33
					echo $this->Form->input('marketPlaceUrl',array('value'=>$data['marketPlaceUrl']));
34
					echo $this->Form->input('model_name',array('value'=>$data['model_name']));
35
					echo $this->Form->input('mrp',array('value'=>$data['mrp']));
17673 naman 36
 
37
					$showmrp=array(0=>"False",1=>"True");
38
    				echo $this->Form->input('showMrp', array('options'=>$showmrp, 'selected'=>$data['showMrp']));
39
 
14857 anikendra 40
					echo $this->Form->input('maxPrice',array('value'=>$data['maxPrice']));
14600 anikendra 41
					echo $this->Form->input('product_name',array('value'=>$data['product_name']));
19563 naman 42
					echo $this->Form->input('rank',array('value'=>$data['rank']));		
43
 
44
					echo $this->Form->input('internalRank', array('type'=>'number','value'=> $data['internalRank'],'required'=> true,'readonly'=> true));
19860 naman 45
					echo $this->Form->input('source_id',array('value'=>$data['source_id']));
46
					echo $this->Form->input('source',array('type'=>'text','value'=>$data['source']));
19563 naman 47
 
19918 naman 48
// 					echo $this->Form->label('Exclusive');
49
// 					echo $this->Form->checkbox('exclusive',array('disabled' => true ,array('checked'=>$data['exclusive'])));
19860 naman 50
 
14600 anikendra 51
					echo $this->Form->input('secondaryIdentifier',array('value'=>$data['secondaryIdentifier']));
52
					echo $this->Form->input('sourceCategoryId', array('type' => 'hidden' ,'value'=>$data['sourceCategoryId']));
53
					echo $this->Form->input('sourceProductId', array('type' => 'hidden' ,'value'=>$data['sourceProductId']));				
54
					echo $this->Form->input('source_product_name',array('value'=>$data['source_product_name']));
55
					echo $this->Form->input('source_url',array('value'=>$data['source_url']));
56
					echo $this->Form->input('status',array('value'=>$data['status']));
14654 anikendra 57
					echo $this->Form->input('in_stock',array('type'=>'select','options'=>$stock_statuses,'default'=>$data['in_stock']));					
14600 anikendra 58
					echo $this->Form->input('stock_status',array('type'=>'text','value'=>$data['stock_status']));
59
					echo $this->Form->input('thumbnail',array('value'=>$data['thumbnail']));
60
					echo $this->Form->input('url',array('value'=>$data['url']));
17591 naman 61
 
62
					echo $this->Form->input('quantity',array('type'=>'number','value'=>$data['quantity']));
17749 naman 63
					echo $this->Form->input('shippingCost',array('value'=>$data['shippingCost']));
17712 naman 64
 
17591 naman 65
					echo $this->Form->input('videoLink',array('value'=>$data['videoLink']));
66
					$arrCategory=array(0=>"False",1=>"True");
67
    				echo $this->Form->input('showVideo', array('options'=>$arrCategory, 'selected'=>$data['showVideo']));
17712 naman 68
 
69
 
18801 naman 70
//     				$arrSubCategory=array(0=>'None',7=>'Memory Card',8=>'Data Cable',9=>'USB Light',10=>'Screen Magnifier',11=>'Car Charger',12=>'Power Bank',13=>'Pendrive',14=>'Combo',15=>'Charger',16=>'Bluetooth Headset',17=>'Speaker',18=>'Adapter',20=>'Screen Guard',21=>'Earphone',22=>'Card Reader',23=>'Mobile Holder',24=>'Aux Cable',25=>'OTG Cable',26=>'Self Stick',27=>'Back Cover',28=>'Tempered Glass',29=>'Battery',30=>'Usb Hub',31=>'Portable Music Player');
17712 naman 71
 
72
 
17637 naman 73
    				echo $this->Form->input('subCategoryId', array('options'=>$arrSubCategory, 'selected'=>$data['subCategoryId']));
19141 naman 74
    				echo $this->Form->label('Show Net Price');
19363 naman 75
    				echo $this->Form->checkbox('showNetPrice',array('checked'=>$data['showNetPrice']));
19141 naman 76
 
77
 
16345 anikendra 78
					echo $this->Form->input('offer',array('value'=>$data['offer'],'type'=>'textarea'));
79
					echo $this->Form->input('tagline',array('value'=>$data['tagline'],'type'=>'textarea'));
14654 anikendra 80
					echo $this->Form->input('is_shortage',array('type'=>'select','options'=>$shortage_status,'default'=>$data['is_shortage']));
15250 anikendra 81
					echo $this->Form->input('buyBoxFlag',array('type'=>'select','options'=>$buyBoxFlag,'default'=>$data['buyBoxFlag']));
16104 anikendra 82
					echo $this->Form->input('coupon',array('value'=>$data['coupon']));
16234 anikendra 83
					echo $this->Form->input('codAvailable',array('type'=>'select','options'=>$buyBoxFlag,'default'=>$data['codAvailable']));
16497 anikendra 84
					echo $this->Form->input('ignorePricing',array('type'=>'select','options'=>$buyBoxFlag,'default'=>$data['ignorePricing']));
17191 anikendra 85
					echo $this->Form->input('snapdealSpecialItem',array('type'=>'select','options'=>$buyBoxFlag,'default'=>$data['snapdealSpecialItem']));
14600 anikendra 86
					echo $this->Form->input('multi',array('type'=>'checkbox'));
87
				?>
88
				</fieldset>
89
			<?php echo $this->Form->end(__('Submit')); ?>
90
			</div>
91
		</div>
92
	</div>
93
</div>
16376 anikendra 94
<script src="//cdn.ckeditor.com/4.5.2/full/ckeditor.js"></script>
16345 anikendra 95
<script type="text/javascript">
16376 anikendra 96
	CKEDITOR.replace( 'MasterDataOffer' );
97
	CKEDITOR.replace( 'MasterDataTagline' );
16345 anikendra 98
</script>