Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
19561 naman 1
<script>
2
 
3
$(document).ready(function(){
4
	if($('#MasterDataCategoryId').val() == "6")
5
	{
6
		$('#MasterDataInternalRank').prop('readonly',false);
7
	}
19859 naman 8
	if($('#MasterDataSourceId').val() == "4"){
9
		$("#MasterDataExclusive").removeAttr("disabled");
10
	}
19561 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('skuBundleId');
25
					echo $this->Form->input('available_price');
16455 anikendra 26
					echo $this->Form->input('gross_price',array('value'=>0));
14600 anikendra 27
					echo $this->Form->input('brand');
28
					echo $this->Form->input('cashback', array('type' => 'hidden' ));
29
					echo $this->Form->input('category_id');
30
					echo $this->Form->input('category',array('type'=>'text','value'=>'Mobiles'));
31
					echo $this->Form->input('identifier',array('required'=>1));					
32
					echo $this->Form->input('marketPlaceUrl');
33
					echo $this->Form->input('model_name');
14706 anikendra 34
					echo $this->Form->input('mrp',array('value'=>0));
17672 naman 35
 
36
					$showmrp=array(0=>"False",1=>"True");
37
    				echo $this->Form->input('showMrp', array('options'=>$showmrp, 'selected'=>'False'));
17711 naman 38
 
14857 anikendra 39
					echo $this->Form->input('maxPrice',array('value'=>0));
14600 anikendra 40
					echo $this->Form->input('product_name');
19561 naman 41
					echo $this->Form->input('rank');	
42
 
43
					echo $this->Form->input('internalRank', array('type'=>'number','value'=> 0,'required'=> true,'readonly'=> true));
44
 
19859 naman 45
					echo $this->Form->input('source_id');
46
					echo $this->Form->input('source',array('type'=>'text','value'=>'Amazon'));
47
 
19917 naman 48
// 					echo $this->Form->label('Exclusive');
49
// 					echo $this->Form->checkbox('exclusive',array('disabled' => true));
19859 naman 50
 
14600 anikendra 51
					echo $this->Form->input('secondaryIdentifier');
52
					echo $this->Form->input('sourceCategoryId', array('type' => 'hidden' ));
53
					echo $this->Form->input('sourceProductId', array('type' => 'hidden' ));				
54
					echo $this->Form->input('source_product_name');
55
					echo $this->Form->input('source_url');
56
					echo $this->Form->input('status');
57
					echo $this->Form->input('in_stock',array('type'=>'select','options'=>$stock_statuses));					
58
					echo $this->Form->input('stock_status',array('type'=>'text','value'=>'OOS'));
59
					echo $this->Form->input('thumbnail');
60
					echo $this->Form->input('url');
17593 naman 61
 
62
					echo $this->Form->input('quantity',array('type'=>'number','value'=>1));
17743 naman 63
 
64
					echo $this->Form->input('shippingCost',array('value'=>0));
17711 naman 65
 
17593 naman 66
					echo $this->Form->input('videoLink');
67
					$arrCategory=array(0=>"False",1=>"True");
17638 naman 68
    				echo $this->Form->input('showVideo', array('options'=>$arrCategory, 'selected'=>0));
17711 naman 69
 
70
 
18800 naman 71
//     				$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');
17711 naman 72
 
73
 
17638 naman 74
    				echo $this->Form->input('subCategoryId', array('options'=>$arrSubCategory, 'selected'=>$data['subCategoryId']));
19140 naman 75
    				echo $this->Form->label('Show Net Price');
76
    				echo $this->Form->checkbox('showNetPrice');
77
 
78
 
16345 anikendra 79
					echo $this->Form->input('offer',array('type'=>'textarea'));
80
					echo $this->Form->input('tagline',array('type'=>'textarea'));
14600 anikendra 81
					echo $this->Form->input('is_shortage',array('type'=>'select','options'=>$shortage_status));
15250 anikendra 82
					echo $this->Form->input('buyBoxFlag',array('type'=>'select','options'=>$buyBoxFlag));
15884 anikendra 83
					echo $this->Form->input('coupon');
84
					echo $this->Form->input('codAvailable',array('type'=>'select','options'=>$buyBoxFlag,'value'=>1));
16497 anikendra 85
					echo $this->Form->input('ignorePricing',array('type'=>'select','options'=>$buyBoxFlag,'default'=>0));
17191 anikendra 86
					echo $this->Form->input('snapdealSpecialItem',array('type'=>'select','options'=>$buyBoxFlag,'default'=>0));
14600 anikendra 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>