presentation
This commit is contained in:
parent
0cc82fec5d
commit
ec54108cf0
9 changed files with 26 additions and 322 deletions
|
|
@ -14,16 +14,13 @@ namespace Yavsc.Controllers
|
||||||
{
|
{
|
||||||
readonly ApplicationDbContext _context;
|
readonly ApplicationDbContext _context;
|
||||||
readonly IStringLocalizer<BugController> _localizer;
|
readonly IStringLocalizer<BugController> _localizer;
|
||||||
readonly IStringLocalizer<Yavsc.Models.IT.Fixing.Resources> _statusLocalizer;
|
|
||||||
|
|
||||||
public BugController(ApplicationDbContext context,
|
public BugController(ApplicationDbContext context,
|
||||||
IStringLocalizer<BugController> localizer,
|
IStringLocalizer<BugController> localizer
|
||||||
IStringLocalizer<Resources> statusLocalizer
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
_context = context;
|
_context = context;
|
||||||
_localizer = localizer;
|
_localizer = localizer;
|
||||||
_statusLocalizer = statusLocalizer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// GET: Bug
|
// GET: Bug
|
||||||
|
|
@ -61,11 +58,11 @@ namespace Yavsc.Controllers
|
||||||
}
|
}
|
||||||
|
|
||||||
IEnumerable<SelectListItem> Statuses(BugStatus ?status) =>
|
IEnumerable<SelectListItem> Statuses(BugStatus ?status) =>
|
||||||
_statusLocalizer.CreateSelectListItems(typeof(BugStatus), status);
|
_localizer.CreateSelectListItems(typeof(BugStatus), status);
|
||||||
|
|
||||||
IEnumerable<SelectListItem> Features(ApplicationDbContext context) =>
|
IEnumerable<SelectListItem> Features(ApplicationDbContext context) =>
|
||||||
context.Feature.CreateSelectListItems<Feature>(f => f.Id.ToString(), f => $"{f.ShortName} ({f.Description})", null)
|
context.Feature.CreateSelectListItems<Feature>(f => f.Id.ToString(), f => $"{f.ShortName} ({f.Description})", null)
|
||||||
.AddNull(_localizer["noAttachedFID"]);
|
.AddNull(_localizer["noAttachedFID"]);
|
||||||
|
|
||||||
// POST: Bug/Create
|
// POST: Bug/Create
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
|
|
@ -152,20 +149,20 @@ namespace Yavsc.Controllers
|
||||||
return RedirectToAction("Index");
|
return RedirectToAction("Index");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[Authorize("AdministratorOnly")]
|
[Authorize("AdministratorOnly")]
|
||||||
public async Task<IActionResult> DeleteAllLike(long? id)
|
public async Task<IActionResult> DeleteAllLike(long? id)
|
||||||
{
|
{
|
||||||
if (id == null)
|
if (id == null)
|
||||||
{
|
{
|
||||||
return NotFound();
|
return NotFound();
|
||||||
}
|
}
|
||||||
Bug bugref = await _context.Bug.SingleAsync(m => m.Id == id);
|
Bug bugRef = await _context.Bug.SingleAsync(m => m.Id == id);
|
||||||
if (bugref == null)
|
if (bugRef == null)
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
var bugs = _context.Bug.Where(b => b.Description == bugref.Description);
|
var bugs = _context.Bug.Where(b => b.Description == bugRef.Description);
|
||||||
return View(bugs);
|
return View(bugs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,5 +59,10 @@
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<data name="noAttachedFID"><value>Pas de fonctionalité attachée</value></data>
|
<data name="noAttachedFID"><value>Pas de fonctionalité attachée</value></data>
|
||||||
|
<data name="Inserted"><value> inséré</value></data>
|
||||||
|
<data name="Confirmed"><value> Confirmé</value></data>
|
||||||
|
<data name="Rejected"><value> Rejeté</value></data>
|
||||||
|
<data name="Feature"><value> Fonctionnalité</value></data>
|
||||||
|
<data name="Fixed"><value> Fixé</value></data>
|
||||||
</root>
|
</root>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
<input type="hidden" asp-for="RoleName" />
|
<input type="hidden" asp-for="RoleName" />
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-md-offset-2 col-md-10">
|
<div class="col-md-offset-2 col-md-10">
|
||||||
<input type="submit" value="Submit"]" class="btn btn-primary" />
|
<input type="submit" value="Submit" class="btn btn-primary" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,14 +12,14 @@
|
||||||
@Html.DisplayFor(model => model)
|
@Html.DisplayFor(model => model)
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a asp-action="Edit" >Edit</a>
|
<a asp-action="Edit" >Edit</a>
|
||||||
<a asp-action="Delete" asp-route-id="@Model.UserId">Delete</a>
|
<a asp-action="Delete" asp-route-id="@Model.UserId">Delete</a>
|
||||||
</p>
|
</p>
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
<p>
|
<p>
|
||||||
Aucun profile renseigné"]
|
Aucun profile renseigné
|
||||||
<a asp-action="Create" class="btn btn-success">Renseigner ce paramêtrage"]</a>
|
<a asp-action="Create" class="btn btn-success">Renseigner ce paramêtrage</a>
|
||||||
</p>
|
</p>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<h2>Index</h2>
|
<h2>Index</h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a asp-action="Create">Ajouter un utilisateur à un cercle"]</a>
|
<a asp-action="Create">Ajouter un utilisateur à un cercle</a>
|
||||||
</p>
|
</p>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -15,18 +15,18 @@
|
||||||
<th>Utilisateur</th>
|
<th>Utilisateur</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@foreach (var item in Model) {
|
@foreach (var item in Model) {
|
||||||
|
|
||||||
var itemKey = new { Id = item.CircleId } ;
|
var itemKey = new { Id = item.CircleId } ;
|
||||||
|
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
@Html.DisplayFor(m=>item.Circle)
|
@Html.DisplayFor(m=>item.Circle)
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@Html.DisplayFor(m=>item.Member)
|
@Html.DisplayFor(m=>item.Member)
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
|
|
|
||||||
|
|
@ -1,94 +0,0 @@
|
||||||
// ------------------------------------------------------------------------------
|
|
||||||
// <autogenerated>
|
|
||||||
// This code was generated by a tool.
|
|
||||||
// Mono Runtime Version: 4.0.30319.42000
|
|
||||||
//
|
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
|
||||||
// the code is regenerated.
|
|
||||||
// </autogenerated>
|
|
||||||
// ------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace Yavsc.Models.Streaming {
|
|
||||||
using System;
|
|
||||||
using System.Reflection;
|
|
||||||
|
|
||||||
|
|
||||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
|
||||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
|
||||||
public partial class LiveFlow {
|
|
||||||
|
|
||||||
private static System.Resources.ResourceManager resourceMan;
|
|
||||||
|
|
||||||
private static System.Globalization.CultureInfo resourceCulture;
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
||||||
public static System.Resources.ResourceManager ResourceManager {
|
|
||||||
get {
|
|
||||||
if (object.Equals(null, resourceMan)) {
|
|
||||||
System.Resources.ResourceManager temp = new System.Resources.ResourceManager(("Yavsc.Server.Resources." + "Yavsc.Models.Streaming.LiveFlow"), typeof(LiveFlow).GetTypeInfo().Assembly);
|
|
||||||
resourceMan = temp;
|
|
||||||
}
|
|
||||||
return resourceMan;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
||||||
public static System.Globalization.CultureInfo Culture {
|
|
||||||
get {
|
|
||||||
return resourceCulture;
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
resourceCulture = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string DifferedFileNameLabel {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("DifferedFileNameLabel", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string MediaTypeLabel {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("MediaTypeLabel", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string PitchLabel {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("PitchLabel", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string SequenceNumberLabel {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("SequenceNumberLabel", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string TitleLabel {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("TitleLabel", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string FlowIdLabel {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("FlowIdLabel", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string OwnerIdLabel {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("OwnerIdLabel", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string OwnerLabel {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("OwnerLabel", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,58 +0,0 @@
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
|
||||||
// This code was generated by a tool.
|
|
||||||
// Runtime Version:4.0.30319.42000
|
|
||||||
//
|
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
|
||||||
// the code is regenerated.
|
|
||||||
// </auto-generated>
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace Yavsc.ViewModels {
|
|
||||||
using System;
|
|
||||||
using System.Reflection;
|
|
||||||
|
|
||||||
|
|
||||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
|
||||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
|
||||||
public partial class EnrolerViewModel {
|
|
||||||
|
|
||||||
private static System.Resources.ResourceManager resourceMan;
|
|
||||||
|
|
||||||
private static System.Globalization.CultureInfo resourceCulture;
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
||||||
public static System.Resources.ResourceManager ResourceManager {
|
|
||||||
get {
|
|
||||||
if (object.Equals(null, resourceMan)) {
|
|
||||||
System.Resources.ResourceManager temp = new System.Resources.ResourceManager(("Yavsc.Resources." + "Yavsc.ViewModels.EnrolerViewModel"), typeof(EnrolerViewModel).GetTypeInfo().Assembly);
|
|
||||||
resourceMan = temp;
|
|
||||||
}
|
|
||||||
return resourceMan;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
||||||
public static System.Globalization.CultureInfo Culture {
|
|
||||||
get {
|
|
||||||
return resourceCulture;
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
resourceCulture = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string EnroledLabel {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("EnroledLabel", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string RoleNameLabel {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("RoleNameLabel", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,76 +0,0 @@
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
|
||||||
// This code was generated by a tool.
|
|
||||||
// Runtime Version:4.0.30319.42000
|
|
||||||
//
|
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
|
||||||
// the code is regenerated.
|
|
||||||
// </auto-generated>
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace Yavsc.Models.IT.Fixing {
|
|
||||||
using System;
|
|
||||||
using System.Reflection;
|
|
||||||
|
|
||||||
|
|
||||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
|
||||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
|
||||||
public partial class Resources {
|
|
||||||
|
|
||||||
private static System.Resources.ResourceManager resourceMan;
|
|
||||||
|
|
||||||
private static System.Globalization.CultureInfo resourceCulture;
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
||||||
public static System.Resources.ResourceManager ResourceManager {
|
|
||||||
get {
|
|
||||||
if (object.Equals(null, resourceMan)) {
|
|
||||||
System.Resources.ResourceManager temp = new System.Resources.ResourceManager(("Yavsc.Resources." + "Yavsc.Models.IT.Fixing.Resources"), typeof(Resources).GetTypeInfo().Assembly);
|
|
||||||
resourceMan = temp;
|
|
||||||
}
|
|
||||||
return resourceMan;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
||||||
public static System.Globalization.CultureInfo Culture {
|
|
||||||
get {
|
|
||||||
return resourceCulture;
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
resourceCulture = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string Rejected {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("Rejected", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string Inserted {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("Inserted", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string Confirmed {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("Confirmed", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string Feature {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("Feature", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string Fixed {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("Fixed", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,70 +0,0 @@
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
|
||||||
// This code was generated by a tool.
|
|
||||||
// Runtime Version:4.0.30319.42000
|
|
||||||
//
|
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
|
||||||
// the code is regenerated.
|
|
||||||
// </auto-generated>
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace Yavsc.Models.Relationship {
|
|
||||||
using System;
|
|
||||||
using System.Reflection;
|
|
||||||
|
|
||||||
|
|
||||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
|
||||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
|
||||||
public partial class HyperLink {
|
|
||||||
|
|
||||||
private static System.Resources.ResourceManager resourceMan;
|
|
||||||
|
|
||||||
private static System.Globalization.CultureInfo resourceCulture;
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
||||||
public static System.Resources.ResourceManager ResourceManager {
|
|
||||||
get {
|
|
||||||
if (object.Equals(null, resourceMan)) {
|
|
||||||
System.Resources.ResourceManager temp = new System.Resources.ResourceManager(("Yavsc.Server.Resources." + "Yavsc.Models.Relationship.HyperLink"), typeof(HyperLink).GetTypeInfo().Assembly);
|
|
||||||
resourceMan = temp;
|
|
||||||
}
|
|
||||||
return resourceMan;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
||||||
public static System.Globalization.CultureInfo Culture {
|
|
||||||
get {
|
|
||||||
return resourceCulture;
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
resourceCulture = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string MethodDisplayName {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("MethodDisplayName", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string ContentTypeDisplayName {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("ContentTypeDisplayName", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string RelDisplayName {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("RelDisplayName", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string HRefDisplayName {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("HRefDisplayName", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue