45001-component-to-show-the-list-of-non-working-days-of-year
commit
e6e5028481
@ -0,0 +1,25 @@ |
||||
@import "src/assets/sass/helpers" |
||||
|
||||
.wp-attribute-group |
||||
display: flex |
||||
flex-direction: row |
||||
flex-wrap: wrap |
||||
|
||||
// We want a margin between items, but don't know if any one item is on the right, |
||||
// the left, or spanning both columns. The easy way to get a gutter is to give |
||||
// *all* elements margins on both sides, and then negating this margin on the parent. |
||||
// This also explains all of the + and - xrem calc() values below. |
||||
margin: 0 -1 * $spot-spacing-1_5 |
||||
width: calc(100% + #{$spot-spacing-3}) |
||||
|
||||
&--attribute |
||||
flex-basis: calc(100% - #{$spot-spacing-3}) |
||||
flex-grow: 0 |
||||
flex-shrink: 0 |
||||
margin: 0 $spot-spacing-1_5 |
||||
|
||||
@media screen and (min-width: 92rem), print |
||||
flex-basis: calc(50% - #{$spot-spacing-3}) |
||||
|
||||
&_span-all |
||||
flex-basis: calc(100% - #{$spot-spacing-3}) |
@ -1,27 +1,32 @@ |
||||
<div class="-columns-2"> |
||||
<div class="attributes-key-value" |
||||
[ngClass]="{'-span-all-columns': descriptor.spanAll }" |
||||
*ngFor="let descriptor of group.members; trackBy:trackByName"> |
||||
<ng-template [ngIf]="!shouldHideField(descriptor)"> |
||||
<div |
||||
class="attributes-key-value--key" |
||||
*ngIf="!descriptor.multiple && descriptor.field"> |
||||
<wp-replacement-label [fieldName]="descriptor.name"> |
||||
{{ descriptor.label }} |
||||
<span class="required" |
||||
*ngIf="descriptor.field!.required && descriptor.field!.writable"> *</span> |
||||
</wp-replacement-label> |
||||
<attribute-help-text [attribute]="descriptor.name" [attributeScope]="'WorkPackage'"></attribute-help-text> |
||||
</div> |
||||
<div *ngIf="!descriptor.multiple && descriptor.field" |
||||
class="attributes-key-value--value-container"> |
||||
|
||||
<op-editable-attribute-field [ngClass]="{'wp-edit-formattable-field': descriptor.field!.isFormattable }" |
||||
[resource]="workPackage" |
||||
[isDropTarget]="descriptor.field!.isFormattable" |
||||
[fieldName]="fieldName(descriptor.name)"> |
||||
</op-editable-attribute-field> |
||||
</div> |
||||
</ng-template> |
||||
</div> |
||||
<div |
||||
class="wp-attribute-group--attribute attributes-key-value" |
||||
[ngClass]="{'wp-attribute-group--attribute_span-all': descriptor.spanAll }" |
||||
*ngFor="let descriptor of group.members; trackBy:trackByName" |
||||
> |
||||
<ng-template [ngIf]="!shouldHideField(descriptor)"> |
||||
<div |
||||
class="attributes-key-value--key" |
||||
*ngIf="!descriptor.multiple && descriptor.field" |
||||
> |
||||
<wp-replacement-label [fieldName]="descriptor.name"> |
||||
{{ descriptor.label }} |
||||
<span |
||||
class="required" |
||||
*ngIf="descriptor.field!.required && descriptor.field!.writable" |
||||
> *</span> |
||||
</wp-replacement-label> |
||||
<attribute-help-text [attribute]="descriptor.name" [attributeScope]="'WorkPackage'"></attribute-help-text> |
||||
</div> |
||||
<div |
||||
*ngIf="!descriptor.multiple && descriptor.field" |
||||
class="attributes-key-value--value-container" |
||||
> |
||||
<op-editable-attribute-field |
||||
[ngClass]="{'wp-edit-formattable-field': descriptor.field!.isFormattable }" |
||||
[resource]="workPackage" |
||||
[isDropTarget]="descriptor.field!.isFormattable" |
||||
[fieldName]="fieldName(descriptor.name)" |
||||
></op-editable-attribute-field> |
||||
</div> |
||||
</ng-template> |
||||
</div> |
||||
|
@ -0,0 +1,11 @@ |
||||
# Multi_json issue #208 https://github.com/intridea/multi_json/issues/208 |
||||
# produces a `NoMethodError` with some tests like |
||||
# modules/bim/spec/requests/api/bcf/v2_1/viewpoints_api_spec.rb:277 where grape |
||||
# is calling multi_json with a specific adapter. It will fail if it is the first |
||||
# test executed. |
||||
# |
||||
# Calling this will prevent the error from happening |
||||
MultiJson::OptionsCache.reset |
||||
|
||||
# This file can be removed once the issue has been fixed and released in a new |
||||
# version of multi_json gem (issue exists in 1.15.0) |
Loading…
Reference in new issue