diff --git a/base/web/render.go b/base/web/render.go index 402ca009..2ac29c0a 100644 --- a/base/web/render.go +++ b/base/web/render.go @@ -75,6 +75,9 @@ func Render(m *ice.Message, cmd string, args ...ice.Any) bool { res := m.Cmdx(nfs.CAT, arg[0]) fieldset := "fieldset." + m.Option(ctx.INDEX) m.W.Write([]byte(kit.ReplaceAll(res, + "$option", fieldset+">form.option", + "$action", fieldset+">div.action", + "$output", fieldset+">div.output", "$project", fieldset+">div.output>div.project", "$display", fieldset+">div.output>div.layout>div.display", "$profile", fieldset+">div.output>div.layout>div.layout>div.profile", diff --git a/option.go b/option.go index dc733b9c..a987866a 100644 --- a/option.go +++ b/option.go @@ -74,7 +74,9 @@ func (m *Message) MergeLink(url string, arg ...Any) string { kit.If(m.Option(DEBUG) == TRUE, func() { arg = append([]Any{DEBUG, TRUE}, arg...) }) return kit.MergeURL2(strings.Split(kit.Select(Info.Domain, m.Option(MSG_USERWEB)), QS)[0], url, arg...) } -func (m *Message) FieldsSetDetail() { m.OptionFields(FIELDS_DETAIL) } +func (m *Message) FieldsSetDetail() { + m.OptionFields(FIELDS_DETAIL) +} func (m *Message) FieldsIsDetail() bool { ls := m.value(MSG_APPEND) return len(ls) == 2 && ls[0] == KEY && ls[1] == VALUE || m.OptionFields() == FIELDS_DETAIL