Better Editor Forms #56

Merged
h4kor merged 6 commits from better_forms into main 2024-02-21 19:05:08 +00:00
9 changed files with 24 additions and 24 deletions
Showing only changes of commit 1613d3dd11 - Show all commits

View File

@ -12,8 +12,8 @@ type Article struct {
}
type ArticleMetaData struct {
Title string `owl:"inputType=text"`
Content string `owl:"inputType=text widget=textarea"`
Title string
Content string
}
// Form implements model.EntryMetaData.

View File

@ -12,9 +12,9 @@ type Bookmark struct {
}
type BookmarkMetaData struct {
Title string `owl:"inputType=text"`
Url string `owl:"inputType=text"`
Content string `owl:"inputType=text widget=textarea"`
Title string
Url string
Content string
}
// Form implements model.EntryMetaData.

View File

@ -12,9 +12,9 @@ type Image struct {
}
type ImageMetaData struct {
ImageId string `owl:"inputType=file"`
Title string `owl:"inputType=text"`
Content string `owl:"inputType=text widget=textarea"`
ImageId string
Title string
Content string
}
// Form implements model.EntryMetaData.

View File

@ -12,7 +12,7 @@ type Note struct {
}
type NoteMetaData struct {
Content string `owl:"inputType=text widget=textarea"`
Content string
}
// Form implements model.EntryMetaData.

View File

@ -12,8 +12,8 @@ type Page struct {
}
type PageMetaData struct {
Title string `owl:"inputType=text"`
Content string `owl:"inputType=text widget=textarea"`
Title string
Content string
}
// Form implements model.EntryMetaData.

View File

@ -13,11 +13,11 @@ type Recipe struct {
}
type RecipeMetaData struct {
Title string `owl:"inputType=text"`
Yield string `owl:"inputType=text"`
Duration string `owl:"inputType=text"`
Ingredients []string `owl:"inputType=text widget=textlist"`
Content string `owl:"inputType=text widget=textarea"`
Title string
Yield string
Duration string
Ingredients []string
Content string
}
// Form implements model.EntryMetaData.

View File

@ -12,9 +12,9 @@ type Reply struct {
}
type ReplyMetaData struct {
Title string `owl:"inputType=text"`
Url string `owl:"inputType=text"`
Content string `owl:"inputType=text widget=textarea"`
Title string
Url string
Content string
}
// Form implements model.EntryMetaData.

View File

@ -17,8 +17,8 @@ type Instagram struct {
}
type InstagramConfig struct {
User string `owl:"widget=text"`
Password string `owl:"widget=password"`
User string
Password string
}
// Form implements app.AppConfig.

View File

@ -21,9 +21,9 @@ type ActivityPubServer struct {
}
type ActivityPubConfig struct {
PreferredUsername string `owl:"inputType=text"`
PublicKeyPem string `owl:"inputType=text widget=textarea"`
PrivateKeyPem string `owl:"inputType=text widget=textarea"`
PreferredUsername string
PublicKeyPem string
PrivateKeyPem string
}
// Form implements app.AppConfig.