Hide Document Templates & UI Tweaks

Flag Document Templates as hidden. UI changes aim to improve visibility
of used features in lists.
This commit is contained in:
Gary Sharp
2016-11-10 17:42:10 +11:00
parent b52cbcb94a
commit 4c91d03385
55 changed files with 1485 additions and 613 deletions
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
@@ -32,6 +32,8 @@ namespace Disco.Models.Repository
public string DevicesLinkedGroup { get; set; }
public string UsersLinkedGroup { get; set; }
public bool IsHidden { get; set; }
[InverseProperty("DocumentTemplates")]
public virtual IList<JobSubType> JobSubTypes { get; set; }
@@ -20,5 +20,6 @@ namespace Disco.Models.UI.Config.DeviceBatch
DateTime? WarrantyExpires { get; set; }
DateTime? InsuredUntil { get; set; }
string InsuranceSupplier { get; set; }
bool IsLinked { get; set; }
}
}
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DeviceProfile
namespace Disco.Models.UI.Config.DeviceProfile
{
public interface ConfigDeviceProfileIndexModelItem
{
@@ -18,5 +12,6 @@ namespace Disco.Models.UI.Config.DeviceProfile
int DeviceCount { get; set; }
int DeviceDecommissionedCount { get; set; }
bool IsLinked { get; set; }
}
}
@@ -1,13 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
namespace Disco.Models.UI.Config.DocumentTemplate
{
public interface ConfigDocumentTemplateIndexModel : BaseUIModel
{
List<Disco.Models.Repository.DocumentTemplate> DocumentTemplates { get; set; }
Dictionary<Repository.DocumentTemplate, int> DocumentTemplates { get; set; }
}
}
@@ -4,6 +4,6 @@ namespace Disco.Models.UI.Config.UserFlag
{
public interface ConfigUserFlagIndexModel : BaseUIModel
{
List<Repository.UserFlag> UserFlags { get; set; }
Dictionary<Repository.UserFlag, int> UserFlags { get; set; }
}
}