From 97a401a3072128b5d97c8a61f1137f98bb577e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Turbelin?= Date: Wed, 3 Jul 2019 18:10:59 +0200 Subject: [PATCH] Display enterprise ID in profile --- .../admin/enterprises/form/_primary_details.html.haml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/views/admin/enterprises/form/_primary_details.html.haml b/app/views/admin/enterprises/form/_primary_details.html.haml index dd83c4d2c2..22214d5690 100644 --- a/app/views/admin/enterprises/form/_primary_details.html.haml +++ b/app/views/admin/enterprises/form/_primary_details.html.haml @@ -63,6 +63,13 @@ %span{ ng: { class: 'availability.toLowerCase()', hide: "checking" } } {{ availability }} %i{ ng: { class: "{'icon-ok-sign': availability == 'Available', 'icon-remove-sign': availability == 'Unavailable'}" } } + .row{ ng: { show: "Enterprise.sells == 'own' || Enterprise.sells == 'any'" } } + .three.columns.alpha + = f.label :permalink, t('.ofn_uid') + %div{'ofn-with-tip' => t('.ofn_uid_tip', link: spree.root_url)} + %a= t('admin.whats_this') + .six.columns + = f.text_field :id, { 'ng-model' => "Enterprise.id", 'ng-model-options' => "{ updateOn: 'default blur', debounce: {'default': 300, 'blur': 0} }", 'ng-disabled' => true } .row{ ng: { show: "Enterprise.sells == 'own' || Enterprise.sells == 'any'" } } .three.columns.alpha %label= t('.link_to_front')