diff --git a/src/Bonsai/Areas/Admin/Scripts/page-facts.js b/src/Bonsai/Areas/Admin/Scripts/page-facts.js index cfd51fe..90ade84 100644 --- a/src/Bonsai/Areas/Admin/Scripts/page-facts.js +++ b/src/Bonsai/Areas/Admin/Scripts/page-facts.js @@ -157,6 +157,15 @@ getList: function() { var root = this.data[this.def.key] || {}; return root['Values'] || []; + }, + contactPlaceholder: function (type) { + if (type === 'Email') + return 'mailbox@example.com'; + if (type === 'Phone') + return '+79251234567'; + if (type === 'Telegram' || type === 'Twitter') + return '@username'; + return 'https://'; } } }); diff --git a/src/Bonsai/Areas/Admin/Views/Changesets/Facts/SocialProfilesFactModel.cshtml b/src/Bonsai/Areas/Admin/Views/Changesets/Facts/ContactsFactModel.cshtml similarity index 87% rename from src/Bonsai/Areas/Admin/Views/Changesets/Facts/SocialProfilesFactModel.cshtml rename to src/Bonsai/Areas/Admin/Views/Changesets/Facts/ContactsFactModel.cshtml index 5a82870..4a65d00 100644 --- a/src/Bonsai/Areas/Admin/Views/Changesets/Facts/SocialProfilesFactModel.cshtml +++ b/src/Bonsai/Areas/Admin/Views/Changesets/Facts/ContactsFactModel.cshtml @@ -1,6 +1,6 @@ @using Bonsai.Code.DomainModel.Facts.Models @using Impworks.Utils.Format -@model SocialProfilesFactModel +@model ContactsFactModel @Model.ShortTitle: