able to display the "Edit Conference" dialog

This commit is contained in:
2026-02-01 23:16:58 -07:00
parent 2c55eef7bf
commit 17af0192f4
10 changed files with 335 additions and 13 deletions
+8 -1
View File
@@ -1,6 +1,6 @@
/*
* Amsterdam Web Communities System
* Copyright (c) 2025 Erbosoft Metaverse Design Solutions, All Rights Reserved
* Copyright (c) 2025-2026 Erbosoft Metaverse Design Solutions, All Rights Reserved
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -238,6 +238,13 @@ func (d *Dialog) SetCommunity(comm *database.Community) {
}
}
// SetConference alters a dialog's content to reflect the conference.
func (d *Dialog) SetConference(conf *database.Conference, alias string) {
d.Title = strings.ReplaceAll(d.Title, "[CONFNAME]", conf.Name)
d.Subtitle = strings.ReplaceAll(d.Subtitle, "[CONFNAME]", conf.Name)
d.Action = strings.ReplaceAll(d.Action, "[CONFID]", alias)
}
/* Field returns a pointer to a dialog's field, given its name.
* Parameters:
* name - The name of the field to find.