cirandas.net

commit f81d8d4194622a8936b574b910bcba621db181fa

Author: Hugo Melo <hugo@riseup.net>

Add selected option to consumer

 plugins/suppliers/public/javascripts/views/consumer-view.tag.slim | 2 


diff --git a/plugins/suppliers/public/javascripts/views/consumer-view.tag.slim b/plugins/suppliers/public/javascripts/views/consumer-view.tag.slim
index 53af376c76ffac6dd1df3b6d8ef0e39d51fc5770..9c10b5c03023b4f8df93016d91354a3d6092492b 100644
--- a/plugins/suppliers/public/javascripts/views/consumer-view.tag.slim
+++ b/plugins/suppliers/public/javascripts/views/consumer-view.tag.slim
@@ -61,7 +61,7 @@               label for="hub" class="col-sm-2 control-label"
                 |{cs.t("views.consumer.index.hub")}
               .col-sm-10
                 select value='{consumer.hub_id}' name='hub_id' class="form-control" id="hub_id"
-                  option value="" 
+                  option value="" selected="{consumer.hub_id == null}"
                     |{cs.t("views.consumer.index.choose_one_hub")}
                   option each="{hubs}" value="{id}" selected="{consumer.hub_id == id}"
                     |{name}