From 5ce2af454ed0f1e18ab0f4afb1491026054b76ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Turbelin?= Date: Wed, 3 Jul 2019 23:00:36 +0200 Subject: [PATCH] Clean id field --- .../admin/enterprises/form/_primary_details.html.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/admin/enterprises/form/_primary_details.html.haml b/app/views/admin/enterprises/form/_primary_details.html.haml index 22214d5690..0564303efd 100644 --- a/app/views/admin/enterprises/form/_primary_details.html.haml +++ b/app/views/admin/enterprises/form/_primary_details.html.haml @@ -63,13 +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'" } } + .row .three.columns.alpha - = f.label :permalink, t('.ofn_uid') - %div{'ofn-with-tip' => t('.ofn_uid_tip', link: spree.root_url)} + = f.label :id, t('.ofn_uid') + %div{'ofn-with-tip' => t('.ofn_uid_tip')} %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 } + = f.text_field :id, value: f.object.id, disabled: true .row{ ng: { show: "Enterprise.sells == 'own' || Enterprise.sells == 'any'" } } .three.columns.alpha %label= t('.link_to_front')