Seperated css files; added search form to register and styled the button

This commit is contained in:
schnulller
2022-06-09 16:40:27 +02:00
parent d41dffd46a
commit 5f0c84bfd1
24 changed files with 6507 additions and 2416 deletions

View File

@@ -6,6 +6,7 @@ public class RegisterViewModel {
public string Id { get; private set; }
public string Title { get; private set; }
public bool AllowSendIn { get; private set; }
public bool AllowSearch { get; private set; }
private List<(string, string)>? _AvailableCategories;
private List<(string, string)>? _AvailableSideCategories;
@@ -42,11 +43,12 @@ public class RegisterViewModel {
}
}
public RegisterViewModel(string category, string id, List<CommentModel> parsedComments, string title, bool allowSendIn) {
public RegisterViewModel(string category, string id, List<CommentModel> parsedComments, string title, bool allowSendIn, bool allowSearch) {
this.Category = HttpUtility.HtmlAttributeEncode(category);
this.Id = HttpUtility.HtmlAttributeEncode(id);
this.ParsedComments = parsedComments;
this.Title = HttpUtility.HtmlEncode(title);
this.AllowSendIn = allowSendIn;
this.AllowSearch = allowSearch;
}
}