Merge branch 'vnext' of github.com:pazof/yavsc into vnext
commit
7283689059
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<runtime>
|
||||||
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
</assemblyBinding>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Target Name="EmitMSBuildWarning" BeforeTargets="Build">
|
||||||
|
<Warning Text="Les packages contenant des cibles et des fichiers de propriétés MSBuild ne peuvent pas être installés complètement dans des projets ciblant plusieurs infrastructures. Les cibles et les fichiers de propriétés MSBuild ont été ignorés." />
|
||||||
|
</Target>
|
||||||
|
</Project>
|
||||||
@ -1,17 +1,17 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio 2012
|
# Visual Studio 2012
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Yavsc.Client", "Yavsc.Client.csproj", "{67F9D3A8-F71E-4428-913F-C37AE82CDB24}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Yavsc.Client", "Yavsc.Client.csproj", "{67F9D3A8-F71E-4428-913F-C37AE82CDB24}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Release|Any CPU.Build.0 = Release|Any CPU
|
{67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|||||||
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<runtime>
|
||||||
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
</assemblyBinding>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
||||||
@ -1,3 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
</packages>
|
</packages>
|
||||||
|
|||||||
@ -1,121 +1,121 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Microsoft.AspNet.Authorization;
|
using Microsoft.AspNet.Authorization;
|
||||||
using Microsoft.AspNet.Mvc;
|
using Microsoft.AspNet.Mvc;
|
||||||
using Yavsc.Models;
|
using Yavsc.Models;
|
||||||
using Yavsc.Models.Billing;
|
using Yavsc.Models.Billing;
|
||||||
|
|
||||||
namespace Yavsc.Controllers
|
namespace Yavsc.Controllers
|
||||||
{
|
{
|
||||||
[Authorize(Roles="Administrator")]
|
[Authorize(Roles="Administrator")]
|
||||||
public class SIRENExceptionsController : Controller
|
public class SIRENExceptionsController : Controller
|
||||||
{
|
{
|
||||||
private ApplicationDbContext _context;
|
private ApplicationDbContext _context;
|
||||||
|
|
||||||
public SIRENExceptionsController(ApplicationDbContext context)
|
public SIRENExceptionsController(ApplicationDbContext context)
|
||||||
{
|
{
|
||||||
_context = context;
|
_context = context;
|
||||||
}
|
}
|
||||||
|
|
||||||
// GET: SIRENExceptions
|
// GET: SIRENExceptions
|
||||||
public IActionResult Index()
|
public IActionResult Index()
|
||||||
{
|
{
|
||||||
return View(_context.ExceptionsSIREN.ToList());
|
return View(_context.ExceptionsSIREN.ToList());
|
||||||
}
|
}
|
||||||
|
|
||||||
// GET: SIRENExceptions/Details/5
|
// GET: SIRENExceptions/Details/5
|
||||||
public IActionResult Details(string id)
|
public IActionResult Details(string id)
|
||||||
{
|
{
|
||||||
if (id == null)
|
if (id == null)
|
||||||
{
|
{
|
||||||
return HttpNotFound();
|
return HttpNotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
ExceptionSIREN exceptionSIREN = _context.ExceptionsSIREN.Single(m => m.SIREN == id);
|
ExceptionSIREN exceptionSIREN = _context.ExceptionsSIREN.Single(m => m.SIREN == id);
|
||||||
if (exceptionSIREN == null)
|
if (exceptionSIREN == null)
|
||||||
{
|
{
|
||||||
return HttpNotFound();
|
return HttpNotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
return View(exceptionSIREN);
|
return View(exceptionSIREN);
|
||||||
}
|
}
|
||||||
|
|
||||||
// GET: SIRENExceptions/Create
|
// GET: SIRENExceptions/Create
|
||||||
public IActionResult Create()
|
public IActionResult Create()
|
||||||
{
|
{
|
||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
|
||||||
// POST: SIRENExceptions/Create
|
// POST: SIRENExceptions/Create
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
[ValidateAntiForgeryToken]
|
[ValidateAntiForgeryToken]
|
||||||
public IActionResult Create(ExceptionSIREN exceptionSIREN)
|
public IActionResult Create(ExceptionSIREN exceptionSIREN)
|
||||||
{
|
{
|
||||||
if (ModelState.IsValid)
|
if (ModelState.IsValid)
|
||||||
{
|
{
|
||||||
_context.ExceptionsSIREN.Add(exceptionSIREN);
|
_context.ExceptionsSIREN.Add(exceptionSIREN);
|
||||||
_context.SaveChanges();
|
_context.SaveChanges();
|
||||||
return RedirectToAction("Index");
|
return RedirectToAction("Index");
|
||||||
}
|
}
|
||||||
return View(exceptionSIREN);
|
return View(exceptionSIREN);
|
||||||
}
|
}
|
||||||
|
|
||||||
// GET: SIRENExceptions/Edit/5
|
// GET: SIRENExceptions/Edit/5
|
||||||
public IActionResult Edit(string id)
|
public IActionResult Edit(string id)
|
||||||
{
|
{
|
||||||
if (id == null)
|
if (id == null)
|
||||||
{
|
{
|
||||||
return HttpNotFound();
|
return HttpNotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
ExceptionSIREN exceptionSIREN = _context.ExceptionsSIREN.Single(m => m.SIREN == id);
|
ExceptionSIREN exceptionSIREN = _context.ExceptionsSIREN.Single(m => m.SIREN == id);
|
||||||
if (exceptionSIREN == null)
|
if (exceptionSIREN == null)
|
||||||
{
|
{
|
||||||
return HttpNotFound();
|
return HttpNotFound();
|
||||||
}
|
}
|
||||||
return View(exceptionSIREN);
|
return View(exceptionSIREN);
|
||||||
}
|
}
|
||||||
|
|
||||||
// POST: SIRENExceptions/Edit/5
|
// POST: SIRENExceptions/Edit/5
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
[ValidateAntiForgeryToken]
|
[ValidateAntiForgeryToken]
|
||||||
public IActionResult Edit(ExceptionSIREN exceptionSIREN)
|
public IActionResult Edit(ExceptionSIREN exceptionSIREN)
|
||||||
{
|
{
|
||||||
if (ModelState.IsValid)
|
if (ModelState.IsValid)
|
||||||
{
|
{
|
||||||
_context.Update(exceptionSIREN);
|
_context.Update(exceptionSIREN);
|
||||||
_context.SaveChanges();
|
_context.SaveChanges();
|
||||||
return RedirectToAction("Index");
|
return RedirectToAction("Index");
|
||||||
}
|
}
|
||||||
return View(exceptionSIREN);
|
return View(exceptionSIREN);
|
||||||
}
|
}
|
||||||
|
|
||||||
// GET: SIRENExceptions/Delete/5
|
// GET: SIRENExceptions/Delete/5
|
||||||
[ActionName("Delete")]
|
[ActionName("Delete")]
|
||||||
public IActionResult Delete(string id)
|
public IActionResult Delete(string id)
|
||||||
{
|
{
|
||||||
if (id == null)
|
if (id == null)
|
||||||
{
|
{
|
||||||
return HttpNotFound();
|
return HttpNotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
ExceptionSIREN exceptionSIREN = _context.ExceptionsSIREN.Single(m => m.SIREN == id);
|
ExceptionSIREN exceptionSIREN = _context.ExceptionsSIREN.Single(m => m.SIREN == id);
|
||||||
if (exceptionSIREN == null)
|
if (exceptionSIREN == null)
|
||||||
{
|
{
|
||||||
return HttpNotFound();
|
return HttpNotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
return View(exceptionSIREN);
|
return View(exceptionSIREN);
|
||||||
}
|
}
|
||||||
|
|
||||||
// POST: SIRENExceptions/Delete/5
|
// POST: SIRENExceptions/Delete/5
|
||||||
[HttpPost, ActionName("Delete")]
|
[HttpPost, ActionName("Delete")]
|
||||||
[ValidateAntiForgeryToken]
|
[ValidateAntiForgeryToken]
|
||||||
public IActionResult DeleteConfirmed(string id)
|
public IActionResult DeleteConfirmed(string id)
|
||||||
{
|
{
|
||||||
ExceptionSIREN exceptionSIREN = _context.ExceptionsSIREN.Single(m => m.SIREN == id);
|
ExceptionSIREN exceptionSIREN = _context.ExceptionsSIREN.Single(m => m.SIREN == id);
|
||||||
_context.ExceptionsSIREN.Remove(exceptionSIREN);
|
_context.ExceptionsSIREN.Remove(exceptionSIREN);
|
||||||
_context.SaveChanges();
|
_context.SaveChanges();
|
||||||
return RedirectToAction("Index");
|
return RedirectToAction("Index");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,18 +1,18 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
|
|
||||||
namespace Yavsc.Models
|
namespace Yavsc.Models
|
||||||
{
|
{
|
||||||
public class Contact
|
public class Contact
|
||||||
{
|
{
|
||||||
[Required()]
|
[Required()]
|
||||||
public string UserId { get; set; }
|
public string UserId { get; set; }
|
||||||
|
|
||||||
[Required()]
|
[Required()]
|
||||||
public string OwnerId { get; set; }
|
public string OwnerId { get; set; }
|
||||||
|
|
||||||
[ForeignKeyAttribute("OwnerId")]
|
[ForeignKeyAttribute("OwnerId")]
|
||||||
public virtual ApplicationUser Owner { get; set; }
|
public virtual ApplicationUser Owner { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,40 +1,40 @@
|
|||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
using Yavsc.Models.Market;
|
using Yavsc.Models.Market;
|
||||||
|
|
||||||
namespace Yavsc.Models
|
namespace Yavsc.Models
|
||||||
{
|
{
|
||||||
public class Activity
|
public class Activity
|
||||||
{
|
{
|
||||||
|
|
||||||
[StringLength(512),Required,Key]
|
[StringLength(512),Required,Key]
|
||||||
public string Code {get; set;}
|
public string Code {get; set;}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[StringLength(512),Required()]
|
[StringLength(512),Required()]
|
||||||
public string Name {get; set;}
|
public string Name {get; set;}
|
||||||
|
|
||||||
public string Description {get; set;}
|
public string Description {get; set;}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Name to associate to a performer in this activity domain
|
/// Name to associate to a performer in this activity domain
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public string ActorDenomination {get; set;}
|
public string ActorDenomination {get; set;}
|
||||||
|
|
||||||
public string Photo {get; set;}
|
public string Photo {get; set;}
|
||||||
|
|
||||||
[InverseProperty("Context")]
|
[InverseProperty("Context")]
|
||||||
public List<Service> Services { get; set; }
|
public List<Service> Services { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Moderation settings
|
/// Moderation settings
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
string ModeratorGroupName { get; set; }
|
string ModeratorGroupName { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,30 +1,30 @@
|
|||||||
@model BookQuery
|
@model BookQuery
|
||||||
@using Yavsc.Models.Google.Messaging
|
@using Yavsc.Models.Google.Messaging
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = SR["Command confirmation"]+" "+SR[Model.PerformerProfile.ActivityCode];
|
ViewData["Title"] = SR["Command confirmation"]+" "+SR[Model.PerformerProfile.ActivityCode];
|
||||||
}
|
}
|
||||||
<h2>@ViewData["Title"]</h2>
|
<h2>@ViewData["Title"]</h2>
|
||||||
<div class="form-horizontal">
|
<div class="form-horizontal">
|
||||||
<h4>@SR["Your book query"]</h4>
|
<h4>@SR["Your book query"]</h4>
|
||||||
<hr />
|
<hr />
|
||||||
<label for="EventDate">@SR["Event date"]</label>: @Html.DisplayFor(m => m.EventDate)
|
<label for="EventDate">@SR["Event date"]</label>: @Html.DisplayFor(m => m.EventDate)
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<label for="Location">@SR["Location"]</label>: @Html.DisplayFor(m => m.Location)
|
<label for="Location">@SR["Location"]</label>: @Html.DisplayFor(m => m.Location)
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
@if (ViewBag.GooglePayload !=null)
|
@if (ViewBag.GooglePayload !=null)
|
||||||
{
|
{
|
||||||
@if (ViewBag.GooglePayload.success>0) {
|
@if (ViewBag.GooglePayload.success>0) {
|
||||||
<h4>@SR["GCM Notifications sent"]</h4>
|
<h4>@SR["GCM Notifications sent"]</h4>
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (ViewBag.GooglePayload.failure>0)
|
if (ViewBag.GooglePayload.failure>0)
|
||||||
{
|
{
|
||||||
<h4>@SR["GCM Notification sending failed"]</h4>
|
<h4>@SR["GCM Notification sending failed"]</h4>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,22 +1,22 @@
|
|||||||
@model Yavsc.Models.Billing.ExceptionSIREN
|
@model Yavsc.Models.Billing.ExceptionSIREN
|
||||||
|
|
||||||
|
|
||||||
<form asp-action="Create">
|
<form asp-action="Create">
|
||||||
<div class="form-horizontal">
|
<div class="form-horizontal">
|
||||||
<h4>Exception SIREN</h4>
|
<h4>Exception SIREN</h4>
|
||||||
<hr />
|
<hr />
|
||||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@Html.TextBox("SIREN")
|
@Html.TextBox("SIREN")
|
||||||
<div class="col-md-offset-1 col-md-10">
|
<div class="col-md-offset-1 col-md-10">
|
||||||
<div class="col-md-offset-2 col-md-10">
|
<div class="col-md-offset-2 col-md-10">
|
||||||
<input type="submit" value="Create" class="btn btn-default" />
|
<input type="submit" value="Create" class="btn btn-default" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<a asp-action="Index">Back to List</a>
|
<a asp-action="Index">Back to List</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,31 +1,31 @@
|
|||||||
@model Yavsc.Models.Billing.ExceptionSIREN
|
@model Yavsc.Models.Billing.ExceptionSIREN
|
||||||
|
|
||||||
@{
|
@{
|
||||||
Layout = null;
|
Layout = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta name="viewport" content="width=device-width" />
|
<meta name="viewport" content="width=device-width" />
|
||||||
<title>Delete</title>
|
<title>Delete</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<h3>Are you sure you want to delete this?</h3>
|
<h3>Are you sure you want to delete this?</h3>
|
||||||
<div>
|
<div>
|
||||||
<h4>ExceptionSIREN</h4>
|
<h4>ExceptionSIREN</h4>
|
||||||
<hr />
|
<hr />
|
||||||
<dl class="dl-horizontal">
|
<dl class="dl-horizontal">
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<form asp-action="Delete">
|
<form asp-action="Delete">
|
||||||
<div class="form-actions no-color">
|
<div class="form-actions no-color">
|
||||||
<input type="submit" value="Delete" class="btn btn-default" /> |
|
<input type="submit" value="Delete" class="btn btn-default" /> |
|
||||||
<a asp-action="Index">Back to List</a>
|
<a asp-action="Index">Back to List</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -1,27 +1,27 @@
|
|||||||
@model Yavsc.Models.Billing.ExceptionSIREN
|
@model Yavsc.Models.Billing.ExceptionSIREN
|
||||||
|
|
||||||
@{
|
@{
|
||||||
Layout = null;
|
Layout = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta name="viewport" content="width=device-width" />
|
<meta name="viewport" content="width=device-width" />
|
||||||
<title>Details</title>
|
<title>Details</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<h4>ExceptionSIREN</h4>
|
<h4>ExceptionSIREN</h4>
|
||||||
<hr />
|
<hr />
|
||||||
<dl class="dl-horizontal">
|
<dl class="dl-horizontal">
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
<a asp-action="Edit" asp-route-id="@Model.SIREN">Edit</a> |
|
<a asp-action="Edit" asp-route-id="@Model.SIREN">Edit</a> |
|
||||||
<a asp-action="Index">Back to List</a>
|
<a asp-action="Index">Back to List</a>
|
||||||
</p>
|
</p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -1,39 +1,39 @@
|
|||||||
@model Yavsc.Models.Billing.ExceptionSIREN
|
@model Yavsc.Models.Billing.ExceptionSIREN
|
||||||
|
|
||||||
@{
|
@{
|
||||||
Layout = null;
|
Layout = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta name="viewport" content="width=device-width" />
|
<meta name="viewport" content="width=device-width" />
|
||||||
<title>Edit</title>
|
<title>Edit</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<form asp-action="Edit">
|
<form asp-action="Edit">
|
||||||
<div class="form-horizontal">
|
<div class="form-horizontal">
|
||||||
<h4>ExceptionSIREN</h4>
|
<h4>ExceptionSIREN</h4>
|
||||||
<hr />
|
<hr />
|
||||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||||
@Html.DisplayFor(model => model.SIREN) :
|
@Html.DisplayFor(model => model.SIREN) :
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-md-offset-1 col-md-10">
|
<div class="col-md-offset-1 col-md-10">
|
||||||
@Html.InputFor(model => model.SIREN)
|
@Html.InputFor(model => model.SIREN)
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-offset-2 col-md-10">
|
<div class="col-md-offset-2 col-md-10">
|
||||||
<input type="submit" value="Save" class="btn btn-default" />
|
<input type="submit" value="Save" class="btn btn-default" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<a asp-action="Index">Back to List</a>
|
<a asp-action="Index">Back to List</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -1,21 +1,21 @@
|
|||||||
@model IEnumerable<Yavsc.Models.Billing.ExceptionSIREN>
|
@model IEnumerable<Yavsc.Models.Billing.ExceptionSIREN>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a asp-action="Create">Create New</a>
|
<a asp-action="Create">Create New</a>
|
||||||
</p>
|
</p>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Exceptions à la validation des code SIREN</th>
|
<th>Exceptions à la validation des code SIREN</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@foreach (var item in Model) {
|
@foreach (var item in Model) {
|
||||||
<tr>
|
<tr>
|
||||||
<td>@item.SIREN</td>
|
<td>@item.SIREN</td>
|
||||||
<td>
|
<td>
|
||||||
<a asp-action="Edit" asp-route-id="@item.SIREN">Edit</a> |
|
<a asp-action="Edit" asp-route-id="@item.SIREN">Edit</a> |
|
||||||
<a asp-action="Details" asp-route-id="@item.SIREN">Details</a> |
|
<a asp-action="Details" asp-route-id="@item.SIREN">Details</a> |
|
||||||
<a asp-action="Delete" asp-route-id="@item.SIREN">Delete</a>
|
<a asp-action="Delete" asp-route-id="@item.SIREN">Delete</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Loading…
Reference in New Issue