File tree 1 file changed +22
-40
lines changed
1 file changed +22
-40
lines changed Original file line number Diff line number Diff line change @@ -340,12 +340,9 @@ editParameterValueView instance parameterValues parameterInfos maybeInstancePara
340
340
[ ( " background-color" , Maybe . withDefault normalParamColor ( Maybe . map ( \ v -> editingParamColor) maybeEditedValue) )
341
341
]
342
342
]
343
- [ text parameterName ]
344
- , span
345
- [ class " input-group-addon" ]
346
- [ icon
347
- ( dataTypeToIcon dataType)
348
- [ title ( dataTypeToTitle dataType) ]
343
+ [ text parameterName
344
+ , text " "
345
+ , sup [] [ text ( dataTypeToTitle dataType) ]
349
346
]
350
347
, input
351
348
[ type_
@@ -618,12 +615,9 @@ newParameterValueView template parameterInfos maybeInstanceParameterForm enabled
618
615
[ ( " background-color" , Maybe . withDefault normalParamColor ( Maybe . map ( \ v -> editingParamColor) maybeEditedValue) )
619
616
]
620
617
]
621
- [ text parameterName ]
622
- , span
623
- [ class " input-group-addon" ]
624
- [ icon
625
- ( dataTypeToIcon dataType)
626
- [ title ( dataTypeToTitle dataType) ]
618
+ [ text parameterName
619
+ , text " "
620
+ , sup [] [ text ( dataTypeToTitle dataType) ]
627
621
]
628
622
, input
629
623
[ type_
@@ -718,33 +712,21 @@ getErrorMessage maybeValue paramName dataType =
718
712
)
719
713
720
714
721
- dataTypeToIcon : ParameterType -> String
722
- dataTypeToIcon dataType =
723
- case dataType of
724
- StringParam ->
725
- " glyphicon glyphicon-text-size"
726
-
727
- RawParam ->
728
- " glyphicon glyphicon-asterisk"
729
-
730
- IntParam ->
731
- " fa fa-hashtag"
732
-
733
- DecimalParam ->
734
- " glyphicon glyphicon-sound-5-1"
735
-
736
-
737
715
dataTypeToTitle : ParameterType -> String
738
716
dataTypeToTitle dataType =
739
- case dataType of
740
- StringParam ->
741
- " String"
742
-
743
- RawParam ->
744
- " Unsafe String"
745
-
746
- IntParam ->
747
- " Integer"
748
-
749
- DecimalParam ->
750
- " Decimal"
717
+ String . concat
718
+ [ " ("
719
+ , case dataType of
720
+ StringParam ->
721
+ " String"
722
+
723
+ RawParam ->
724
+ " Raw"
725
+
726
+ IntParam ->
727
+ " Integer"
728
+
729
+ DecimalParam ->
730
+ " Decimal"
731
+ , " )"
732
+ ]
You can’t perform that action at this time.
0 commit comments