| 13532 |
anikendra |
1 |
<div id="push"></div>
|
|
|
2 |
<div class="container">
|
|
|
3 |
<?php echo $this->Form->create('Product',array('class'=>'form-inline','action'=>'addviabookmarklet')); ?>
|
|
|
4 |
<div class="row" id="pickImage">
|
|
|
5 |
<div class="col-lg-5" id="imagePickerDiv">
|
|
|
6 |
<ul class="list-unstyled thumbnails" id="imagePicker">
|
|
|
7 |
<li style="margin-left:0;" class="imagelist" id="pick_1"><a class="thumbnail" href="#" style="width:100%"><img id="image_1" src="<?php echo $img;?>" class="masonry span12"/></a></li>
|
|
|
8 |
</ul>
|
|
|
9 |
<!-- Add an edit button, passing the HTML id of the image and the public URL of the image -->
|
|
|
10 |
<div class="mt5 text-center"><input type='image' src='http://images.aviary.com/images/edit-photo.png' value='Edit photo' onclick="return launchEditor('image_1', '<?php echo $img;?>');" /></div>
|
|
|
11 |
</div>
|
|
|
12 |
<div id='preview' class="col-lg-7">
|
|
|
13 |
<label for="name">Name</label>
|
|
|
14 |
<input value="<?php echo $name;?>" type='text' id="name" name="name" placeholder="Name"></input>
|
|
|
15 |
<div class="clear mb10"></div>
|
|
|
16 |
<label for="price">Price</label>
|
|
|
17 |
<input value="<?php echo $price;?>" type='text' id="price" name="price" placeholder="Price"></input>
|
|
|
18 |
<div class="clear mb10"></div>
|
|
|
19 |
<label for="store">Store</label>
|
|
|
20 |
<input value="<?php echo $store;?>" type='text' id="store" name="store" placeholder="Store"></input>
|
|
|
21 |
<div class="clear mb10"></div>
|
|
|
22 |
<label for="category">Choose Category</label>
|
|
|
23 |
<select id="category" class="profileSelector" name="category_id">
|
|
|
24 |
<!-- <option value="-1"><?php echo __('Choose Category');?></option>-->
|
|
|
25 |
<?php if(!empty($categories)):?>
|
|
|
26 |
<?php foreach ($categories as $key => $value):?>
|
|
|
27 |
<option value="<?php echo $key;?>"><?php echo $value;?></option>
|
|
|
28 |
<?php endforeach;?>
|
|
|
29 |
<?php endif;?>
|
|
|
30 |
</select>
|
|
|
31 |
<div class="clear mb10"></div>
|
|
|
32 |
<label for="short_description">Short Description</label>
|
|
|
33 |
<textarea style="margin-top: 5px;width: 220px;" id="messageId" rows="3" class="span10" maxlength="500" name="short_description" placeholder="<?php echo __('Short Description');?>"><?php echo $des;?></textarea>
|
|
|
34 |
<div class="clear mb10"></div>
|
|
|
35 |
<label for="tag_line">Tag Line</label>
|
|
|
36 |
<input value="" type='text' id="tag_line" name="tag_line" placeholder="Tag Line"></input>
|
|
|
37 |
<input type="hidden" id="imageUrl" name="img_url" value="<?php echo $img;?>"></input>
|
|
|
38 |
<input value="<?php echo $url;?>" type='hidden' id="url" name="product_url"></input>
|
|
|
39 |
</div>
|
|
|
40 |
</div>
|
|
|
41 |
<div class="clearfix mt5"></div>
|
|
|
42 |
<div class="row">
|
|
|
43 |
<button type="submit" class="btn btn-danger" id="pinIt">Post</button>
|
|
|
44 |
<div id="validationMessage"></div>
|
|
|
45 |
</div>
|
|
|
46 |
</form>
|
|
|
47 |
</div>
|
|
|
48 |
<style>
|
|
|
49 |
label{width:100px;}
|
|
|
50 |
</style>
|