Textarea for attributes. Closes #275.

This commit is contained in:
Mike Jolley 2011-11-28 10:29:23 +00:00
parent 1e72d55644
commit 9f359335db
4 changed files with 6 additions and 12 deletions

View File

@ -285,7 +285,7 @@ function woocommerce_product_data_box() {
<input type="hidden" name="attribute_position[<?php echo $i; ?>]" class="attribute_position" value="<?php echo esc_attr( $position ); ?>" />
<input type="hidden" name="attribute_is_taxonomy[<?php echo $i; ?>]" value="0" />
</td>
<td><input type="text" name="attribute_values[<?php echo $i; ?>]" value="<?php echo esc_attr( $attribute['value'] ); ?>" /></td>
<td><textarea name="attribute_values[<?php echo $i; ?>]" cols="5" rows="2"><?php echo esc_textarea( $attribute['value'] ); ?></textarea></td>
<td class="center"><input type="checkbox" <?php checked($attribute['is_visible'], 1); ?> name="attribute_visibility[<?php echo $i; ?>]" value="1" /></td>
<td class="center enable_variation show_if_variable"><input type="checkbox" <?php checked($attribute['is_variation'], 1); ?> name="attribute_variation[<?php echo $i; ?>]" value="1" /></td>
<td class="center"><button type="button" class="remove_row button">&times;</button></td>

View File

@ -146,10 +146,8 @@ ul.recent-orders.stock_list a,ul.stock_list.stock_list a{text-decoration:none;}
table.woocommerce_attributes,table.woocommerce_variable_attributes{width:100%;position:relative;}
table.woocommerce_attributes thead th,table.woocommerce_variable_attributes thead th{background:#ececec;padding:7px 9px;font-size:11px;text-align:left;}
table.woocommerce_attributes td,table.woocommerce_variable_attributes td{padding:2px 9px;text-align:left;vertical-align:middle;border-bottom:1px dotted #ececec;}
table.woocommerce_attributes td input,table.woocommerce_variable_attributes td input,table.woocommerce_variable_attributes td textarea{width:100%;}
table.woocommerce_attributes td input,table.woocommerce_attributes td textarea,table.woocommerce_variable_attributes td input,table.woocommerce_variable_attributes td textarea{width:100%;margin:0;display:block;}
table.woocommerce_attributes td select{width:100%;}
table.woocommerce_attributes td select.multiselect{height:8em !important;}
table.woocommerce_attributes td .ui-multiselect-checkboxes input{width:auto;}
table.woocommerce_attributes td input,table.woocommerce_variable_attributes td input,table.woocommerce_variable_attributes td textarea{font-size:14px;padding:4px;color:#555;}
table.woocommerce_attributes .taxonomy td.name{padding:10px 15px;font-size:14px;color:#555;}
table.woocommerce_attributes .taxonomy td.values{position:relative;}table.woocommerce_attributes .taxonomy td.values .chzn-container{width:100% !important;margin:0 1px;display:block;}table.woocommerce_attributes .taxonomy td.values .chzn-container .chzn-drop{width:100% !important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}

View File

@ -852,18 +852,14 @@ table.woocommerce_attributes td, table.woocommerce_variable_attributes td {
vertical-align: middle;
border-bottom: 1px dotted #ececec;
}
table.woocommerce_attributes td input, table.woocommerce_variable_attributes td input, table.woocommerce_variable_attributes td textarea {
table.woocommerce_attributes td input, table.woocommerce_attributes td textarea, table.woocommerce_variable_attributes td input, table.woocommerce_variable_attributes td textarea {
width: 100%;
margin: 0;
display: block;
}
table.woocommerce_attributes td select {
width: 100%;
}
table.woocommerce_attributes td select.multiselect {
height: 8em !important;
}
table.woocommerce_attributes td .ui-multiselect-checkboxes input {
width: auto;
}
table.woocommerce_attributes td input, table.woocommerce_variable_attributes td input, table.woocommerce_variable_attributes td textarea {
font-size: 14px;
padding: 4px;

View File

@ -82,7 +82,7 @@ Yes you can! Join in on our GitHub repository :) https://github.com/woothemes/wo
== Changelog ==
= 1.3 - xx/11/2011 =
= 1.3 - 01/12/2011 =
* Minor bug fixes + localisations
* Schema.org markup for products and reviews
* Option to apply coupons before tax (per coupon)