File tree 1 file changed +16
-16
lines changed
src/DragonFly.Client/Pages/ContentSchemas
1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change 37
37
</BSOffCanvas >
38
38
39
39
<CascadingValue Value =" this" IsFixed =" true" >
40
- <BSAccordion >
40
+ <BSListGroup >
41
41
@foreach ( var field in Schema .Fields .OrderBy (x => x .Value .SortKey ))
42
42
{
43
- <BSAccordionItem DefaultShown =" false" >
44
- <Header >
45
- <div style =" display : flex ; align-items : center ;width :100% " >
46
- <span style =" flex-grow :1 " >@field.Key </span >
47
- <BSBadge Color =" BSColor.Secondary" Class =" bg-secondary" >@field.Value.FieldType </BSBadge >
48
- <div >
49
- <BSButton Color =" BSColor.Light" OnClick =" x => Up(field.Key)" ><i class =" fas fa-arrow-up" ></i ></BSButton >
50
- <BSButton Color =" BSColor.Light" OnClick =" x => Down(field.Key)" ><i class =" fas fa-arrow-down" ></i ></BSButton >
51
- <BSButton Color =" BSColor.Light" OnClick =" x => Remove(field.Key)" ><i class =" fas fa-times" ></i ></BSButton >
52
- </div >
43
+ <BSListGroupItem >
44
+ <div style =" display : flex ; align-items : center ;width :100% " >
45
+ <span style =" flex-grow :1 " >@field.Key </span >
46
+ <BSBadge Color =" BSColor.Secondary" Class =" bg-secondary" >@field.Value.FieldType </BSBadge >
47
+ <div >
48
+ <BSButton Color =" BSColor.Light" Target =" @($" {field.Key}_collapse " )" ><i class =" fa-solid fa-gear" ></i ></BSButton >
49
+ <BSButton Color =" BSColor.Light" OnClick =" x => Up(field.Key)" ><i class =" fas fa-arrow-up" ></i ></BSButton >
50
+ <BSButton Color =" BSColor.Light" OnClick =" x => Down(field.Key)" ><i class =" fas fa-arrow-down" ></i ></BSButton >
51
+ <BSButton Color =" BSColor.Light" OnClick =" x => Remove(field.Key)" ><i class =" fas fa-times" ></i ></BSButton >
53
52
</div >
54
- </Header >
55
- <Content >
53
+ </div >
54
+
55
+ <BSCollapse DataId =" @($" {field.Key}_collapse " )" >
56
56
@if (field .Value .Options != null )
57
57
{
58
58
@ComponentManager.CreateComponent(field.Value.Options)
59
59
}
60
- </Content >
61
- </BSAccordionItem >
60
+ </BSCollapse >
61
+ </BSListGroupItem >
62
62
}
63
- </BSAccordion >
63
+ </BSListGroup >
64
64
</CascadingValue >
65
65
66
66
@code {
You can’t perform that action at this time.
0 commit comments