Skip to content

Commit 416e607

Browse files
author
bossninja
committed
- fixed some bugs in the admin product create form view
- added a save button to the top of the product create form - added my name to contributors list
1 parent 40ed11c commit 416e607

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Before reporting bugs or requesting any features, please check that it does not
2727
### Contributors
2828

2929
* ekoisa
30+
* [Gary Hussey] (http://bossninja.com/)
3031

3132
feel free to contribute to this module to make it the best e-Commerce module for PyroCMS
3233

pyrocart/views/admin/create.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66

77
</script>
88
<?php echo form_open_multipart('admin/pyrocart/create', 'class="crud"'); ?>
9-
9+
<div class="float-right">
10+
<?php $this->load->view('admin/partials/buttons', array('buttons' => array('save', 'cancel') )); ?>
11+
</div>
12+
1013
<ol>
1114
<li class="<?php echo alternator('', 'even'); ?>">
1215
<label for="title">Product name</label>
@@ -16,12 +19,12 @@
1619

1720
<li class="<?php echo alternator('', 'even'); ?>">
1821
<label for="criteria_id">Category</label>
19-
<?php echo form_dropdown('category_id', $categories, ''); ?>
22+
<?php echo form_dropdown('category_id', $categories, array($product->category_id),'id="category_id"'); ?>
2023
</li>
2124

2225
<li class="<?php echo alternator('', 'even'); ?>">
2326
<label for="product_code">Product Code</label>
24-
<input type="text" id="product_code" name="refNo" maxlength="100" value="<?php echo $product->product_code; ?>" class="text" />
27+
<input type="text" id="product_code" name="product_code" maxlength="100" value="<?php echo $product->product_code; ?>" class="text" />
2528
</li>
2629

2730
<?php if($this->settings->products_featured == 1)

0 commit comments

Comments
 (0)