Bläddra i källkod

Sum of cards. In Progress. Part 2: Show option for custom field sum only for currency and number fields.

Thanks to xet7 !

Related #3796
Lauri Ojansivu 3 år sedan
förälder
incheckning
9bee6ae666
1 ändrade filer med 8 tillägg och 6 borttagningar
  1. 8 6
      client/components/sidebar/sidebarCustomFields.jade

+ 8 - 6
client/components/sidebar/sidebarCustomFields.jade

@@ -43,6 +43,14 @@ template(name="createCustomFieldPopup")
                   option(value=value selected="selected") {{name}}
                 else
                   option(value=value) {{name}}
+            a.flex.js-field-show-sum-at-top-of-list(class="{{#if showSumAtTopOfList}}is-checked{{/if}}")
+                .materialCheckBox(class="{{#if showSumAtTopOfList}}is-checked{{/if}}")
+                span {{_ 'showSum-field-on-list'}}
+
+        div.js-field-settings.js-field-settings-currency(class="{{#if isTypeNotSelected 'number'}}hide{{/if}}")
+            a.flex.js-field-show-sum-at-top-of-list(class="{{#if showSumAtTopOfList}}is-checked{{/if}}")
+                .materialCheckBox(class="{{#if showSumAtTopOfList}}is-checked{{/if}}")
+                span {{_ 'showSum-field-on-list'}}
 
         div.js-field-settings.js-field-settings-dropdown(class="{{#if isTypeNotSelected 'dropdown'}}hide{{/if}}")
             label
@@ -77,12 +85,6 @@ template(name="createCustomFieldPopup")
 
             span {{_ 'showLabel-field-on-card'}}
 
-
-        a.flex.js-field-show-sum-at-top-of-list(class="{{#if showSumAtTopOfList}}is-checked{{/if}}")
-            .materialCheckBox(class="{{#if showSumAtTopOfList}}is-checked{{/if}}")
-
-            span {{_ 'showSum-field-on-list'}}
-
         button.primary.wide.left(type="button")
             | {{_ 'save'}}
         if _id