Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
16345 anikendra 1
<link rel="stylesheet" type="text/css" href="<?php echo $base_url;?>css/bootstrap-wysihtml5-0.0.2.css"></link>
14600 anikendra 2
<div class="container">
3
	<div class="row">
4
		<div class="col-lg-3">
5
			<?php echo $this->Element('adminactions');?>
6
		</div>
7
		<div class="col-lg-9">
8
			<?php echo $this->Form->create('MasterData'); ?>
9
				<fieldset>
10
					<legend><?php echo __('Add to existing Master Data bundle'); ?></legend>
11
				<?php
12
					echo $this->Form->input('_id',array('readonly'=>true,'value'=>$data['_id'],'type'=>'text'));
13
					echo $this->Form->input('skuBundleId',array('readonly'=>true,'value'=>$data['skuBundleId']));
14
					echo $this->Form->input('available_price',array('value'=>$data['available_price']));
15
					echo $this->Form->input('brand',array('value'=>$data['brand']));
16
					echo $this->Form->input('cashback', array('type' => 'hidden','value'=>$data['cashback'] ));
15242 anikendra 17
					echo $this->Form->input('category_id',array('value'=>$data['category_id']));
14600 anikendra 18
					echo $this->Form->input('category',array('type'=>'text','value'=>$data['category']));
19
					echo $this->Form->input('identifier',array('required'=>1,'value'=>$data['identifier']));					
20
					echo $this->Form->input('marketPlaceUrl',array('value'=>$data['marketPlaceUrl']));
21
					echo $this->Form->input('model_name',array('value'=>$data['model_name']));
22
					echo $this->Form->input('mrp',array('value'=>$data['mrp']));
14857 anikendra 23
					echo $this->Form->input('maxPrice',array('value'=>$data['maxPrice']));
14600 anikendra 24
					echo $this->Form->input('product_name',array('value'=>$data['product_name']));
25
					echo $this->Form->input('rank',array('value'=>$data['rank']));					
26
					echo $this->Form->input('source_id',array('value'=>$data['source_id']));
27
					echo $this->Form->input('source',array('type'=>'text','value'=>$data['source']));
28
					echo $this->Form->input('secondaryIdentifier',array('value'=>$data['secondaryIdentifier']));
29
					echo $this->Form->input('sourceCategoryId', array('type' => 'hidden' ,'value'=>$data['sourceCategoryId']));
30
					echo $this->Form->input('sourceProductId', array('type' => 'hidden' ,'value'=>$data['sourceProductId']));				
31
					echo $this->Form->input('source_product_name',array('value'=>$data['source_product_name']));
32
					echo $this->Form->input('source_url',array('value'=>$data['source_url']));
33
					echo $this->Form->input('status',array('value'=>$data['status']));
14654 anikendra 34
					echo $this->Form->input('in_stock',array('type'=>'select','options'=>$stock_statuses,'default'=>$data['in_stock']));					
14600 anikendra 35
					echo $this->Form->input('stock_status',array('type'=>'text','value'=>$data['stock_status']));
36
					echo $this->Form->input('thumbnail',array('value'=>$data['thumbnail']));
37
					echo $this->Form->input('url',array('value'=>$data['url']));
16345 anikendra 38
					echo $this->Form->input('offer',array('value'=>$data['offer'],'type'=>'textarea'));
39
					echo $this->Form->input('tagline',array('value'=>$data['tagline'],'type'=>'textarea'));
14654 anikendra 40
					echo $this->Form->input('is_shortage',array('type'=>'select','options'=>$shortage_status,'default'=>$data['is_shortage']));
15250 anikendra 41
					echo $this->Form->input('buyBoxFlag',array('type'=>'select','options'=>$buyBoxFlag,'default'=>$data['buyBoxFlag']));
16104 anikendra 42
					echo $this->Form->input('coupon',array('value'=>$data['coupon']));
16234 anikendra 43
					echo $this->Form->input('codAvailable',array('type'=>'select','options'=>$buyBoxFlag,'default'=>$data['codAvailable']));
14600 anikendra 44
					echo $this->Form->input('multi',array('type'=>'checkbox'));
45
				?>
46
				</fieldset>
47
			<?php echo $this->Form->end(__('Submit')); ?>
48
			</div>
49
		</div>
50
	</div>
51
</div>
16345 anikendra 52
<script src="<?php echo $base_url;?>js/wysihtml5-0.3.0_rc2.js"></script>
53
<script src="<?php echo $base_url;?>js/bootstrap-wysihtml5-0.0.2.js"></script>
54
<script type="text/javascript">
55
	$('#MasterDataOffer').wysihtml5({
56
	"font-styles": true, //Font styling, e.g. h1, h2, etc. Default true
57
	"emphasis": true, //Italics, bold, etc. Default true
58
	"lists": true, //(Un)ordered lists, e.g. Bullets, Numbers. Default true
59
	"html": true, //Button which allows you to edit the generated HTML. Default false
60
	"link": false, //Button to insert a link. Default true
61
	"image": false, //Button to insert an image. Default true,
62
	"color": false //Button to change color of font  
63
});
64
	$('#MasterDataTagline').wysihtml5({
65
	"font-styles": true, //Font styling, e.g. h1, h2, etc. Default true
66
	"emphasis": true, //Italics, bold, etc. Default true
67
	"lists": true, //(Un)ordered lists, e.g. Bullets, Numbers. Default true
68
	"html": true, //Button which allows you to edit the generated HTML. Default false
69
	"link": false, //Button to insert a link. Default true
70
	"image": false, //Button to insert an image. Default true,
71
	"color": false //Button to change color of font  
72
});
73
</script>