jmueller17 / Aixada

Aixada helps self-managed consumption cooperatives to organize their flow of products, money, and information.
Other
33 stars 37 forks source link

Afegir description_url al llistat de productes a seleccionar des de la vista de consumidor #281

Open xpegenaute opened 3 years ago

xpegenaute commented 3 years ago

Hola,

Quan s'afegeix un nou producte es demana la URL i després no he vist que es faci servir. Potser es podria incorporar generant un <a href>Nom Producte</a> en el llistat dels productes:

diff --git a/shop_and_order.php b/shop_and_order.php
index 2a1557b..e2890c2 100644
--- a/shop_and_order.php
+++ b/shop_and_order.php
@@ -619,7 +619,7 @@
                                                                <td class="item_it">{id}</td>
                                                                <td class="item_info"><p class="ui-corner-all iconContainer textAlignCenter rowProductInfo" stock="{stock_actual}" iva_percent="{iva_percent}" rev_tax_percent="{rev_tax_percent}" description="{description}"><span class="ui-icon ui-icon-info"></span></p></td>
                                                                <td class="item_provider_name hidden">{provider_name}</td>
-                                                               <td class="item_name">{name}</td>
+                                                               <td class="item_name"><a href={description_url} target="_blank">{name}</a></td>
                                                                <td class="item_notes hidden" colspan="4">
                                                                        {name}<br>
                                                                        <textarea class="ui-widget-content ui-corner-all textareaLarge inputTxtMax notes_{id}" name="notes_{id}">{notes}</textarea></td>
@@ -733,4 +733,4 @@

 <!-- / END -->
 </body>
-</html>
\ No newline at end of file
+</html>

Com ho veieu ?

Salut, Xavi