File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed
src/DragonFly.Client/Pages/ContentSchemas Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change 3737</BSOffCanvas >
3838
3939<CascadingValue Value =" this" IsFixed =" true" >
40- <BSAccordion >
40+ <BSListGroup >
4141 @foreach ( var field in Schema .Fields .OrderBy (x => x .Value .SortKey ))
4242 {
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 >
5352 </div >
54- </Header >
55- <Content >
53+ </div >
54+
55+ <BSCollapse DataId =" @($" {field.Key}_collapse " )" >
5656 @if (field .Value .Options != null )
5757 {
5858 @ComponentManager.CreateComponent(field.Value.Options)
5959 }
60- </Content >
61- </BSAccordionItem >
60+ </BSCollapse >
61+ </BSListGroupItem >
6262 }
63- </BSAccordion >
63+ </BSListGroup >
6464</CascadingValue >
6565
6666@code {
You can’t perform that action at this time.
0 commit comments