Commit a8fbeab5f993c874ad00ed4ae5ae0c762d4cb6b8
1 parent
12083a2c
Exists in
master
and in
28 other branches
Profile cart control panel
* Feature:
- Possibility to enable and disable "Add to cart" buttons
- Also possibility to further configurations of cart on the profile.
Showing
2 changed files
with
10 additions
and
1 deletions
Show diff stats
plugins/shopping_cart/20110422151030_add_shopping_cart_to_profile.rb
0 → 100644
plugins/shopping_cart/views/shopping_cart_plugin_myprofile/edit.html.erb
| 1 | 1 | <h1> <%= _('Cart options') %> </h1> |
| 2 | 2 | |
| 3 | 3 | <% form_for(:profile_attr, profile, :url => {:action => 'edit'}, :html => {:method => 'post'}) do |f| %> |
| 4 | -<%# form_tag :action => 'edit' do %> | |
| 5 | 4 | <%= labelled_form_field(_('Enabled?'), f.check_box(:shopping_cart)) %> |
| 6 | 5 | <%= labelled_form_field(_('Delivery?'), f.check_box(:shopping_cart_delivery)) %> |
| 7 | 6 | <%= labelled_form_field(_('Delivery price:'), f.text_field(:shopping_cart_delivery_price)) %> | ... | ... |