Replace WebGridBootstrapPager
Improve Leaf details page
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using AutoMapper;
|
||||
using LeafWeb.Core.Entities;
|
||||
using LeafWeb.Core.Utility;
|
||||
|
||||
namespace LeafWeb.WebCms.Models
|
||||
{
|
||||
@@ -9,15 +8,16 @@ namespace LeafWeb.WebCms.Models
|
||||
{
|
||||
/// <summary>Site identifier</summary>
|
||||
/// <remarks>do not leave blank between letters</remarks>
|
||||
[ParseInfo(1)]
|
||||
[Display(Name = "Site Id")]
|
||||
public string SiteId { get; set; }
|
||||
|
||||
/// <summary>Site latitude, northern hemisphere positive</summary>
|
||||
[Display(Name = "Latitude (°)")]
|
||||
[DisplayFormat(DataFormatString = "{0} °")]
|
||||
public double? Latitude { get; set; }
|
||||
|
||||
/// <summary>Site longitude, east positive</summary>
|
||||
[Display(Name = "Longitude (°)")]
|
||||
[DisplayFormat(DataFormatString = "{0} °")]
|
||||
public double? Longitude { get; set; }
|
||||
|
||||
@@ -25,9 +25,11 @@ namespace LeafWeb.WebCms.Models
|
||||
[DisplayFormat(DataFormatString = "{0} m")]
|
||||
public double? Elevation { get; set; }
|
||||
|
||||
/*
|
||||
/// <summary>the year when the A/Ci data is taken</summary>
|
||||
[DisplayFormat(DataFormatString = "{0} year")]
|
||||
public int? SampleYear { get; set; }
|
||||
public string SampleYear { get; set; }
|
||||
|
||||
|
||||
/// <summary>the day of year (since 1 Jan) when the A/Ci data is taken</summary>
|
||||
[ParseInfo(6, units: "day")]
|
||||
@@ -85,7 +87,7 @@ namespace LeafWeb.WebCms.Models
|
||||
/// <summary>dry leaf phosphorus content of the sample</summary>
|
||||
[ParseInfo(19, units: "%")]
|
||||
public double? LfPhosphContent { get; set; }
|
||||
|
||||
*/
|
||||
static LeafInputDataSiteViewModel()
|
||||
{
|
||||
Mapper.CreateMap<LeafInputDataSite, LeafInputDataSiteViewModel>();
|
||||
|
||||
Reference in New Issue
Block a user