diff --git a/cicm_web/Areas/Admin/Controllers/BrowserTestsController.cs b/cicm_web/Areas/Admin/Controllers/BrowserTestsController.cs new file mode 100644 index 00000000..6d2b1917 --- /dev/null +++ b/cicm_web/Areas/Admin/Controllers/BrowserTestsController.cs @@ -0,0 +1,163 @@ +/****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : BrowserTestsController.cs +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Browser test admin controller +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ + +using System.Linq; +using System.Threading.Tasks; +using Cicm.Database.Models; +using Microsoft.AspNetCore.Mvc; +using Microsoft.EntityFrameworkCore; + +namespace cicm_web.Areas.Admin.Controllers +{ + [Area("Admin")] + public class BrowserTestsController : Controller + { + readonly cicmContext _context; + + public BrowserTestsController(cicmContext context) + { + _context = context; + } + + // GET: Admin/BrowserTests + public async Task Index() + { + return View(await _context.BrowserTests.ToListAsync()); + } + + // GET: Admin/BrowserTests/Details/5 + public async Task Details(int? id) + { + if(id == null) return NotFound(); + + BrowserTest browserTest = await _context.BrowserTests.FirstOrDefaultAsync(m => m.Id == id); + if(browserTest == null) return NotFound(); + + return View(browserTest); + } + + // GET: Admin/BrowserTests/Create + public IActionResult Create() + { + return View(); + } + + // POST: Admin/BrowserTests/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create( + [Bind( + "Id,UserAgent,Browser,Version,Os,Platform,Gif87,Gif89,Jpeg,Png,Pngt,Agif,Table,Colors,Js,Frames,Flash")] + BrowserTest browserTest) + { + if(ModelState.IsValid) + { + _context.Add(browserTest); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + return View(browserTest); + } + + // GET: Admin/BrowserTests/Edit/5 + public async Task Edit(int? id) + { + if(id == null) return NotFound(); + + BrowserTest browserTest = await _context.BrowserTests.FindAsync(id); + if(browserTest == null) return NotFound(); + + return View(browserTest); + } + + // POST: Admin/BrowserTests/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit( + int id, [Bind( + "Id,UserAgent,Browser,Version,Os,Platform,Gif87,Gif89,Jpeg,Png,Pngt,Agif,Table,Colors,Js,Frames,Flash")] + BrowserTest browserTest) + { + if(id != browserTest.Id) return NotFound(); + + if(ModelState.IsValid) + { + try + { + _context.Update(browserTest); + await _context.SaveChangesAsync(); + } + catch(DbUpdateConcurrencyException) + { + if(!BrowserTestExists(browserTest.Id)) return NotFound(); + + throw; + } + + return RedirectToAction(nameof(Index)); + } + + return View(browserTest); + } + + // GET: Admin/BrowserTests/Delete/5 + public async Task Delete(int? id) + { + if(id == null) return NotFound(); + + BrowserTest browserTest = await _context.BrowserTests.FirstOrDefaultAsync(m => m.Id == id); + if(browserTest == null) return NotFound(); + + return View(browserTest); + } + + // POST: Admin/BrowserTests/Delete/5 + [HttpPost] + [ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + BrowserTest browserTest = await _context.BrowserTests.FindAsync(id); + _context.BrowserTests.Remove(browserTest); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + bool BrowserTestExists(int id) + { + return _context.BrowserTests.Any(e => e.Id == id); + } + } +} \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Controllers/CompaniesController.cs b/cicm_web/Areas/Admin/Controllers/CompaniesController.cs new file mode 100644 index 00000000..5f997792 --- /dev/null +++ b/cicm_web/Areas/Admin/Controllers/CompaniesController.cs @@ -0,0 +1,177 @@ +/****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : CompaniesController.cs +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Companies admin controller +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ + +using System.Linq; +using System.Threading.Tasks; +using Cicm.Database.Models; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Query; + +namespace cicm_web.Areas.Admin.Controllers +{ + [Area("Admin")] + public class CompaniesController : Controller + { + readonly cicmContext _context; + + public CompaniesController(cicmContext context) + { + _context = context; + } + + // GET: Admin/Companies + public async Task Index() + { + IIncludableQueryable cicmContext = + _context.Companies.Include(c => c.Country).Include(c => c.SoldTo); + return View(await cicmContext.ToListAsync()); + } + + // GET: Admin/Companies/Details/5 + public async Task Details(int? id) + { + if(id == null) return NotFound(); + + Company company = await _context.Companies.Include(c => c.Country).Include(c => c.SoldTo) + .FirstOrDefaultAsync(m => m.Id == id); + if(company == null) return NotFound(); + + return View(company); + } + + // GET: Admin/Companies/Create + public IActionResult Create() + { + ViewData["CountryId"] = new SelectList(_context.Iso31661Numeric, "Id", "Name"); + ViewData["SoldToId"] = new SelectList(_context.Companies, "Id", "Name"); + return View(); + } + + // POST: Admin/Companies/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create( + [Bind( + "Id,Name,Founded,Website,Twitter,Facebook,Sold,SoldToId,Address,City,Province,PostalCode,CountryId,Status")] + Company company) + { + if(ModelState.IsValid) + { + _context.Add(company); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + ViewData["CountryId"] = new SelectList(_context.Iso31661Numeric, "Id", "Name", company.CountryId); + ViewData["SoldToId"] = new SelectList(_context.Companies, "Id", "Name", company.SoldToId); + return View(company); + } + + // GET: Admin/Companies/Edit/5 + public async Task Edit(int? id) + { + if(id == null) return NotFound(); + + Company company = await _context.Companies.FindAsync(id); + if(company == null) return NotFound(); + + ViewData["CountryId"] = new SelectList(_context.Iso31661Numeric, "Id", "Name", company.CountryId); + ViewData["SoldToId"] = new SelectList(_context.Companies, "Id", "Name", company.SoldToId); + return View(company); + } + + // POST: Admin/Companies/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit( + int id, [Bind( + "Id,Name,Founded,Website,Twitter,Facebook,Sold,SoldToId,Address,City,Province,PostalCode,CountryId,Status")] + Company company) + { + if(id != company.Id) return NotFound(); + + if(ModelState.IsValid) + { + try + { + _context.Update(company); + await _context.SaveChangesAsync(); + } + catch(DbUpdateConcurrencyException) + { + if(!CompanyExists(company.Id)) return NotFound(); + + throw; + } + + return RedirectToAction(nameof(Index)); + } + + ViewData["CountryId"] = new SelectList(_context.Iso31661Numeric, "Id", "Name", company.CountryId); + ViewData["SoldToId"] = new SelectList(_context.Companies, "Id", "Name", company.SoldToId); + return View(company); + } + + // GET: Admin/Companies/Delete/5 + public async Task Delete(int? id) + { + if(id == null) return NotFound(); + + Company company = await _context.Companies.Include(c => c.Country).Include(c => c.SoldTo) + .FirstOrDefaultAsync(m => m.Id == id); + if(company == null) return NotFound(); + + return View(company); + } + + // POST: Admin/Companies/Delete/5 + [HttpPost] + [ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + Company company = await _context.Companies.FindAsync(id); + _context.Companies.Remove(company); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + bool CompanyExists(int id) + { + return _context.Companies.Any(e => e.Id == id); + } + } +} \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Controllers/CompanyDescriptionsController.cs b/cicm_web/Areas/Admin/Controllers/CompanyDescriptionsController.cs new file mode 100644 index 00000000..03135a14 --- /dev/null +++ b/cicm_web/Areas/Admin/Controllers/CompanyDescriptionsController.cs @@ -0,0 +1,167 @@ +/****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : CompanyDescriptionsController.cs +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Company descriptions admin controller +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ + +using System.Linq; +using System.Threading.Tasks; +using Cicm.Database.Models; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Query; + +namespace cicm_web.Areas.Admin.Controllers +{ + [Area("Admin")] + public class CompanyDescriptionsController : Controller + { + readonly cicmContext _context; + + public CompanyDescriptionsController(cicmContext context) + { + _context = context; + } + + // GET: Admin/CompanyDescriptions + public async Task Index() + { + IIncludableQueryable cicmContext = + _context.CompanyDescriptions.Include(c => c.Company); + return View(await cicmContext.ToListAsync()); + } + + // GET: Admin/CompanyDescriptions/Details/5 + public async Task Details(int? id) + { + if(id == null) return NotFound(); + + CompanyDescription companyDescription = + await _context.CompanyDescriptions.Include(c => c.Company).FirstOrDefaultAsync(m => m.Id == id); + if(companyDescription == null) return NotFound(); + + return View(companyDescription); + } + + // GET: Admin/CompanyDescriptions/Create + public IActionResult Create() + { + ViewData["Id"] = new SelectList(_context.Companies, "Id", "Name"); + return View(); + } + + // POST: Admin/CompanyDescriptions/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("Id,CompanyId,Text")] CompanyDescription companyDescription) + { + if(ModelState.IsValid) + { + _context.Add(companyDescription); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + ViewData["Id"] = new SelectList(_context.Companies, "Id", "Name", companyDescription.Id); + return View(companyDescription); + } + + // GET: Admin/CompanyDescriptions/Edit/5 + public async Task Edit(int? id) + { + if(id == null) return NotFound(); + + CompanyDescription companyDescription = await _context.CompanyDescriptions.FindAsync(id); + if(companyDescription == null) return NotFound(); + + ViewData["Id"] = new SelectList(_context.Companies, "Id", "Name", companyDescription.Id); + return View(companyDescription); + } + + // POST: Admin/CompanyDescriptions/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("Id,CompanyId,Text")] CompanyDescription companyDescription) + { + if(id != companyDescription.Id) return NotFound(); + + if(ModelState.IsValid) + { + try + { + _context.Update(companyDescription); + await _context.SaveChangesAsync(); + } + catch(DbUpdateConcurrencyException) + { + if(!CompanyDescriptionExists(companyDescription.Id)) return NotFound(); + + throw; + } + + return RedirectToAction(nameof(Index)); + } + + ViewData["Id"] = new SelectList(_context.Companies, "Id", "Name", companyDescription.Id); + return View(companyDescription); + } + + // GET: Admin/CompanyDescriptions/Delete/5 + public async Task Delete(int? id) + { + if(id == null) return NotFound(); + + CompanyDescription companyDescription = + await _context.CompanyDescriptions.Include(c => c.Company).FirstOrDefaultAsync(m => m.Id == id); + if(companyDescription == null) return NotFound(); + + return View(companyDescription); + } + + // POST: Admin/CompanyDescriptions/Delete/5 + [HttpPost] + [ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + CompanyDescription companyDescription = await _context.CompanyDescriptions.FindAsync(id); + _context.CompanyDescriptions.Remove(companyDescription); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + bool CompanyDescriptionExists(int id) + { + return _context.CompanyDescriptions.Any(e => e.Id == id); + } + } +} \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Controllers/GpusController.cs b/cicm_web/Areas/Admin/Controllers/GpusController.cs new file mode 100644 index 00000000..2518e9aa --- /dev/null +++ b/cicm_web/Areas/Admin/Controllers/GpusController.cs @@ -0,0 +1,168 @@ +/****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : GpusController.cs +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// GPUs admin controller +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ + +using System.Linq; +using System.Threading.Tasks; +using Cicm.Database.Models; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Query; + +namespace cicm_web.Areas.Admin.Controllers +{ + [Area("Admin")] + public class GpusController : Controller + { + readonly cicmContext _context; + + public GpusController(cicmContext context) + { + _context = context; + } + + // GET: Admin/Gpus + public async Task Index() + { + IIncludableQueryable cicmContext = _context.Gpus.Include(g => g.Company); + return View(await cicmContext.ToListAsync()); + } + + // GET: Admin/Gpus/Details/5 + public async Task Details(int? id) + { + if(id == null) return NotFound(); + + Gpu gpu = await _context.Gpus.Include(g => g.Company).FirstOrDefaultAsync(m => m.Id == id); + if(gpu == null) return NotFound(); + + return View(gpu); + } + + // GET: Admin/Gpus/Create + public IActionResult Create() + { + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name"); + return View(); + } + + // POST: Admin/Gpus/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create( + [Bind("Id,Name,CompanyId,ModelCode,Introduced,Package,Process,ProcessNm,DieSize,Transistors")] + Gpu gpu) + { + if(ModelState.IsValid) + { + _context.Add(gpu); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name", gpu.CompanyId); + return View(gpu); + } + + // GET: Admin/Gpus/Edit/5 + public async Task Edit(int? id) + { + if(id == null) return NotFound(); + + Gpu gpu = await _context.Gpus.FindAsync(id); + if(gpu == null) return NotFound(); + + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name", gpu.CompanyId); + return View(gpu); + } + + // POST: Admin/Gpus/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit( + int id, [Bind("Id,Name,CompanyId,ModelCode,Introduced,Package,Process,ProcessNm,DieSize,Transistors")] + Gpu gpu) + { + if(id != gpu.Id) return NotFound(); + + if(ModelState.IsValid) + { + try + { + _context.Update(gpu); + await _context.SaveChangesAsync(); + } + catch(DbUpdateConcurrencyException) + { + if(!GpuExists(gpu.Id)) return NotFound(); + + throw; + } + + return RedirectToAction(nameof(Index)); + } + + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name", gpu.CompanyId); + return View(gpu); + } + + // GET: Admin/Gpus/Delete/5 + public async Task Delete(int? id) + { + if(id == null) return NotFound(); + + Gpu gpu = await _context.Gpus.Include(g => g.Company).FirstOrDefaultAsync(m => m.Id == id); + if(gpu == null) return NotFound(); + + return View(gpu); + } + + // POST: Admin/Gpus/Delete/5 + [HttpPost] + [ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + Gpu gpu = await _context.Gpus.FindAsync(id); + _context.Gpus.Remove(gpu); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + bool GpuExists(int id) + { + return _context.Gpus.Any(e => e.Id == id); + } + } +} \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Controllers/InstructionSetExtensionsController.cs b/cicm_web/Areas/Admin/Controllers/InstructionSetExtensionsController.cs new file mode 100644 index 00000000..f50d364f --- /dev/null +++ b/cicm_web/Areas/Admin/Controllers/InstructionSetExtensionsController.cs @@ -0,0 +1,160 @@ +/****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : InstructionSetExtensionsController.cs +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Instruction set extensions admin controller +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ + +using System.Linq; +using System.Threading.Tasks; +using Cicm.Database.Models; +using Microsoft.AspNetCore.Mvc; +using Microsoft.EntityFrameworkCore; + +namespace cicm_web.Areas.Admin.Controllers +{ + [Area("Admin")] + public class InstructionSetExtensionsController : Controller + { + readonly cicmContext _context; + + public InstructionSetExtensionsController(cicmContext context) + { + _context = context; + } + + // GET: Admin/InstructionSetExtensions + public async Task Index() + { + return View(await _context.InstructionSetExtensions.ToListAsync()); + } + + // GET: Admin/InstructionSetExtensions/Details/5 + public async Task Details(int? id) + { + if(id == null) return NotFound(); + + InstructionSetExtension instructionSetExtension = + await _context.InstructionSetExtensions.FirstOrDefaultAsync(m => m.Id == id); + if(instructionSetExtension == null) return NotFound(); + + return View(instructionSetExtension); + } + + // GET: Admin/InstructionSetExtensions/Create + public IActionResult Create() + { + return View(); + } + + // POST: Admin/InstructionSetExtensions/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("Id,Extension")] InstructionSetExtension instructionSetExtension) + { + if(ModelState.IsValid) + { + _context.Add(instructionSetExtension); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + return View(instructionSetExtension); + } + + // GET: Admin/InstructionSetExtensions/Edit/5 + public async Task Edit(int? id) + { + if(id == null) return NotFound(); + + InstructionSetExtension instructionSetExtension = await _context.InstructionSetExtensions.FindAsync(id); + if(instructionSetExtension == null) return NotFound(); + + return View(instructionSetExtension); + } + + // POST: Admin/InstructionSetExtensions/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit( + int id, [Bind("Id,Extension")] InstructionSetExtension instructionSetExtension) + { + if(id != instructionSetExtension.Id) return NotFound(); + + if(ModelState.IsValid) + { + try + { + _context.Update(instructionSetExtension); + await _context.SaveChangesAsync(); + } + catch(DbUpdateConcurrencyException) + { + if(!InstructionSetExtensionExists(instructionSetExtension.Id)) return NotFound(); + + throw; + } + + return RedirectToAction(nameof(Index)); + } + + return View(instructionSetExtension); + } + + // GET: Admin/InstructionSetExtensions/Delete/5 + public async Task Delete(int? id) + { + if(id == null) return NotFound(); + + InstructionSetExtension instructionSetExtension = + await _context.InstructionSetExtensions.FirstOrDefaultAsync(m => m.Id == id); + if(instructionSetExtension == null) return NotFound(); + + return View(instructionSetExtension); + } + + // POST: Admin/InstructionSetExtensions/Delete/5 + [HttpPost] + [ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + InstructionSetExtension instructionSetExtension = await _context.InstructionSetExtensions.FindAsync(id); + _context.InstructionSetExtensions.Remove(instructionSetExtension); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + bool InstructionSetExtensionExists(int id) + { + return _context.InstructionSetExtensions.Any(e => e.Id == id); + } + } +} \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Controllers/InstructionSetsController.cs b/cicm_web/Areas/Admin/Controllers/InstructionSetsController.cs new file mode 100644 index 00000000..617a1ca9 --- /dev/null +++ b/cicm_web/Areas/Admin/Controllers/InstructionSetsController.cs @@ -0,0 +1,157 @@ +/****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : InstructionSetsController.cs +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Instruction sets admin controller +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ + +using System.Linq; +using System.Threading.Tasks; +using Cicm.Database.Models; +using Microsoft.AspNetCore.Mvc; +using Microsoft.EntityFrameworkCore; + +namespace cicm_web.Areas.Admin.Controllers +{ + [Area("Admin")] + public class InstructionSetsController : Controller + { + readonly cicmContext _context; + + public InstructionSetsController(cicmContext context) + { + _context = context; + } + + // GET: Admin/InstructionSets + public async Task Index() + { + return View(await _context.InstructionSets.ToListAsync()); + } + + // GET: Admin/InstructionSets/Details/5 + public async Task Details(int? id) + { + if(id == null) return NotFound(); + + InstructionSet instructionSet = await _context.InstructionSets.FirstOrDefaultAsync(m => m.Id == id); + if(instructionSet == null) return NotFound(); + + return View(instructionSet); + } + + // GET: Admin/InstructionSets/Create + public IActionResult Create() + { + return View(); + } + + // POST: Admin/InstructionSets/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("Id,Name")] InstructionSet instructionSet) + { + if(ModelState.IsValid) + { + _context.Add(instructionSet); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + return View(instructionSet); + } + + // GET: Admin/InstructionSets/Edit/5 + public async Task Edit(int? id) + { + if(id == null) return NotFound(); + + InstructionSet instructionSet = await _context.InstructionSets.FindAsync(id); + if(instructionSet == null) return NotFound(); + + return View(instructionSet); + } + + // POST: Admin/InstructionSets/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("Id,Name")] InstructionSet instructionSet) + { + if(id != instructionSet.Id) return NotFound(); + + if(ModelState.IsValid) + { + try + { + _context.Update(instructionSet); + await _context.SaveChangesAsync(); + } + catch(DbUpdateConcurrencyException) + { + if(!InstructionSetExists(instructionSet.Id)) return NotFound(); + + throw; + } + + return RedirectToAction(nameof(Index)); + } + + return View(instructionSet); + } + + // GET: Admin/InstructionSets/Delete/5 + public async Task Delete(int? id) + { + if(id == null) return NotFound(); + + InstructionSet instructionSet = await _context.InstructionSets.FirstOrDefaultAsync(m => m.Id == id); + if(instructionSet == null) return NotFound(); + + return View(instructionSet); + } + + // POST: Admin/InstructionSets/Delete/5 + [HttpPost] + [ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + InstructionSet instructionSet = await _context.InstructionSets.FindAsync(id); + _context.InstructionSets.Remove(instructionSet); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + bool InstructionSetExists(int id) + { + return _context.InstructionSets.Any(e => e.Id == id); + } + } +} \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Controllers/MachineFamiliesController.cs b/cicm_web/Areas/Admin/Controllers/MachineFamiliesController.cs new file mode 100644 index 00000000..923be28b --- /dev/null +++ b/cicm_web/Areas/Admin/Controllers/MachineFamiliesController.cs @@ -0,0 +1,166 @@ +/****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : MachineFamiliesController.cs +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Machine families admin controller +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ + +using System.Linq; +using System.Threading.Tasks; +using Cicm.Database.Models; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Query; + +namespace cicm_web.Areas.Admin.Controllers +{ + [Area("Admin")] + public class MachineFamiliesController : Controller + { + readonly cicmContext _context; + + public MachineFamiliesController(cicmContext context) + { + _context = context; + } + + // GET: Admin/MachineFamilies + public async Task Index() + { + IIncludableQueryable cicmContext = _context.MachineFamilies.Include(m => m.Company); + return View(await cicmContext.ToListAsync()); + } + + // GET: Admin/MachineFamilies/Details/5 + public async Task Details(int? id) + { + if(id == null) return NotFound(); + + MachineFamily machineFamily = + await _context.MachineFamilies.Include(m => m.Company).FirstOrDefaultAsync(m => m.Id == id); + if(machineFamily == null) return NotFound(); + + return View(machineFamily); + } + + // GET: Admin/MachineFamilies/Create + public IActionResult Create() + { + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name"); + return View(); + } + + // POST: Admin/MachineFamilies/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("Id,CompanyId,Name")] MachineFamily machineFamily) + { + if(ModelState.IsValid) + { + _context.Add(machineFamily); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name", machineFamily.CompanyId); + return View(machineFamily); + } + + // GET: Admin/MachineFamilies/Edit/5 + public async Task Edit(int? id) + { + if(id == null) return NotFound(); + + MachineFamily machineFamily = await _context.MachineFamilies.FindAsync(id); + if(machineFamily == null) return NotFound(); + + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name", machineFamily.CompanyId); + return View(machineFamily); + } + + // POST: Admin/MachineFamilies/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("Id,CompanyId,Name")] MachineFamily machineFamily) + { + if(id != machineFamily.Id) return NotFound(); + + if(ModelState.IsValid) + { + try + { + _context.Update(machineFamily); + await _context.SaveChangesAsync(); + } + catch(DbUpdateConcurrencyException) + { + if(!MachineFamilyExists(machineFamily.Id)) return NotFound(); + + throw; + } + + return RedirectToAction(nameof(Index)); + } + + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name", machineFamily.CompanyId); + return View(machineFamily); + } + + // GET: Admin/MachineFamilies/Delete/5 + public async Task Delete(int? id) + { + if(id == null) return NotFound(); + + MachineFamily machineFamily = + await _context.MachineFamilies.Include(m => m.Company).FirstOrDefaultAsync(m => m.Id == id); + if(machineFamily == null) return NotFound(); + + return View(machineFamily); + } + + // POST: Admin/MachineFamilies/Delete/5 + [HttpPost] + [ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + MachineFamily machineFamily = await _context.MachineFamilies.FindAsync(id); + _context.MachineFamilies.Remove(machineFamily); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + bool MachineFamilyExists(int id) + { + return _context.MachineFamilies.Any(e => e.Id == id); + } + } +} \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Controllers/MachinesController.cs b/cicm_web/Areas/Admin/Controllers/MachinesController.cs new file mode 100644 index 00000000..43c5ca63 --- /dev/null +++ b/cicm_web/Areas/Admin/Controllers/MachinesController.cs @@ -0,0 +1,173 @@ +/****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : MachinesController.cs +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Machines admin controller +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ + +using System.Linq; +using System.Threading.Tasks; +using Cicm.Database.Models; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Query; + +namespace cicm_web.Areas.Admin.Controllers +{ + [Area("Admin")] + public class MachinesController : Controller + { + readonly cicmContext _context; + + public MachinesController(cicmContext context) + { + _context = context; + } + + // GET: Admin/Machines + public async Task Index() + { + IIncludableQueryable cicmContext = + _context.Machines.Include(m => m.Company).Include(m => m.Family); + return View(await cicmContext.ToListAsync()); + } + + // GET: Admin/Machines/Details/5 + public async Task Details(int? id) + { + if(id == null) return NotFound(); + + Machine machine = await _context.Machines.Include(m => m.Company).Include(m => m.Family) + .FirstOrDefaultAsync(m => m.Id == id); + if(machine == null) return NotFound(); + + return View(machine); + } + + // GET: Admin/Machines/Create + public IActionResult Create() + { + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name"); + ViewData["FamilyId"] = new SelectList(_context.MachineFamilies, "Id", "Name"); + return View(); + } + + // POST: Admin/Machines/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("Id,CompanyId,Name,Type,Introduced,FamilyId,Model")] + Machine machine) + { + if(ModelState.IsValid) + { + _context.Add(machine); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name", machine.CompanyId); + ViewData["FamilyId"] = new SelectList(_context.MachineFamilies, "Id", "Name", machine.FamilyId); + return View(machine); + } + + // GET: Admin/Machines/Edit/5 + public async Task Edit(int? id) + { + if(id == null) return NotFound(); + + Machine machine = await _context.Machines.FindAsync(id); + if(machine == null) return NotFound(); + + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name", machine.CompanyId); + ViewData["FamilyId"] = new SelectList(_context.MachineFamilies, "Id", "Name", machine.FamilyId); + return View(machine); + } + + // POST: Admin/Machines/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("Id,CompanyId,Name,Type,Introduced,FamilyId,Model")] + Machine machine) + { + if(id != machine.Id) return NotFound(); + + if(ModelState.IsValid) + { + try + { + _context.Update(machine); + await _context.SaveChangesAsync(); + } + catch(DbUpdateConcurrencyException) + { + if(!MachineExists(machine.Id)) return NotFound(); + + throw; + } + + return RedirectToAction(nameof(Index)); + } + + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name", machine.CompanyId); + ViewData["FamilyId"] = new SelectList(_context.MachineFamilies, "Id", "Name", machine.FamilyId); + return View(machine); + } + + // GET: Admin/Machines/Delete/5 + public async Task Delete(int? id) + { + if(id == null) return NotFound(); + + Machine machine = await _context.Machines.Include(m => m.Company).Include(m => m.Family) + .FirstOrDefaultAsync(m => m.Id == id); + if(machine == null) return NotFound(); + + return View(machine); + } + + // POST: Admin/Machines/Delete/5 + [HttpPost] + [ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + Machine machine = await _context.Machines.FindAsync(id); + _context.Machines.Remove(machine); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + bool MachineExists(int id) + { + return _context.Machines.Any(e => e.Id == id); + } + } +} \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Controllers/MemoryByMachinesController.cs b/cicm_web/Areas/Admin/Controllers/MemoryByMachinesController.cs new file mode 100644 index 00000000..da458fae --- /dev/null +++ b/cicm_web/Areas/Admin/Controllers/MemoryByMachinesController.cs @@ -0,0 +1,169 @@ +/****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : MemoryByMachinesController.cs +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Memory by machines admin controller +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ + +using System.Linq; +using System.Threading.Tasks; +using Cicm.Database.Models; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Query; + +namespace cicm_web.Areas.Admin.Controllers +{ + [Area("Admin")] + public class MemoryByMachinesController : Controller + { + readonly cicmContext _context; + + public MemoryByMachinesController(cicmContext context) + { + _context = context; + } + + // GET: Admin/MemoryByMachines + public async Task Index() + { + IIncludableQueryable cicmContext = + _context.MemoryByMachine.Include(m => m.Machine); + return View(await cicmContext.ToListAsync()); + } + + // GET: Admin/MemoryByMachines/Details/5 + public async Task Details(long? id) + { + if(id == null) return NotFound(); + + MemoryByMachine memoryByMachine = + await _context.MemoryByMachine.Include(m => m.Machine).FirstOrDefaultAsync(m => m.Id == id); + if(memoryByMachine == null) return NotFound(); + + return View(memoryByMachine); + } + + // GET: Admin/MemoryByMachines/Create + public IActionResult Create() + { + ViewData["MachineId"] = new SelectList(_context.Machines, "Id", "Name"); + return View(); + } + + // POST: Admin/MemoryByMachines/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("MachineId,Type,Usage,Size,Speed,Id")] + MemoryByMachine memoryByMachine) + { + if(ModelState.IsValid) + { + _context.Add(memoryByMachine); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + ViewData["MachineId"] = new SelectList(_context.Machines, "Id", "Name", memoryByMachine.MachineId); + return View(memoryByMachine); + } + + // GET: Admin/MemoryByMachines/Edit/5 + public async Task Edit(long? id) + { + if(id == null) return NotFound(); + + MemoryByMachine memoryByMachine = await _context.MemoryByMachine.FindAsync(id); + if(memoryByMachine == null) return NotFound(); + + ViewData["MachineId"] = new SelectList(_context.Machines, "Id", "Name", memoryByMachine.MachineId); + return View(memoryByMachine); + } + + // POST: Admin/MemoryByMachines/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(long id, [Bind("MachineId,Type,Usage,Size,Speed,Id")] + MemoryByMachine memoryByMachine) + { + if(id != memoryByMachine.Id) return NotFound(); + + if(ModelState.IsValid) + { + try + { + _context.Update(memoryByMachine); + await _context.SaveChangesAsync(); + } + catch(DbUpdateConcurrencyException) + { + if(!MemoryByMachineExists(memoryByMachine.Id)) return NotFound(); + + throw; + } + + return RedirectToAction(nameof(Index)); + } + + ViewData["MachineId"] = new SelectList(_context.Machines, "Id", "Name", memoryByMachine.MachineId); + return View(memoryByMachine); + } + + // GET: Admin/MemoryByMachines/Delete/5 + public async Task Delete(long? id) + { + if(id == null) return NotFound(); + + MemoryByMachine memoryByMachine = + await _context.MemoryByMachine.Include(m => m.Machine).FirstOrDefaultAsync(m => m.Id == id); + if(memoryByMachine == null) return NotFound(); + + return View(memoryByMachine); + } + + // POST: Admin/MemoryByMachines/Delete/5 + [HttpPost] + [ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(long id) + { + MemoryByMachine memoryByMachine = await _context.MemoryByMachine.FindAsync(id); + _context.MemoryByMachine.Remove(memoryByMachine); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + bool MemoryByMachineExists(long id) + { + return _context.MemoryByMachine.Any(e => e.Id == id); + } + } +} \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Controllers/NewsController.cs b/cicm_web/Areas/Admin/Controllers/NewsController.cs new file mode 100644 index 00000000..99c0be4f --- /dev/null +++ b/cicm_web/Areas/Admin/Controllers/NewsController.cs @@ -0,0 +1,157 @@ +/****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : NewsController.cs +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// News admin controller +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ + +using System.Linq; +using System.Threading.Tasks; +using Cicm.Database.Models; +using Microsoft.AspNetCore.Mvc; +using Microsoft.EntityFrameworkCore; + +namespace cicm_web.Areas.Admin.Controllers +{ + [Area("Admin")] + public class NewsController : Controller + { + readonly cicmContext _context; + + public NewsController(cicmContext context) + { + _context = context; + } + + // GET: Admin/News + public async Task Index() + { + return View(await _context.News.ToListAsync()); + } + + // GET: Admin/News/Details/5 + public async Task Details(int? id) + { + if(id == null) return NotFound(); + + News news = await _context.News.FirstOrDefaultAsync(m => m.Id == id); + if(news == null) return NotFound(); + + return View(news); + } + + // GET: Admin/News/Create + public IActionResult Create() + { + return View(); + } + + // POST: Admin/News/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("Id,Date,Type,AddedId")] News news) + { + if(ModelState.IsValid) + { + _context.Add(news); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + return View(news); + } + + // GET: Admin/News/Edit/5 + public async Task Edit(int? id) + { + if(id == null) return NotFound(); + + News news = await _context.News.FindAsync(id); + if(news == null) return NotFound(); + + return View(news); + } + + // POST: Admin/News/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("Id,Date,Type,AddedId")] News news) + { + if(id != news.Id) return NotFound(); + + if(ModelState.IsValid) + { + try + { + _context.Update(news); + await _context.SaveChangesAsync(); + } + catch(DbUpdateConcurrencyException) + { + if(!NewsExists(news.Id)) return NotFound(); + + throw; + } + + return RedirectToAction(nameof(Index)); + } + + return View(news); + } + + // GET: Admin/News/Delete/5 + public async Task Delete(int? id) + { + if(id == null) return NotFound(); + + News news = await _context.News.FirstOrDefaultAsync(m => m.Id == id); + if(news == null) return NotFound(); + + return View(news); + } + + // POST: Admin/News/Delete/5 + [HttpPost] + [ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + News news = await _context.News.FindAsync(id); + _context.News.Remove(news); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + bool NewsExists(int id) + { + return _context.News.Any(e => e.Id == id); + } + } +} \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Controllers/ProcessorsByMachinesController.cs b/cicm_web/Areas/Admin/Controllers/ProcessorsByMachinesController.cs new file mode 100644 index 00000000..1b5a8126 --- /dev/null +++ b/cicm_web/Areas/Admin/Controllers/ProcessorsByMachinesController.cs @@ -0,0 +1,178 @@ +/****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : ProcessorsByMachinesController.cs +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Processors by machine admin controller +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ + +using System.Linq; +using System.Threading.Tasks; +using Cicm.Database.Models; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Query; + +namespace cicm_web.Areas.Admin.Controllers +{ + [Area("Admin")] + public class ProcessorsByMachinesController : Controller + { + readonly cicmContext _context; + + public ProcessorsByMachinesController(cicmContext context) + { + _context = context; + } + + // GET: Admin/ProcessorsByMachines + public async Task Index() + { + IIncludableQueryable cicmContext = + _context.ProcessorsByMachine.Include(p => p.Machine).Include(p => p.Processor); + return View(await cicmContext.ToListAsync()); + } + + // GET: Admin/ProcessorsByMachines/Details/5 + public async Task Details(long? id) + { + if(id == null) return NotFound(); + + ProcessorsByMachine processorsByMachine = + await _context.ProcessorsByMachine.Include(p => p.Machine).Include(p => p.Processor) + .FirstOrDefaultAsync(m => m.Id == id); + if(processorsByMachine == null) return NotFound(); + + return View(processorsByMachine); + } + + // GET: Admin/ProcessorsByMachines/Create + public IActionResult Create() + { + ViewData["MachineId"] = new SelectList(_context.Machines, "Id", "Name"); + ViewData["ProcessorId"] = new SelectList(_context.Processors, "Id", "Name"); + return View(); + } + + // POST: Admin/ProcessorsByMachines/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("ProcessorId,MachineId,Speed,Id")] + ProcessorsByMachine processorsByMachine) + { + if(ModelState.IsValid) + { + _context.Add(processorsByMachine); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + ViewData["MachineId"] = new SelectList(_context.Machines, "Id", "Name", processorsByMachine.MachineId); + ViewData["ProcessorId"] = + new SelectList(_context.Processors, "Id", "Name", processorsByMachine.ProcessorId); + return View(processorsByMachine); + } + + // GET: Admin/ProcessorsByMachines/Edit/5 + public async Task Edit(long? id) + { + if(id == null) return NotFound(); + + ProcessorsByMachine processorsByMachine = await _context.ProcessorsByMachine.FindAsync(id); + if(processorsByMachine == null) return NotFound(); + + ViewData["MachineId"] = new SelectList(_context.Machines, "Id", "Name", processorsByMachine.MachineId); + ViewData["ProcessorId"] = + new SelectList(_context.Processors, "Id", "Name", processorsByMachine.ProcessorId); + return View(processorsByMachine); + } + + // POST: Admin/ProcessorsByMachines/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(long id, [Bind("ProcessorId,MachineId,Speed,Id")] + ProcessorsByMachine processorsByMachine) + { + if(id != processorsByMachine.Id) return NotFound(); + + if(ModelState.IsValid) + { + try + { + _context.Update(processorsByMachine); + await _context.SaveChangesAsync(); + } + catch(DbUpdateConcurrencyException) + { + if(!ProcessorsByMachineExists(processorsByMachine.Id)) return NotFound(); + + throw; + } + + return RedirectToAction(nameof(Index)); + } + + ViewData["MachineId"] = new SelectList(_context.Machines, "Id", "Name", processorsByMachine.MachineId); + ViewData["ProcessorId"] = + new SelectList(_context.Processors, "Id", "Name", processorsByMachine.ProcessorId); + return View(processorsByMachine); + } + + // GET: Admin/ProcessorsByMachines/Delete/5 + public async Task Delete(long? id) + { + if(id == null) return NotFound(); + + ProcessorsByMachine processorsByMachine = + await _context.ProcessorsByMachine.Include(p => p.Machine).Include(p => p.Processor) + .FirstOrDefaultAsync(m => m.Id == id); + if(processorsByMachine == null) return NotFound(); + + return View(processorsByMachine); + } + + // POST: Admin/ProcessorsByMachines/Delete/5 + [HttpPost] + [ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(long id) + { + ProcessorsByMachine processorsByMachine = await _context.ProcessorsByMachine.FindAsync(id); + _context.ProcessorsByMachine.Remove(processorsByMachine); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + bool ProcessorsByMachineExists(long id) + { + return _context.ProcessorsByMachine.Any(e => e.Id == id); + } + } +} \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Controllers/ProcessorsController.cs b/cicm_web/Areas/Admin/Controllers/ProcessorsController.cs new file mode 100644 index 00000000..c98f7223 --- /dev/null +++ b/cicm_web/Areas/Admin/Controllers/ProcessorsController.cs @@ -0,0 +1,180 @@ +/****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : ProcessorsController.cs +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Processors admin controller +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ + +using System.Linq; +using System.Threading.Tasks; +using Cicm.Database.Models; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Query; + +namespace cicm_web.Areas.Admin.Controllers +{ + [Area("Admin")] + public class ProcessorsController : Controller + { + readonly cicmContext _context; + + public ProcessorsController(cicmContext context) + { + _context = context; + } + + // GET: Admin/Processors + public async Task Index() + { + IIncludableQueryable cicmContext = + _context.Processors.Include(p => p.Company).Include(p => p.InstructionSet); + return View(await cicmContext.ToListAsync()); + } + + // GET: Admin/Processors/Details/5 + public async Task Details(int? id) + { + if(id == null) return NotFound(); + + Processor processor = await _context.Processors.Include(p => p.Company).Include(p => p.InstructionSet) + .FirstOrDefaultAsync(m => m.Id == id); + if(processor == null) return NotFound(); + + return View(processor); + } + + // GET: Admin/Processors/Create + public IActionResult Create() + { + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name"); + ViewData["InstructionSetId"] = new SelectList(_context.InstructionSets, "Id", "Name"); + return View(); + } + + // POST: Admin/Processors/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create( + [Bind( + "Id,Name,CompanyId,ModelCode,Introduced,InstructionSetId,Speed,Package,Gprs,GprSize,Fprs,FprSize,Cores,ThreadsPerCore,Process,ProcessNm,DieSize,Transistors,DataBus,AddrBus,SimdRegisters,SimdSize,L1Instruction,L1Data,L2,L3")] + Processor processor) + { + if(ModelState.IsValid) + { + _context.Add(processor); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name", processor.CompanyId); + ViewData["InstructionSetId"] = + new SelectList(_context.InstructionSets, "Id", "Name", processor.InstructionSetId); + return View(processor); + } + + // GET: Admin/Processors/Edit/5 + public async Task Edit(int? id) + { + if(id == null) return NotFound(); + + Processor processor = await _context.Processors.FindAsync(id); + if(processor == null) return NotFound(); + + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name", processor.CompanyId); + ViewData["InstructionSetId"] = + new SelectList(_context.InstructionSets, "Id", "Name", processor.InstructionSetId); + return View(processor); + } + + // POST: Admin/Processors/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit( + int id, [Bind( + "Id,Name,CompanyId,ModelCode,Introduced,InstructionSetId,Speed,Package,Gprs,GprSize,Fprs,FprSize,Cores,ThreadsPerCore,Process,ProcessNm,DieSize,Transistors,DataBus,AddrBus,SimdRegisters,SimdSize,L1Instruction,L1Data,L2,L3")] + Processor processor) + { + if(id != processor.Id) return NotFound(); + + if(ModelState.IsValid) + { + try + { + _context.Update(processor); + await _context.SaveChangesAsync(); + } + catch(DbUpdateConcurrencyException) + { + if(!ProcessorExists(processor.Id)) return NotFound(); + + throw; + } + + return RedirectToAction(nameof(Index)); + } + + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name", processor.CompanyId); + ViewData["InstructionSetId"] = + new SelectList(_context.InstructionSets, "Id", "Name", processor.InstructionSetId); + return View(processor); + } + + // GET: Admin/Processors/Delete/5 + public async Task Delete(int? id) + { + if(id == null) return NotFound(); + + Processor processor = await _context.Processors.Include(p => p.Company).Include(p => p.InstructionSet) + .FirstOrDefaultAsync(m => m.Id == id); + if(processor == null) return NotFound(); + + return View(processor); + } + + // POST: Admin/Processors/Delete/5 + [HttpPost] + [ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + Processor processor = await _context.Processors.FindAsync(id); + _context.Processors.Remove(processor); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + bool ProcessorExists(int id) + { + return _context.Processors.Any(e => e.Id == id); + } + } +} \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Controllers/ResolutionsController.cs b/cicm_web/Areas/Admin/Controllers/ResolutionsController.cs new file mode 100644 index 00000000..0d13173b --- /dev/null +++ b/cicm_web/Areas/Admin/Controllers/ResolutionsController.cs @@ -0,0 +1,159 @@ +/****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : ResolutionsController.cs +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Resolutions admin controller +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ + +using System.Linq; +using System.Threading.Tasks; +using Cicm.Database.Models; +using Microsoft.AspNetCore.Mvc; +using Microsoft.EntityFrameworkCore; + +namespace cicm_web.Areas.Admin.Controllers +{ + [Area("Admin")] + public class ResolutionsController : Controller + { + readonly cicmContext _context; + + public ResolutionsController(cicmContext context) + { + _context = context; + } + + // GET: Admin/Resolutions + public async Task Index() + { + return View(await _context.Resolutions.ToListAsync()); + } + + // GET: Admin/Resolutions/Details/5 + public async Task Details(int? id) + { + if(id == null) return NotFound(); + + Resolution resolution = await _context.Resolutions.FirstOrDefaultAsync(m => m.Id == id); + if(resolution == null) return NotFound(); + + return View(resolution); + } + + // GET: Admin/Resolutions/Create + public IActionResult Create() + { + return View(); + } + + // POST: Admin/Resolutions/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("Id,Width,Height,Colors,Palette,Chars")] + Resolution resolution) + { + if(ModelState.IsValid) + { + _context.Add(resolution); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + return View(resolution); + } + + // GET: Admin/Resolutions/Edit/5 + public async Task Edit(int? id) + { + if(id == null) return NotFound(); + + Resolution resolution = await _context.Resolutions.FindAsync(id); + if(resolution == null) return NotFound(); + + return View(resolution); + } + + // POST: Admin/Resolutions/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("Id,Width,Height,Colors,Palette,Chars")] + Resolution resolution) + { + if(id != resolution.Id) return NotFound(); + + if(ModelState.IsValid) + { + try + { + _context.Update(resolution); + await _context.SaveChangesAsync(); + } + catch(DbUpdateConcurrencyException) + { + if(!ResolutionExists(resolution.Id)) return NotFound(); + + throw; + } + + return RedirectToAction(nameof(Index)); + } + + return View(resolution); + } + + // GET: Admin/Resolutions/Delete/5 + public async Task Delete(int? id) + { + if(id == null) return NotFound(); + + Resolution resolution = await _context.Resolutions.FirstOrDefaultAsync(m => m.Id == id); + if(resolution == null) return NotFound(); + + return View(resolution); + } + + // POST: Admin/Resolutions/Delete/5 + [HttpPost] + [ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + Resolution resolution = await _context.Resolutions.FindAsync(id); + _context.Resolutions.Remove(resolution); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + bool ResolutionExists(int id) + { + return _context.Resolutions.Any(e => e.Id == id); + } + } +} \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Controllers/SoundSynthsController.cs b/cicm_web/Areas/Admin/Controllers/SoundSynthsController.cs new file mode 100644 index 00000000..85127521 --- /dev/null +++ b/cicm_web/Areas/Admin/Controllers/SoundSynthsController.cs @@ -0,0 +1,170 @@ +/****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : SoundSynthsController.cs +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Sound synths admin controller +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ + +using System.Linq; +using System.Threading.Tasks; +using Cicm.Database.Models; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Query; + +namespace cicm_web.Areas.Admin.Controllers +{ + [Area("Admin")] + public class SoundSynthsController : Controller + { + readonly cicmContext _context; + + public SoundSynthsController(cicmContext context) + { + _context = context; + } + + // GET: Admin/SoundSynths + public async Task Index() + { + IIncludableQueryable cicmContext = _context.SoundSynths.Include(s => s.Company); + return View(await cicmContext.ToListAsync()); + } + + // GET: Admin/SoundSynths/Details/5 + public async Task Details(int? id) + { + if(id == null) return NotFound(); + + SoundSynth soundSynth = + await _context.SoundSynths.Include(s => s.Company).FirstOrDefaultAsync(m => m.Id == id); + if(soundSynth == null) return NotFound(); + + return View(soundSynth); + } + + // GET: Admin/SoundSynths/Create + public IActionResult Create() + { + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name"); + return View(); + } + + // POST: Admin/SoundSynths/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create( + [Bind("Id,Name,CompanyId,ModelCode,Introduced,Voices,Frequency,Depth,SquareWave,WhiteNoise,Type")] + SoundSynth soundSynth) + { + if(ModelState.IsValid) + { + _context.Add(soundSynth); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name", soundSynth.CompanyId); + return View(soundSynth); + } + + // GET: Admin/SoundSynths/Edit/5 + public async Task Edit(int? id) + { + if(id == null) return NotFound(); + + SoundSynth soundSynth = await _context.SoundSynths.FindAsync(id); + if(soundSynth == null) return NotFound(); + + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name", soundSynth.CompanyId); + return View(soundSynth); + } + + // POST: Admin/SoundSynths/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit( + int id, [Bind("Id,Name,CompanyId,ModelCode,Introduced,Voices,Frequency,Depth,SquareWave,WhiteNoise,Type")] + SoundSynth soundSynth) + { + if(id != soundSynth.Id) return NotFound(); + + if(ModelState.IsValid) + { + try + { + _context.Update(soundSynth); + await _context.SaveChangesAsync(); + } + catch(DbUpdateConcurrencyException) + { + if(!SoundSynthExists(soundSynth.Id)) return NotFound(); + + throw; + } + + return RedirectToAction(nameof(Index)); + } + + ViewData["CompanyId"] = new SelectList(_context.Companies, "Id", "Name", soundSynth.CompanyId); + return View(soundSynth); + } + + // GET: Admin/SoundSynths/Delete/5 + public async Task Delete(int? id) + { + if(id == null) return NotFound(); + + SoundSynth soundSynth = + await _context.SoundSynths.Include(s => s.Company).FirstOrDefaultAsync(m => m.Id == id); + if(soundSynth == null) return NotFound(); + + return View(soundSynth); + } + + // POST: Admin/SoundSynths/Delete/5 + [HttpPost] + [ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + SoundSynth soundSynth = await _context.SoundSynths.FindAsync(id); + _context.SoundSynths.Remove(soundSynth); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + bool SoundSynthExists(int id) + { + return _context.SoundSynths.Any(e => e.Id == id); + } + } +} \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Controllers/StorageByMachinesController.cs b/cicm_web/Areas/Admin/Controllers/StorageByMachinesController.cs new file mode 100644 index 00000000..d8553c73 --- /dev/null +++ b/cicm_web/Areas/Admin/Controllers/StorageByMachinesController.cs @@ -0,0 +1,169 @@ +/****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : StorageByMachinesController.cs +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Storage by machines admin controller +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ + +using System.Linq; +using System.Threading.Tasks; +using Cicm.Database.Models; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Query; + +namespace cicm_web.Areas.Admin.Controllers +{ + [Area("Admin")] + public class StorageByMachinesController : Controller + { + readonly cicmContext _context; + + public StorageByMachinesController(cicmContext context) + { + _context = context; + } + + // GET: Admin/StorageByMachines + public async Task Index() + { + IIncludableQueryable cicmContext = + _context.StorageByMachine.Include(s => s.Machine); + return View(await cicmContext.ToListAsync()); + } + + // GET: Admin/StorageByMachines/Details/5 + public async Task Details(long? id) + { + if(id == null) return NotFound(); + + StorageByMachine storageByMachine = + await _context.StorageByMachine.Include(s => s.Machine).FirstOrDefaultAsync(m => m.Id == id); + if(storageByMachine == null) return NotFound(); + + return View(storageByMachine); + } + + // GET: Admin/StorageByMachines/Create + public IActionResult Create() + { + ViewData["MachineId"] = new SelectList(_context.Machines, "Id", "Name"); + return View(); + } + + // POST: Admin/StorageByMachines/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("MachineId,Type,Interface,Capacity,Id")] + StorageByMachine storageByMachine) + { + if(ModelState.IsValid) + { + _context.Add(storageByMachine); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + ViewData["MachineId"] = new SelectList(_context.Machines, "Id", "Name", storageByMachine.MachineId); + return View(storageByMachine); + } + + // GET: Admin/StorageByMachines/Edit/5 + public async Task Edit(long? id) + { + if(id == null) return NotFound(); + + StorageByMachine storageByMachine = await _context.StorageByMachine.FindAsync(id); + if(storageByMachine == null) return NotFound(); + + ViewData["MachineId"] = new SelectList(_context.Machines, "Id", "Name", storageByMachine.MachineId); + return View(storageByMachine); + } + + // POST: Admin/StorageByMachines/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(long id, [Bind("MachineId,Type,Interface,Capacity,Id")] + StorageByMachine storageByMachine) + { + if(id != storageByMachine.Id) return NotFound(); + + if(ModelState.IsValid) + { + try + { + _context.Update(storageByMachine); + await _context.SaveChangesAsync(); + } + catch(DbUpdateConcurrencyException) + { + if(!StorageByMachineExists(storageByMachine.Id)) return NotFound(); + + throw; + } + + return RedirectToAction(nameof(Index)); + } + + ViewData["MachineId"] = new SelectList(_context.Machines, "Id", "Name", storageByMachine.MachineId); + return View(storageByMachine); + } + + // GET: Admin/StorageByMachines/Delete/5 + public async Task Delete(long? id) + { + if(id == null) return NotFound(); + + StorageByMachine storageByMachine = + await _context.StorageByMachine.Include(s => s.Machine).FirstOrDefaultAsync(m => m.Id == id); + if(storageByMachine == null) return NotFound(); + + return View(storageByMachine); + } + + // POST: Admin/StorageByMachines/Delete/5 + [HttpPost] + [ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(long id) + { + StorageByMachine storageByMachine = await _context.StorageByMachine.FindAsync(id); + _context.StorageByMachine.Remove(storageByMachine); + await _context.SaveChangesAsync(); + return RedirectToAction(nameof(Index)); + } + + bool StorageByMachineExists(long id) + { + return _context.StorageByMachine.Any(e => e.Id == id); + } + } +} \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Views/BrowserTests/Create.cshtml b/cicm_web/Areas/Admin/Views/BrowserTests/Create.cshtml new file mode 100644 index 00000000..ec2c67f1 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/BrowserTests/Create.cshtml @@ -0,0 +1,59 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Create.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view create +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.BrowserTest + +@{ + ViewData["Title"] = "Create"; +} + +

Create

+ +

BrowserTest

+
+
+
+
+
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/BrowserTests/Delete.cshtml b/cicm_web/Areas/Admin/Views/BrowserTests/Delete.cshtml new file mode 100644 index 00000000..1dbdca75 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/BrowserTests/Delete.cshtml @@ -0,0 +1,148 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Delete.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view delete +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.BrowserTest + +@{ + ViewData["Title"] = "Delete"; +} + +

Delete

+ +

Are you sure you want to delete this?

+
+

BrowserTest

+
+
+
+ @Html.DisplayNameFor(model => model.UserAgent) +
+
+ @Html.DisplayFor(model => model.UserAgent) +
+
+ @Html.DisplayNameFor(model => model.Browser) +
+
+ @Html.DisplayFor(model => model.Browser) +
+
+ @Html.DisplayNameFor(model => model.Version) +
+
+ @Html.DisplayFor(model => model.Version) +
+
+ @Html.DisplayNameFor(model => model.Os) +
+
+ @Html.DisplayFor(model => model.Os) +
+
+ @Html.DisplayNameFor(model => model.Platform) +
+
+ @Html.DisplayFor(model => model.Platform) +
+
+ @Html.DisplayNameFor(model => model.Gif87) +
+
+ @Html.DisplayFor(model => model.Gif87) +
+
+ @Html.DisplayNameFor(model => model.Gif89) +
+
+ @Html.DisplayFor(model => model.Gif89) +
+
+ @Html.DisplayNameFor(model => model.Jpeg) +
+
+ @Html.DisplayFor(model => model.Jpeg) +
+
+ @Html.DisplayNameFor(model => model.Png) +
+
+ @Html.DisplayFor(model => model.Png) +
+
+ @Html.DisplayNameFor(model => model.Pngt) +
+
+ @Html.DisplayFor(model => model.Pngt) +
+
+ @Html.DisplayNameFor(model => model.Agif) +
+
+ @Html.DisplayFor(model => model.Agif) +
+
+ @Html.DisplayNameFor(model => model.Table) +
+
+ @Html.DisplayFor(model => model.Table) +
+
+ @Html.DisplayNameFor(model => model.Colors) +
+
+ @Html.DisplayFor(model => model.Colors) +
+
+ @Html.DisplayNameFor(model => model.Js) +
+
+ @Html.DisplayFor(model => model.Js) +
+
+ @Html.DisplayNameFor(model => model.Frames) +
+
+ @Html.DisplayFor(model => model.Frames) +
+
+ @Html.DisplayNameFor(model => model.Flash) +
+
+ @Html.DisplayFor(model => model.Flash) +
+
+ +
+ + | + Back to List +
+
diff --git a/cicm_web/Areas/Admin/Views/BrowserTests/Details.cshtml b/cicm_web/Areas/Admin/Views/BrowserTests/Details.cshtml new file mode 100644 index 00000000..394a674e --- /dev/null +++ b/cicm_web/Areas/Admin/Views/BrowserTests/Details.cshtml @@ -0,0 +1,145 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Details.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view details +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.BrowserTest + +@{ + ViewData["Title"] = "Details"; +} + +

Details

+ +
+

BrowserTest

+
+
+
+ @Html.DisplayNameFor(model => model.UserAgent) +
+
+ @Html.DisplayFor(model => model.UserAgent) +
+
+ @Html.DisplayNameFor(model => model.Browser) +
+
+ @Html.DisplayFor(model => model.Browser) +
+
+ @Html.DisplayNameFor(model => model.Version) +
+
+ @Html.DisplayFor(model => model.Version) +
+
+ @Html.DisplayNameFor(model => model.Os) +
+
+ @Html.DisplayFor(model => model.Os) +
+
+ @Html.DisplayNameFor(model => model.Platform) +
+
+ @Html.DisplayFor(model => model.Platform) +
+
+ @Html.DisplayNameFor(model => model.Gif87) +
+
+ @Html.DisplayFor(model => model.Gif87) +
+
+ @Html.DisplayNameFor(model => model.Gif89) +
+
+ @Html.DisplayFor(model => model.Gif89) +
+
+ @Html.DisplayNameFor(model => model.Jpeg) +
+
+ @Html.DisplayFor(model => model.Jpeg) +
+
+ @Html.DisplayNameFor(model => model.Png) +
+
+ @Html.DisplayFor(model => model.Png) +
+
+ @Html.DisplayNameFor(model => model.Pngt) +
+
+ @Html.DisplayFor(model => model.Pngt) +
+
+ @Html.DisplayNameFor(model => model.Agif) +
+
+ @Html.DisplayFor(model => model.Agif) +
+
+ @Html.DisplayNameFor(model => model.Table) +
+
+ @Html.DisplayFor(model => model.Table) +
+
+ @Html.DisplayNameFor(model => model.Colors) +
+
+ @Html.DisplayFor(model => model.Colors) +
+
+ @Html.DisplayNameFor(model => model.Js) +
+
+ @Html.DisplayFor(model => model.Js) +
+
+ @Html.DisplayNameFor(model => model.Frames) +
+
+ @Html.DisplayFor(model => model.Frames) +
+
+ @Html.DisplayNameFor(model => model.Flash) +
+
+ @Html.DisplayFor(model => model.Flash) +
+
+
+ diff --git a/cicm_web/Areas/Admin/Views/BrowserTests/Edit.cshtml b/cicm_web/Areas/Admin/Views/BrowserTests/Edit.cshtml new file mode 100644 index 00000000..6893ba01 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/BrowserTests/Edit.cshtml @@ -0,0 +1,192 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Edit.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view edit +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.BrowserTest + +@{ + ViewData["Title"] = "Edit"; +} + +

Edit

+ +

BrowserTest

+
+
+
+
+
+
+ +
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+ +
+
+
+
+ + + +@section Scripts { + @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); } +} \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Views/BrowserTests/Index.cshtml b/cicm_web/Areas/Admin/Views/BrowserTests/Index.cshtml new file mode 100644 index 00000000..274e1ffe --- /dev/null +++ b/cicm_web/Areas/Admin/Views/BrowserTests/Index.cshtml @@ -0,0 +1,156 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Index.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view index +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model IEnumerable + +@{ + ViewData["Title"] = "Index"; +} + +

Index

+ +

+ Create New +

+ + + + + + + + + + + + + + + + + + + + + + + +@foreach (var item in Model) { + + + + + + + + + + + + + + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.UserAgent) + + @Html.DisplayNameFor(model => model.Browser) + + @Html.DisplayNameFor(model => model.Version) + + @Html.DisplayNameFor(model => model.Os) + + @Html.DisplayNameFor(model => model.Platform) + + @Html.DisplayNameFor(model => model.Gif87) + + @Html.DisplayNameFor(model => model.Gif89) + + @Html.DisplayNameFor(model => model.Jpeg) + + @Html.DisplayNameFor(model => model.Png) + + @Html.DisplayNameFor(model => model.Pngt) + + @Html.DisplayNameFor(model => model.Agif) + + @Html.DisplayNameFor(model => model.Table) + + @Html.DisplayNameFor(model => model.Colors) + + @Html.DisplayNameFor(model => model.Js) + + @Html.DisplayNameFor(model => model.Frames) + + @Html.DisplayNameFor(model => model.Flash) +
+ @Html.DisplayFor(modelItem => item.UserAgent) + + @Html.DisplayFor(modelItem => item.Browser) + + @Html.DisplayFor(modelItem => item.Version) + + @Html.DisplayFor(modelItem => item.Os) + + @Html.DisplayFor(modelItem => item.Platform) + + @Html.DisplayFor(modelItem => item.Gif87) + + @Html.DisplayFor(modelItem => item.Gif89) + + @Html.DisplayFor(modelItem => item.Jpeg) + + @Html.DisplayFor(modelItem => item.Png) + + @Html.DisplayFor(modelItem => item.Pngt) + + @Html.DisplayFor(modelItem => item.Agif) + + @Html.DisplayFor(modelItem => item.Table) + + @Html.DisplayFor(modelItem => item.Colors) + + @Html.DisplayFor(modelItem => item.Js) + + @Html.DisplayFor(modelItem => item.Frames) + + @Html.DisplayFor(modelItem => item.Flash) + + Edit | + Details | + Delete +
diff --git a/cicm_web/Areas/Admin/Views/Companies/Create.cshtml b/cicm_web/Areas/Admin/Views/Companies/Create.cshtml new file mode 100644 index 00000000..b052e04b --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Companies/Create.cshtml @@ -0,0 +1,117 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Create.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view create +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Company + +@{ + ViewData["Title"] = "Create"; +} + +

Create

+ +

Company

+
+
+
+
+
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/Companies/Delete.cshtml b/cicm_web/Areas/Admin/Views/Companies/Delete.cshtml new file mode 100644 index 00000000..86a3323b --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Companies/Delete.cshtml @@ -0,0 +1,130 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Delete.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view delete +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Company + +@{ + ViewData["Title"] = "Delete"; +} + +

Delete

+ +

Are you sure you want to delete this?

+
+

Company

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ @Html.DisplayNameFor(model => model.Founded) +
+
+ @Html.DisplayFor(model => model.Founded) +
+
+ @Html.DisplayNameFor(model => model.Website) +
+
+ @Html.DisplayFor(model => model.Website) +
+
+ @Html.DisplayNameFor(model => model.Twitter) +
+
+ @Html.DisplayFor(model => model.Twitter) +
+
+ @Html.DisplayNameFor(model => model.Facebook) +
+
+ @Html.DisplayFor(model => model.Facebook) +
+
+ @Html.DisplayNameFor(model => model.Sold) +
+
+ @Html.DisplayFor(model => model.Sold) +
+
+ @Html.DisplayNameFor(model => model.Address) +
+
+ @Html.DisplayFor(model => model.Address) +
+
+ @Html.DisplayNameFor(model => model.City) +
+
+ @Html.DisplayFor(model => model.City) +
+
+ @Html.DisplayNameFor(model => model.Province) +
+
+ @Html.DisplayFor(model => model.Province) +
+
+ @Html.DisplayNameFor(model => model.PostalCode) +
+
+ @Html.DisplayFor(model => model.PostalCode) +
+
+ @Html.DisplayNameFor(model => model.Status) +
+
+ @Html.DisplayFor(model => model.Status) +
+
+ @Html.DisplayNameFor(model => model.Country) +
+
+ @Html.DisplayFor(model => model.Country.Name) +
+
+ @Html.DisplayNameFor(model => model.SoldTo) +
+
+ @Html.DisplayFor(model => model.SoldTo.Name) +
+
+ +
+ + | + Back to List +
+
diff --git a/cicm_web/Areas/Admin/Views/Companies/Details.cshtml b/cicm_web/Areas/Admin/Views/Companies/Details.cshtml new file mode 100644 index 00000000..caa37f2f --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Companies/Details.cshtml @@ -0,0 +1,127 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Details.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view details +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Company + +@{ + ViewData["Title"] = "Details"; +} + +

Details

+ +
+

Company

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ @Html.DisplayNameFor(model => model.Founded) +
+
+ @Html.DisplayFor(model => model.Founded) +
+
+ @Html.DisplayNameFor(model => model.Website) +
+
+ @Html.DisplayFor(model => model.Website) +
+
+ @Html.DisplayNameFor(model => model.Twitter) +
+
+ @Html.DisplayFor(model => model.Twitter) +
+
+ @Html.DisplayNameFor(model => model.Facebook) +
+
+ @Html.DisplayFor(model => model.Facebook) +
+
+ @Html.DisplayNameFor(model => model.Sold) +
+
+ @Html.DisplayFor(model => model.Sold) +
+
+ @Html.DisplayNameFor(model => model.Address) +
+
+ @Html.DisplayFor(model => model.Address) +
+
+ @Html.DisplayNameFor(model => model.City) +
+
+ @Html.DisplayFor(model => model.City) +
+
+ @Html.DisplayNameFor(model => model.Province) +
+
+ @Html.DisplayFor(model => model.Province) +
+
+ @Html.DisplayNameFor(model => model.PostalCode) +
+
+ @Html.DisplayFor(model => model.PostalCode) +
+
+ @Html.DisplayNameFor(model => model.Status) +
+
+ @Html.DisplayFor(model => model.Status) +
+
+ @Html.DisplayNameFor(model => model.Country) +
+
+ @Html.DisplayFor(model => model.Country.Name) +
+
+ @Html.DisplayNameFor(model => model.SoldTo) +
+
+ @Html.DisplayFor(model => model.SoldTo.Name) +
+
+
+ diff --git a/cicm_web/Areas/Admin/Views/Companies/Edit.cshtml b/cicm_web/Areas/Admin/Views/Companies/Edit.cshtml new file mode 100644 index 00000000..9de4f1e0 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Companies/Edit.cshtml @@ -0,0 +1,125 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Edit.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view edit +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Company + +@{ + ViewData["Title"] = "Edit"; +} + +

Edit

+ +

Company

+
+
+
+
+
+ +
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/Companies/Index.cshtml b/cicm_web/Areas/Admin/Views/Companies/Index.cshtml new file mode 100644 index 00000000..24dce2ec --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Companies/Index.cshtml @@ -0,0 +1,138 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Index.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view index +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model IEnumerable + +@{ + ViewData["Title"] = "Index"; +} + +

Index

+ +

+ Create New +

+ + + + + + + + + + + + + + + + + + + + +@foreach (var item in Model) { + + + + + + + + + + + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Name) + + @Html.DisplayNameFor(model => model.Founded) + + @Html.DisplayNameFor(model => model.Website) + + @Html.DisplayNameFor(model => model.Twitter) + + @Html.DisplayNameFor(model => model.Facebook) + + @Html.DisplayNameFor(model => model.Sold) + + @Html.DisplayNameFor(model => model.Address) + + @Html.DisplayNameFor(model => model.City) + + @Html.DisplayNameFor(model => model.Province) + + @Html.DisplayNameFor(model => model.PostalCode) + + @Html.DisplayNameFor(model => model.Status) + + @Html.DisplayNameFor(model => model.Country) + + @Html.DisplayNameFor(model => model.SoldTo) +
+ @Html.DisplayFor(modelItem => item.Name) + + @Html.DisplayFor(modelItem => item.Founded) + + @Html.DisplayFor(modelItem => item.Website) + + @Html.DisplayFor(modelItem => item.Twitter) + + @Html.DisplayFor(modelItem => item.Facebook) + + @Html.DisplayFor(modelItem => item.Sold) + + @Html.DisplayFor(modelItem => item.Address) + + @Html.DisplayFor(modelItem => item.City) + + @Html.DisplayFor(modelItem => item.Province) + + @Html.DisplayFor(modelItem => item.PostalCode) + + @Html.DisplayFor(modelItem => item.Status) + + @Html.DisplayFor(modelItem => item.Country.Name) + + @Html.DisplayFor(modelItem => item.SoldTo.Name) + + Edit | + Details | + Delete +
diff --git a/cicm_web/Areas/Admin/Views/CompanyDescriptions/Create.cshtml b/cicm_web/Areas/Admin/Views/CompanyDescriptions/Create.cshtml new file mode 100644 index 00000000..92a3bfd4 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/CompanyDescriptions/Create.cshtml @@ -0,0 +1,69 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Create.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view create +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.CompanyDescription + +@{ + ViewData["Title"] = "Create"; +} + +

Create

+ +

CompanyDescription

+
+
+
+
+
+
+ + + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/CompanyDescriptions/Delete.cshtml b/cicm_web/Areas/Admin/Views/CompanyDescriptions/Delete.cshtml new file mode 100644 index 00000000..f04a6523 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/CompanyDescriptions/Delete.cshtml @@ -0,0 +1,70 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Delete.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view delete +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.CompanyDescription + +@{ + ViewData["Title"] = "Delete"; +} + +

Delete

+ +

Are you sure you want to delete this?

+
+

CompanyDescription

+
+
+
+ @Html.DisplayNameFor(model => model.CompanyId) +
+
+ @Html.DisplayFor(model => model.CompanyId) +
+
+ @Html.DisplayNameFor(model => model.Text) +
+
+ @Html.DisplayFor(model => model.Text) +
+
+ @Html.DisplayNameFor(model => model.Company) +
+
+ @Html.DisplayFor(model => model.Company.Name) +
+
+ +
+ + | + Back to List +
+
diff --git a/cicm_web/Areas/Admin/Views/CompanyDescriptions/Details.cshtml b/cicm_web/Areas/Admin/Views/CompanyDescriptions/Details.cshtml new file mode 100644 index 00000000..2460f97a --- /dev/null +++ b/cicm_web/Areas/Admin/Views/CompanyDescriptions/Details.cshtml @@ -0,0 +1,67 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Details.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view details +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.CompanyDescription + +@{ + ViewData["Title"] = "Details"; +} + +

Details

+ +
+

CompanyDescription

+
+
+
+ @Html.DisplayNameFor(model => model.CompanyId) +
+
+ @Html.DisplayFor(model => model.CompanyId) +
+
+ @Html.DisplayNameFor(model => model.Text) +
+
+ @Html.DisplayFor(model => model.Text) +
+
+ @Html.DisplayNameFor(model => model.Company) +
+
+ @Html.DisplayFor(model => model.Company.Name) +
+
+
+ diff --git a/cicm_web/Areas/Admin/Views/CompanyDescriptions/Edit.cshtml b/cicm_web/Areas/Admin/Views/CompanyDescriptions/Edit.cshtml new file mode 100644 index 00000000..9c99a31c --- /dev/null +++ b/cicm_web/Areas/Admin/Views/CompanyDescriptions/Edit.cshtml @@ -0,0 +1,70 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Edit.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view edit +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.CompanyDescription + +@{ + ViewData["Title"] = "Edit"; +} + +

Edit

+ +

CompanyDescription

+
+
+
+
+
+ +
+ + + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/CompanyDescriptions/Index.cshtml b/cicm_web/Areas/Admin/Views/CompanyDescriptions/Index.cshtml new file mode 100644 index 00000000..676949ff --- /dev/null +++ b/cicm_web/Areas/Admin/Views/CompanyDescriptions/Index.cshtml @@ -0,0 +1,78 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Index.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view index +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model IEnumerable + +@{ + ViewData["Title"] = "Index"; +} + +

Index

+ +

+ Create New +

+ + + + + + + + + + +@foreach (var item in Model) { + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.CompanyId) + + @Html.DisplayNameFor(model => model.Text) + + @Html.DisplayNameFor(model => model.Company) +
+ @Html.DisplayFor(modelItem => item.CompanyId) + + @Html.DisplayFor(modelItem => item.Text) + + @Html.DisplayFor(modelItem => item.Company.Name) + + Edit | + Details | + Delete +
diff --git a/cicm_web/Areas/Admin/Views/Gpus/Create.cshtml b/cicm_web/Areas/Admin/Views/Gpus/Create.cshtml new file mode 100644 index 00000000..eba37d19 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Gpus/Create.cshtml @@ -0,0 +1,98 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Create.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view create +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Gpu + +@{ + ViewData["Title"] = "Create"; +} + +

Create

+ +

Gpu

+
+
+
+
+
+
+ + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/Gpus/Delete.cshtml b/cicm_web/Areas/Admin/Views/Gpus/Delete.cshtml new file mode 100644 index 00000000..8b5da259 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Gpus/Delete.cshtml @@ -0,0 +1,106 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Delete.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view delete +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Gpu + +@{ + ViewData["Title"] = "Delete"; +} + +

Delete

+ +

Are you sure you want to delete this?

+
+

Gpu

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ @Html.DisplayNameFor(model => model.ModelCode) +
+
+ @Html.DisplayFor(model => model.ModelCode) +
+
+ @Html.DisplayNameFor(model => model.Introduced) +
+
+ @Html.DisplayFor(model => model.Introduced) +
+
+ @Html.DisplayNameFor(model => model.Package) +
+
+ @Html.DisplayFor(model => model.Package) +
+
+ @Html.DisplayNameFor(model => model.Process) +
+
+ @Html.DisplayFor(model => model.Process) +
+
+ @Html.DisplayNameFor(model => model.ProcessNm) +
+
+ @Html.DisplayFor(model => model.ProcessNm) +
+
+ @Html.DisplayNameFor(model => model.DieSize) +
+
+ @Html.DisplayFor(model => model.DieSize) +
+
+ @Html.DisplayNameFor(model => model.Transistors) +
+
+ @Html.DisplayFor(model => model.Transistors) +
+
+ @Html.DisplayNameFor(model => model.Company) +
+
+ @Html.DisplayFor(model => model.Company.Name) +
+
+ +
+ + | + Back to List +
+
diff --git a/cicm_web/Areas/Admin/Views/Gpus/Details.cshtml b/cicm_web/Areas/Admin/Views/Gpus/Details.cshtml new file mode 100644 index 00000000..fde260d8 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Gpus/Details.cshtml @@ -0,0 +1,103 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Details.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view details +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Gpu + +@{ + ViewData["Title"] = "Details"; +} + +

Details

+ +
+

Gpu

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ @Html.DisplayNameFor(model => model.ModelCode) +
+
+ @Html.DisplayFor(model => model.ModelCode) +
+
+ @Html.DisplayNameFor(model => model.Introduced) +
+
+ @Html.DisplayFor(model => model.Introduced) +
+
+ @Html.DisplayNameFor(model => model.Package) +
+
+ @Html.DisplayFor(model => model.Package) +
+
+ @Html.DisplayNameFor(model => model.Process) +
+
+ @Html.DisplayFor(model => model.Process) +
+
+ @Html.DisplayNameFor(model => model.ProcessNm) +
+
+ @Html.DisplayFor(model => model.ProcessNm) +
+
+ @Html.DisplayNameFor(model => model.DieSize) +
+
+ @Html.DisplayFor(model => model.DieSize) +
+
+ @Html.DisplayNameFor(model => model.Transistors) +
+
+ @Html.DisplayFor(model => model.Transistors) +
+
+ @Html.DisplayNameFor(model => model.Company) +
+
+ @Html.DisplayFor(model => model.Company.Name) +
+
+
+ diff --git a/cicm_web/Areas/Admin/Views/Gpus/Edit.cshtml b/cicm_web/Areas/Admin/Views/Gpus/Edit.cshtml new file mode 100644 index 00000000..4bb9b16f --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Gpus/Edit.cshtml @@ -0,0 +1,105 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Edit.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view edit +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Gpu + +@{ + ViewData["Title"] = "Edit"; +} + +

Edit

+ +

Gpu

+
+
+
+
+
+ +
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/Gpus/Index.cshtml b/cicm_web/Areas/Admin/Views/Gpus/Index.cshtml new file mode 100644 index 00000000..891cec44 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Gpus/Index.cshtml @@ -0,0 +1,114 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Index.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view index +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model IEnumerable + +@{ + ViewData["Title"] = "Index"; +} + +

Index

+ +

+ Create New +

+ + + + + + + + + + + + + + + + +@foreach (var item in Model) { + + + + + + + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Name) + + @Html.DisplayNameFor(model => model.ModelCode) + + @Html.DisplayNameFor(model => model.Introduced) + + @Html.DisplayNameFor(model => model.Package) + + @Html.DisplayNameFor(model => model.Process) + + @Html.DisplayNameFor(model => model.ProcessNm) + + @Html.DisplayNameFor(model => model.DieSize) + + @Html.DisplayNameFor(model => model.Transistors) + + @Html.DisplayNameFor(model => model.Company) +
+ @Html.DisplayFor(modelItem => item.Name) + + @Html.DisplayFor(modelItem => item.ModelCode) + + @Html.DisplayFor(modelItem => item.Introduced) + + @Html.DisplayFor(modelItem => item.Package) + + @Html.DisplayFor(modelItem => item.Process) + + @Html.DisplayFor(modelItem => item.ProcessNm) + + @Html.DisplayFor(modelItem => item.DieSize) + + @Html.DisplayFor(modelItem => item.Transistors) + + @Html.DisplayFor(modelItem => item.Company.Name) + + Edit | + Details | + Delete +
diff --git a/cicm_web/Areas/Admin/Views/InstructionSetExtensions/Create.cshtml b/cicm_web/Areas/Admin/Views/InstructionSetExtensions/Create.cshtml new file mode 100644 index 00000000..96dbd6b4 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/InstructionSetExtensions/Create.cshtml @@ -0,0 +1,64 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Create.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view create +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.InstructionSetExtension + +@{ + ViewData["Title"] = "Create"; +} + +

Create

+ +

InstructionSetExtension

+
+
+
+
+
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/InstructionSetExtensions/Delete.cshtml b/cicm_web/Areas/Admin/Views/InstructionSetExtensions/Delete.cshtml new file mode 100644 index 00000000..17c1649b --- /dev/null +++ b/cicm_web/Areas/Admin/Views/InstructionSetExtensions/Delete.cshtml @@ -0,0 +1,58 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Delete.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view delete +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.InstructionSetExtension + +@{ + ViewData["Title"] = "Delete"; +} + +

Delete

+ +

Are you sure you want to delete this?

+
+

InstructionSetExtension

+
+
+
+ @Html.DisplayNameFor(model => model.Extension) +
+
+ @Html.DisplayFor(model => model.Extension) +
+
+ +
+ + | + Back to List +
+
diff --git a/cicm_web/Areas/Admin/Views/InstructionSetExtensions/Details.cshtml b/cicm_web/Areas/Admin/Views/InstructionSetExtensions/Details.cshtml new file mode 100644 index 00000000..fd592f38 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/InstructionSetExtensions/Details.cshtml @@ -0,0 +1,55 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Details.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view details +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.InstructionSetExtension + +@{ + ViewData["Title"] = "Details"; +} + +

Details

+ +
+

InstructionSetExtension

+
+
+
+ @Html.DisplayNameFor(model => model.Extension) +
+
+ @Html.DisplayFor(model => model.Extension) +
+
+
+ diff --git a/cicm_web/Areas/Admin/Views/InstructionSetExtensions/Edit.cshtml b/cicm_web/Areas/Admin/Views/InstructionSetExtensions/Edit.cshtml new file mode 100644 index 00000000..2b9feea2 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/InstructionSetExtensions/Edit.cshtml @@ -0,0 +1,65 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Edit.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view edit +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.InstructionSetExtension + +@{ + ViewData["Title"] = "Edit"; +} + +

Edit

+ +

InstructionSetExtension

+
+
+
+
+
+ +
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/InstructionSetExtensions/Index.cshtml b/cicm_web/Areas/Admin/Views/InstructionSetExtensions/Index.cshtml new file mode 100644 index 00000000..90ab8ea8 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/InstructionSetExtensions/Index.cshtml @@ -0,0 +1,66 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Index.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view index +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model IEnumerable + +@{ + ViewData["Title"] = "Index"; +} + +

Index

+ +

+ Create New +

+ + + + + + + + +@foreach (var item in Model) { + + + + +} + +
+ @Html.DisplayNameFor(model => model.Extension) +
+ @Html.DisplayFor(modelItem => item.Extension) + + Edit | + Details | + Delete +
diff --git a/cicm_web/Areas/Admin/Views/InstructionSets/Create.cshtml b/cicm_web/Areas/Admin/Views/InstructionSets/Create.cshtml new file mode 100644 index 00000000..1aa78eed --- /dev/null +++ b/cicm_web/Areas/Admin/Views/InstructionSets/Create.cshtml @@ -0,0 +1,64 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Create.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view create +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.InstructionSet + +@{ + ViewData["Title"] = "Create"; +} + +

Create

+ +

InstructionSet

+
+
+
+
+
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/InstructionSets/Delete.cshtml b/cicm_web/Areas/Admin/Views/InstructionSets/Delete.cshtml new file mode 100644 index 00000000..db4baacf --- /dev/null +++ b/cicm_web/Areas/Admin/Views/InstructionSets/Delete.cshtml @@ -0,0 +1,58 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Delete.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// View start +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.InstructionSet + +@{ + ViewData["Title"] = "Delete"; +} + +

Delete

+ +

Are you sure you want to delete this?

+
+

InstructionSet

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ +
+ + | + Back to List +
+
diff --git a/cicm_web/Areas/Admin/Views/InstructionSets/Details.cshtml b/cicm_web/Areas/Admin/Views/InstructionSets/Details.cshtml new file mode 100644 index 00000000..b11c3a93 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/InstructionSets/Details.cshtml @@ -0,0 +1,55 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Details.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view details +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.InstructionSet + +@{ + ViewData["Title"] = "Details"; +} + +

Details

+ +
+

InstructionSet

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+
+ diff --git a/cicm_web/Areas/Admin/Views/InstructionSets/Edit.cshtml b/cicm_web/Areas/Admin/Views/InstructionSets/Edit.cshtml new file mode 100644 index 00000000..178c4f31 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/InstructionSets/Edit.cshtml @@ -0,0 +1,65 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Edit.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view edit +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.InstructionSet + +@{ + ViewData["Title"] = "Edit"; +} + +

Edit

+ +

InstructionSet

+
+
+
+
+
+ +
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/InstructionSets/Index.cshtml b/cicm_web/Areas/Admin/Views/InstructionSets/Index.cshtml new file mode 100644 index 00000000..646edeb8 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/InstructionSets/Index.cshtml @@ -0,0 +1,66 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Index.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view index +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model IEnumerable + +@{ + ViewData["Title"] = "Index"; +} + +

Index

+ +

+ Create New +

+ + + + + + + + +@foreach (var item in Model) { + + + + +} + +
+ @Html.DisplayNameFor(model => model.Name) +
+ @Html.DisplayFor(modelItem => item.Name) + + Edit | + Details | + Delete +
diff --git a/cicm_web/Areas/Admin/Views/MachineFamilies/Create.cshtml b/cicm_web/Areas/Admin/Views/MachineFamilies/Create.cshtml new file mode 100644 index 00000000..3f0dac09 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/MachineFamilies/Create.cshtml @@ -0,0 +1,68 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Create.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view create +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.MachineFamily + +@{ + ViewData["Title"] = "Create"; +} + +

Create

+ +

MachineFamily

+
+
+
+
+
+
+ + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/MachineFamilies/Delete.cshtml b/cicm_web/Areas/Admin/Views/MachineFamilies/Delete.cshtml new file mode 100644 index 00000000..6d389a77 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/MachineFamilies/Delete.cshtml @@ -0,0 +1,64 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Delete.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view delete +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.MachineFamily + +@{ + ViewData["Title"] = "Delete"; +} + +

Delete

+ +

Are you sure you want to delete this?

+
+

MachineFamily

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ @Html.DisplayNameFor(model => model.Company) +
+
+ @Html.DisplayFor(model => model.Company.Name) +
+
+ +
+ + | + Back to List +
+
diff --git a/cicm_web/Areas/Admin/Views/MachineFamilies/Details.cshtml b/cicm_web/Areas/Admin/Views/MachineFamilies/Details.cshtml new file mode 100644 index 00000000..a77437ad --- /dev/null +++ b/cicm_web/Areas/Admin/Views/MachineFamilies/Details.cshtml @@ -0,0 +1,61 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Details.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view details +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.MachineFamily + +@{ + ViewData["Title"] = "Details"; +} + +

Details

+ +
+

MachineFamily

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ @Html.DisplayNameFor(model => model.Company) +
+
+ @Html.DisplayFor(model => model.Company.Name) +
+
+
+ diff --git a/cicm_web/Areas/Admin/Views/MachineFamilies/Edit.cshtml b/cicm_web/Areas/Admin/Views/MachineFamilies/Edit.cshtml new file mode 100644 index 00000000..1d38a9f9 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/MachineFamilies/Edit.cshtml @@ -0,0 +1,70 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Edit.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view edit +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.MachineFamily + +@{ + ViewData["Title"] = "Edit"; +} + +

Edit

+ +

MachineFamily

+
+
+
+
+
+ +
+ + + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/MachineFamilies/Index.cshtml b/cicm_web/Areas/Admin/Views/MachineFamilies/Index.cshtml new file mode 100644 index 00000000..9169a0ea --- /dev/null +++ b/cicm_web/Areas/Admin/Views/MachineFamilies/Index.cshtml @@ -0,0 +1,72 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Index.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view index +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model IEnumerable + +@{ + ViewData["Title"] = "Index"; +} + +

Index

+ +

+ Create New +

+ + + + + + + + + +@foreach (var item in Model) { + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Name) + + @Html.DisplayNameFor(model => model.Company) +
+ @Html.DisplayFor(modelItem => item.Name) + + @Html.DisplayFor(modelItem => item.Company.Name) + + Edit | + Details | + Delete +
diff --git a/cicm_web/Areas/Admin/Views/Machines/Create.cshtml b/cicm_web/Areas/Admin/Views/Machines/Create.cshtml new file mode 100644 index 00000000..6bdcb970 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Machines/Create.cshtml @@ -0,0 +1,78 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Create.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view create +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Machine + +@{ + ViewData["Title"] = "Create"; +} + +

Create

+ +

Machine

+
+
+
+
+
+
+ + + +
+
+ + + +
+
+ + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/Machines/Delete.cshtml b/cicm_web/Areas/Admin/Views/Machines/Delete.cshtml new file mode 100644 index 00000000..48894aa8 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Machines/Delete.cshtml @@ -0,0 +1,88 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Delete.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view delete +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Machine + +@{ + ViewData["Title"] = "Delete"; +} + +

Delete

+ +

Are you sure you want to delete this?

+
+

Machine

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ @Html.DisplayNameFor(model => model.Type) +
+
+ @Html.DisplayFor(model => model.Type) +
+
+ @Html.DisplayNameFor(model => model.Introduced) +
+
+ @Html.DisplayFor(model => model.Introduced) +
+
+ @Html.DisplayNameFor(model => model.Model) +
+
+ @Html.DisplayFor(model => model.Model) +
+
+ @Html.DisplayNameFor(model => model.Company) +
+
+ @Html.DisplayFor(model => model.Company.Name) +
+
+ @Html.DisplayNameFor(model => model.Family) +
+
+ @Html.DisplayFor(model => model.Family.Name) +
+
+ +
+ + | + Back to List +
+
diff --git a/cicm_web/Areas/Admin/Views/Machines/Details.cshtml b/cicm_web/Areas/Admin/Views/Machines/Details.cshtml new file mode 100644 index 00000000..36383da5 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Machines/Details.cshtml @@ -0,0 +1,85 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Details.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view details +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Machine + +@{ + ViewData["Title"] = "Details"; +} + +

Details

+ +
+

Machine

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ @Html.DisplayNameFor(model => model.Type) +
+
+ @Html.DisplayFor(model => model.Type) +
+
+ @Html.DisplayNameFor(model => model.Introduced) +
+
+ @Html.DisplayFor(model => model.Introduced) +
+
+ @Html.DisplayNameFor(model => model.Model) +
+
+ @Html.DisplayFor(model => model.Model) +
+
+ @Html.DisplayNameFor(model => model.Company) +
+
+ @Html.DisplayFor(model => model.Company.Name) +
+
+ @Html.DisplayNameFor(model => model.Family) +
+
+ @Html.DisplayFor(model => model.Family.Name) +
+
+
+ diff --git a/cicm_web/Areas/Admin/Views/Machines/Edit.cshtml b/cicm_web/Areas/Admin/Views/Machines/Edit.cshtml new file mode 100644 index 00000000..bc05ef0f --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Machines/Edit.cshtml @@ -0,0 +1,90 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Edit.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view edit +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Machine + +@{ + ViewData["Title"] = "Edit"; +} + +

Edit

+ +

Machine

+
+
+
+
+
+ +
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/Machines/Index.cshtml b/cicm_web/Areas/Admin/Views/Machines/Index.cshtml new file mode 100644 index 00000000..222b3a40 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Machines/Index.cshtml @@ -0,0 +1,96 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Index.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view index +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model IEnumerable + +@{ + ViewData["Title"] = "Index"; +} + +

Index

+ +

+ Create New +

+ + + + + + + + + + + + + +@foreach (var item in Model) { + + + + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Name) + + @Html.DisplayNameFor(model => model.Type) + + @Html.DisplayNameFor(model => model.Introduced) + + @Html.DisplayNameFor(model => model.Model) + + @Html.DisplayNameFor(model => model.Company) + + @Html.DisplayNameFor(model => model.Family) +
+ @Html.DisplayFor(modelItem => item.Name) + + @Html.DisplayFor(modelItem => item.Type) + + @Html.DisplayFor(modelItem => item.Introduced) + + @Html.DisplayFor(modelItem => item.Model) + + @Html.DisplayFor(modelItem => item.Company.Name) + + @Html.DisplayFor(modelItem => item.Family.Name) + + Edit | + Details | + Delete +
diff --git a/cicm_web/Areas/Admin/Views/MemoryByMachines/Create.cshtml b/cicm_web/Areas/Admin/Views/MemoryByMachines/Create.cshtml new file mode 100644 index 00000000..9a4c58a1 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/MemoryByMachines/Create.cshtml @@ -0,0 +1,73 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Create.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view create +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.MemoryByMachine + +@{ + ViewData["Title"] = "Create"; +} + +

Create

+ +

MemoryByMachine

+
+
+
+
+
+
+ + +
+
+ + + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/MemoryByMachines/Delete.cshtml b/cicm_web/Areas/Admin/Views/MemoryByMachines/Delete.cshtml new file mode 100644 index 00000000..afee780f --- /dev/null +++ b/cicm_web/Areas/Admin/Views/MemoryByMachines/Delete.cshtml @@ -0,0 +1,82 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Delete.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view delete +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.MemoryByMachine + +@{ + ViewData["Title"] = "Delete"; +} + +

Delete

+ +

Are you sure you want to delete this?

+
+

MemoryByMachine

+
+
+
+ @Html.DisplayNameFor(model => model.Type) +
+
+ @Html.DisplayFor(model => model.Type) +
+
+ @Html.DisplayNameFor(model => model.Usage) +
+
+ @Html.DisplayFor(model => model.Usage) +
+
+ @Html.DisplayNameFor(model => model.Size) +
+
+ @Html.DisplayFor(model => model.Size) +
+
+ @Html.DisplayNameFor(model => model.Speed) +
+
+ @Html.DisplayFor(model => model.Speed) +
+
+ @Html.DisplayNameFor(model => model.Machine) +
+
+ @Html.DisplayFor(model => model.Machine.Name) +
+
+ +
+ + | + Back to List +
+
diff --git a/cicm_web/Areas/Admin/Views/MemoryByMachines/Details.cshtml b/cicm_web/Areas/Admin/Views/MemoryByMachines/Details.cshtml new file mode 100644 index 00000000..81c9db32 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/MemoryByMachines/Details.cshtml @@ -0,0 +1,79 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Details.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view details +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.MemoryByMachine + +@{ + ViewData["Title"] = "Details"; +} + +

Details

+ +
+

MemoryByMachine

+
+
+
+ @Html.DisplayNameFor(model => model.Type) +
+
+ @Html.DisplayFor(model => model.Type) +
+
+ @Html.DisplayNameFor(model => model.Usage) +
+
+ @Html.DisplayFor(model => model.Usage) +
+
+ @Html.DisplayNameFor(model => model.Size) +
+
+ @Html.DisplayFor(model => model.Size) +
+
+ @Html.DisplayNameFor(model => model.Speed) +
+
+ @Html.DisplayFor(model => model.Speed) +
+
+ @Html.DisplayNameFor(model => model.Machine) +
+
+ @Html.DisplayFor(model => model.Machine.Name) +
+
+
+ diff --git a/cicm_web/Areas/Admin/Views/MemoryByMachines/Edit.cshtml b/cicm_web/Areas/Admin/Views/MemoryByMachines/Edit.cshtml new file mode 100644 index 00000000..f7e90590 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/MemoryByMachines/Edit.cshtml @@ -0,0 +1,85 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Edit.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view edit +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.MemoryByMachine + +@{ + ViewData["Title"] = "Edit"; +} + +

Edit

+ +

MemoryByMachine

+
+
+
+
+
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+ +
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/MemoryByMachines/Index.cshtml b/cicm_web/Areas/Admin/Views/MemoryByMachines/Index.cshtml new file mode 100644 index 00000000..2b7b38f3 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/MemoryByMachines/Index.cshtml @@ -0,0 +1,90 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Index.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view index +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model IEnumerable + +@{ + ViewData["Title"] = "Index"; +} + +

Index

+ +

+ Create New +

+ + + + + + + + + + + + +@foreach (var item in Model) { + + + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Type) + + @Html.DisplayNameFor(model => model.Usage) + + @Html.DisplayNameFor(model => model.Size) + + @Html.DisplayNameFor(model => model.Speed) + + @Html.DisplayNameFor(model => model.Machine) +
+ @Html.DisplayFor(modelItem => item.Type) + + @Html.DisplayFor(modelItem => item.Usage) + + @Html.DisplayFor(modelItem => item.Size) + + @Html.DisplayFor(modelItem => item.Speed) + + @Html.DisplayFor(modelItem => item.Machine.Name) + + Edit | + Details | + Delete +
diff --git a/cicm_web/Areas/Admin/Views/News/Create.cshtml b/cicm_web/Areas/Admin/Views/News/Create.cshtml new file mode 100644 index 00000000..be95a664 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/News/Create.cshtml @@ -0,0 +1,59 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Create.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view create +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.News + +@{ + ViewData["Title"] = "Create"; +} + +

Create

+ +

News

+
+
+
+
+
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/News/Delete.cshtml b/cicm_web/Areas/Admin/Views/News/Delete.cshtml new file mode 100644 index 00000000..c20a03be --- /dev/null +++ b/cicm_web/Areas/Admin/Views/News/Delete.cshtml @@ -0,0 +1,70 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Delete.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view delete +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.News + +@{ + ViewData["Title"] = "Delete"; +} + +

Delete

+ +

Are you sure you want to delete this?

+
+

News

+
+
+
+ @Html.DisplayNameFor(model => model.Date) +
+
+ @Html.DisplayFor(model => model.Date) +
+
+ @Html.DisplayNameFor(model => model.Type) +
+
+ @Html.DisplayFor(model => model.Type) +
+
+ @Html.DisplayNameFor(model => model.AddedId) +
+
+ @Html.DisplayFor(model => model.AddedId) +
+
+ +
+ + | + Back to List +
+
diff --git a/cicm_web/Areas/Admin/Views/News/Details.cshtml b/cicm_web/Areas/Admin/Views/News/Details.cshtml new file mode 100644 index 00000000..7edba546 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/News/Details.cshtml @@ -0,0 +1,67 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Details.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view details +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.News + +@{ + ViewData["Title"] = "Details"; +} + +

Details

+ +
+

News

+
+
+
+ @Html.DisplayNameFor(model => model.Date) +
+
+ @Html.DisplayFor(model => model.Date) +
+
+ @Html.DisplayNameFor(model => model.Type) +
+
+ @Html.DisplayFor(model => model.Type) +
+
+ @Html.DisplayNameFor(model => model.AddedId) +
+
+ @Html.DisplayFor(model => model.AddedId) +
+
+
+ diff --git a/cicm_web/Areas/Admin/Views/News/Edit.cshtml b/cicm_web/Areas/Admin/Views/News/Edit.cshtml new file mode 100644 index 00000000..1029f17f --- /dev/null +++ b/cicm_web/Areas/Admin/Views/News/Edit.cshtml @@ -0,0 +1,75 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Edit.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view edit +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.News + +@{ + ViewData["Title"] = "Edit"; +} + +

Edit

+ +

News

+
+
+
+
+
+ +
+ + + +
+
+ + + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/News/Index.cshtml b/cicm_web/Areas/Admin/Views/News/Index.cshtml new file mode 100644 index 00000000..c7e34851 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/News/Index.cshtml @@ -0,0 +1,78 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Index.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view index +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model IEnumerable + +@{ + ViewData["Title"] = "Index"; +} + +

Index

+ +

+ Create New +

+ + + + + + + + + + +@foreach (var item in Model) { + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Date) + + @Html.DisplayNameFor(model => model.Type) + + @Html.DisplayNameFor(model => model.AddedId) +
+ @Html.DisplayFor(modelItem => item.Date) + + @Html.DisplayFor(modelItem => item.Type) + + @Html.DisplayFor(modelItem => item.AddedId) + + Edit | + Details | + Delete +
diff --git a/cicm_web/Areas/Admin/Views/Processors/Create.cshtml b/cicm_web/Areas/Admin/Views/Processors/Create.cshtml new file mode 100644 index 00000000..81448ea3 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Processors/Create.cshtml @@ -0,0 +1,177 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Create.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view create +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Processor + +@{ + ViewData["Title"] = "Create"; +} + +

Create

+ +

Processor

+
+
+
+
+
+
+ + +
+
+ + + +
+
+ + + +
+
+ + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/Processors/Delete.cshtml b/cicm_web/Areas/Admin/Views/Processors/Delete.cshtml new file mode 100644 index 00000000..fcdb42b7 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Processors/Delete.cshtml @@ -0,0 +1,202 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Delete.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view delete +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Processor + +@{ + ViewData["Title"] = "Delete"; +} + +

Delete

+ +

Are you sure you want to delete this?

+
+

Processor

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ @Html.DisplayNameFor(model => model.ModelCode) +
+
+ @Html.DisplayFor(model => model.ModelCode) +
+
+ @Html.DisplayNameFor(model => model.Introduced) +
+
+ @Html.DisplayFor(model => model.Introduced) +
+
+ @Html.DisplayNameFor(model => model.Speed) +
+
+ @Html.DisplayFor(model => model.Speed) +
+
+ @Html.DisplayNameFor(model => model.Package) +
+
+ @Html.DisplayFor(model => model.Package) +
+
+ @Html.DisplayNameFor(model => model.Gprs) +
+
+ @Html.DisplayFor(model => model.Gprs) +
+
+ @Html.DisplayNameFor(model => model.GprSize) +
+
+ @Html.DisplayFor(model => model.GprSize) +
+
+ @Html.DisplayNameFor(model => model.Fprs) +
+
+ @Html.DisplayFor(model => model.Fprs) +
+
+ @Html.DisplayNameFor(model => model.FprSize) +
+
+ @Html.DisplayFor(model => model.FprSize) +
+
+ @Html.DisplayNameFor(model => model.Cores) +
+
+ @Html.DisplayFor(model => model.Cores) +
+
+ @Html.DisplayNameFor(model => model.ThreadsPerCore) +
+
+ @Html.DisplayFor(model => model.ThreadsPerCore) +
+
+ @Html.DisplayNameFor(model => model.Process) +
+
+ @Html.DisplayFor(model => model.Process) +
+
+ @Html.DisplayNameFor(model => model.ProcessNm) +
+
+ @Html.DisplayFor(model => model.ProcessNm) +
+
+ @Html.DisplayNameFor(model => model.DieSize) +
+
+ @Html.DisplayFor(model => model.DieSize) +
+
+ @Html.DisplayNameFor(model => model.Transistors) +
+
+ @Html.DisplayFor(model => model.Transistors) +
+
+ @Html.DisplayNameFor(model => model.DataBus) +
+
+ @Html.DisplayFor(model => model.DataBus) +
+
+ @Html.DisplayNameFor(model => model.AddrBus) +
+
+ @Html.DisplayFor(model => model.AddrBus) +
+
+ @Html.DisplayNameFor(model => model.SimdRegisters) +
+
+ @Html.DisplayFor(model => model.SimdRegisters) +
+
+ @Html.DisplayNameFor(model => model.SimdSize) +
+
+ @Html.DisplayFor(model => model.SimdSize) +
+
+ @Html.DisplayNameFor(model => model.L1Instruction) +
+
+ @Html.DisplayFor(model => model.L1Instruction) +
+
+ @Html.DisplayNameFor(model => model.L1Data) +
+
+ @Html.DisplayFor(model => model.L1Data) +
+
+ @Html.DisplayNameFor(model => model.L2) +
+
+ @Html.DisplayFor(model => model.L2) +
+
+ @Html.DisplayNameFor(model => model.L3) +
+
+ @Html.DisplayFor(model => model.L3) +
+
+ @Html.DisplayNameFor(model => model.Company) +
+
+ @Html.DisplayFor(model => model.Company.Name) +
+
+ @Html.DisplayNameFor(model => model.InstructionSet) +
+
+ @Html.DisplayFor(model => model.InstructionSet.Name) +
+
+ +
+ + | + Back to List +
+
diff --git a/cicm_web/Areas/Admin/Views/Processors/Details.cshtml b/cicm_web/Areas/Admin/Views/Processors/Details.cshtml new file mode 100644 index 00000000..3613fab3 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Processors/Details.cshtml @@ -0,0 +1,199 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Details.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view details +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Processor + +@{ + ViewData["Title"] = "Details"; +} + +

Details

+ +
+

Processor

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ @Html.DisplayNameFor(model => model.ModelCode) +
+
+ @Html.DisplayFor(model => model.ModelCode) +
+
+ @Html.DisplayNameFor(model => model.Introduced) +
+
+ @Html.DisplayFor(model => model.Introduced) +
+
+ @Html.DisplayNameFor(model => model.Speed) +
+
+ @Html.DisplayFor(model => model.Speed) +
+
+ @Html.DisplayNameFor(model => model.Package) +
+
+ @Html.DisplayFor(model => model.Package) +
+
+ @Html.DisplayNameFor(model => model.Gprs) +
+
+ @Html.DisplayFor(model => model.Gprs) +
+
+ @Html.DisplayNameFor(model => model.GprSize) +
+
+ @Html.DisplayFor(model => model.GprSize) +
+
+ @Html.DisplayNameFor(model => model.Fprs) +
+
+ @Html.DisplayFor(model => model.Fprs) +
+
+ @Html.DisplayNameFor(model => model.FprSize) +
+
+ @Html.DisplayFor(model => model.FprSize) +
+
+ @Html.DisplayNameFor(model => model.Cores) +
+
+ @Html.DisplayFor(model => model.Cores) +
+
+ @Html.DisplayNameFor(model => model.ThreadsPerCore) +
+
+ @Html.DisplayFor(model => model.ThreadsPerCore) +
+
+ @Html.DisplayNameFor(model => model.Process) +
+
+ @Html.DisplayFor(model => model.Process) +
+
+ @Html.DisplayNameFor(model => model.ProcessNm) +
+
+ @Html.DisplayFor(model => model.ProcessNm) +
+
+ @Html.DisplayNameFor(model => model.DieSize) +
+
+ @Html.DisplayFor(model => model.DieSize) +
+
+ @Html.DisplayNameFor(model => model.Transistors) +
+
+ @Html.DisplayFor(model => model.Transistors) +
+
+ @Html.DisplayNameFor(model => model.DataBus) +
+
+ @Html.DisplayFor(model => model.DataBus) +
+
+ @Html.DisplayNameFor(model => model.AddrBus) +
+
+ @Html.DisplayFor(model => model.AddrBus) +
+
+ @Html.DisplayNameFor(model => model.SimdRegisters) +
+
+ @Html.DisplayFor(model => model.SimdRegisters) +
+
+ @Html.DisplayNameFor(model => model.SimdSize) +
+
+ @Html.DisplayFor(model => model.SimdSize) +
+
+ @Html.DisplayNameFor(model => model.L1Instruction) +
+
+ @Html.DisplayFor(model => model.L1Instruction) +
+
+ @Html.DisplayNameFor(model => model.L1Data) +
+
+ @Html.DisplayFor(model => model.L1Data) +
+
+ @Html.DisplayNameFor(model => model.L2) +
+
+ @Html.DisplayFor(model => model.L2) +
+
+ @Html.DisplayNameFor(model => model.L3) +
+
+ @Html.DisplayFor(model => model.L3) +
+
+ @Html.DisplayNameFor(model => model.Company) +
+
+ @Html.DisplayFor(model => model.Company.Name) +
+
+ @Html.DisplayNameFor(model => model.InstructionSet) +
+
+ @Html.DisplayFor(model => model.InstructionSet.Name) +
+
+
+ diff --git a/cicm_web/Areas/Admin/Views/Processors/Edit.cshtml b/cicm_web/Areas/Admin/Views/Processors/Edit.cshtml new file mode 100644 index 00000000..06078c9d --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Processors/Edit.cshtml @@ -0,0 +1,185 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Edit.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view edit +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Processor + +@{ + ViewData["Title"] = "Edit"; +} + +

Edit

+ +

Processor

+
+
+
+
+
+ +
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/Processors/Index.cshtml b/cicm_web/Areas/Admin/Views/Processors/Index.cshtml new file mode 100644 index 00000000..58cd9e50 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Processors/Index.cshtml @@ -0,0 +1,210 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Index.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view index +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model IEnumerable + +@{ + ViewData["Title"] = "Index"; +} + +

Index

+ +

+ Create New +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@foreach (var item in Model) { + + + + + + + + + + + + + + + + + + + + + + + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Name) + + @Html.DisplayNameFor(model => model.ModelCode) + + @Html.DisplayNameFor(model => model.Introduced) + + @Html.DisplayNameFor(model => model.Speed) + + @Html.DisplayNameFor(model => model.Package) + + @Html.DisplayNameFor(model => model.Gprs) + + @Html.DisplayNameFor(model => model.GprSize) + + @Html.DisplayNameFor(model => model.Fprs) + + @Html.DisplayNameFor(model => model.FprSize) + + @Html.DisplayNameFor(model => model.Cores) + + @Html.DisplayNameFor(model => model.ThreadsPerCore) + + @Html.DisplayNameFor(model => model.Process) + + @Html.DisplayNameFor(model => model.ProcessNm) + + @Html.DisplayNameFor(model => model.DieSize) + + @Html.DisplayNameFor(model => model.Transistors) + + @Html.DisplayNameFor(model => model.DataBus) + + @Html.DisplayNameFor(model => model.AddrBus) + + @Html.DisplayNameFor(model => model.SimdRegisters) + + @Html.DisplayNameFor(model => model.SimdSize) + + @Html.DisplayNameFor(model => model.L1Instruction) + + @Html.DisplayNameFor(model => model.L1Data) + + @Html.DisplayNameFor(model => model.L2) + + @Html.DisplayNameFor(model => model.L3) + + @Html.DisplayNameFor(model => model.Company) + + @Html.DisplayNameFor(model => model.InstructionSet) +
+ @Html.DisplayFor(modelItem => item.Name) + + @Html.DisplayFor(modelItem => item.ModelCode) + + @Html.DisplayFor(modelItem => item.Introduced) + + @Html.DisplayFor(modelItem => item.Speed) + + @Html.DisplayFor(modelItem => item.Package) + + @Html.DisplayFor(modelItem => item.Gprs) + + @Html.DisplayFor(modelItem => item.GprSize) + + @Html.DisplayFor(modelItem => item.Fprs) + + @Html.DisplayFor(modelItem => item.FprSize) + + @Html.DisplayFor(modelItem => item.Cores) + + @Html.DisplayFor(modelItem => item.ThreadsPerCore) + + @Html.DisplayFor(modelItem => item.Process) + + @Html.DisplayFor(modelItem => item.ProcessNm) + + @Html.DisplayFor(modelItem => item.DieSize) + + @Html.DisplayFor(modelItem => item.Transistors) + + @Html.DisplayFor(modelItem => item.DataBus) + + @Html.DisplayFor(modelItem => item.AddrBus) + + @Html.DisplayFor(modelItem => item.SimdRegisters) + + @Html.DisplayFor(modelItem => item.SimdSize) + + @Html.DisplayFor(modelItem => item.L1Instruction) + + @Html.DisplayFor(modelItem => item.L1Data) + + @Html.DisplayFor(modelItem => item.L2) + + @Html.DisplayFor(modelItem => item.L3) + + @Html.DisplayFor(modelItem => item.Company.Name) + + @Html.DisplayFor(modelItem => item.InstructionSet.Name) + + Edit | + Details | + Delete +
diff --git a/cicm_web/Areas/Admin/Views/ProcessorsByMachines/Create.cshtml b/cicm_web/Areas/Admin/Views/ProcessorsByMachines/Create.cshtml new file mode 100644 index 00000000..55767130 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/ProcessorsByMachines/Create.cshtml @@ -0,0 +1,72 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Create.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view create +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.ProcessorsByMachine + +@{ + ViewData["Title"] = "Create"; +} + +

Create

+ +

ProcessorsByMachine

+
+
+
+
+
+
+ + +
+
+ + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/ProcessorsByMachines/Delete.cshtml b/cicm_web/Areas/Admin/Views/ProcessorsByMachines/Delete.cshtml new file mode 100644 index 00000000..d179a24c --- /dev/null +++ b/cicm_web/Areas/Admin/Views/ProcessorsByMachines/Delete.cshtml @@ -0,0 +1,70 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Delete.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view delete +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.ProcessorsByMachine + +@{ + ViewData["Title"] = "Delete"; +} + +

Delete

+ +

Are you sure you want to delete this?

+
+

ProcessorsByMachine

+
+
+
+ @Html.DisplayNameFor(model => model.Speed) +
+
+ @Html.DisplayFor(model => model.Speed) +
+
+ @Html.DisplayNameFor(model => model.Machine) +
+
+ @Html.DisplayFor(model => model.Machine.Name) +
+
+ @Html.DisplayNameFor(model => model.Processor) +
+
+ @Html.DisplayFor(model => model.Processor.Name) +
+
+ +
+ + | + Back to List +
+
diff --git a/cicm_web/Areas/Admin/Views/ProcessorsByMachines/Details.cshtml b/cicm_web/Areas/Admin/Views/ProcessorsByMachines/Details.cshtml new file mode 100644 index 00000000..839e47f1 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/ProcessorsByMachines/Details.cshtml @@ -0,0 +1,67 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Details.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view details +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.ProcessorsByMachine + +@{ + ViewData["Title"] = "Details"; +} + +

Details

+ +
+

ProcessorsByMachine

+
+
+
+ @Html.DisplayNameFor(model => model.Speed) +
+
+ @Html.DisplayFor(model => model.Speed) +
+
+ @Html.DisplayNameFor(model => model.Machine) +
+
+ @Html.DisplayFor(model => model.Machine.Name) +
+
+ @Html.DisplayNameFor(model => model.Processor) +
+
+ @Html.DisplayFor(model => model.Processor.Name) +
+
+
+ diff --git a/cicm_web/Areas/Admin/Views/ProcessorsByMachines/Edit.cshtml b/cicm_web/Areas/Admin/Views/ProcessorsByMachines/Edit.cshtml new file mode 100644 index 00000000..6de26212 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/ProcessorsByMachines/Edit.cshtml @@ -0,0 +1,75 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Edit.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view edit +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.ProcessorsByMachine + +@{ + ViewData["Title"] = "Edit"; +} + +

Edit

+ +

ProcessorsByMachine

+
+
+
+
+
+
+ + + +
+
+ + + +
+
+ + + +
+ +
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/ProcessorsByMachines/Index.cshtml b/cicm_web/Areas/Admin/Views/ProcessorsByMachines/Index.cshtml new file mode 100644 index 00000000..5c51a50e --- /dev/null +++ b/cicm_web/Areas/Admin/Views/ProcessorsByMachines/Index.cshtml @@ -0,0 +1,78 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Index.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view index +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model IEnumerable + +@{ + ViewData["Title"] = "Index"; +} + +

Index

+ +

+ Create New +

+ + + + + + + + + + +@foreach (var item in Model) { + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Speed) + + @Html.DisplayNameFor(model => model.Machine) + + @Html.DisplayNameFor(model => model.Processor) +
+ @Html.DisplayFor(modelItem => item.Speed) + + @Html.DisplayFor(modelItem => item.Machine.Name) + + @Html.DisplayFor(modelItem => item.Processor.Name) + + Edit | + Details | + Delete +
diff --git a/cicm_web/Areas/Admin/Views/Resolutions/Create.cshtml b/cicm_web/Areas/Admin/Views/Resolutions/Create.cshtml new file mode 100644 index 00000000..1e2ac37c --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Resolutions/Create.cshtml @@ -0,0 +1,69 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Create.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view create +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Resolution + +@{ + ViewData["Title"] = "Create"; +} + +

Create

+ +

Resolution

+
+
+
+
+
+
+ + + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/Resolutions/Delete.cshtml b/cicm_web/Areas/Admin/Views/Resolutions/Delete.cshtml new file mode 100644 index 00000000..dcd4a8a3 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Resolutions/Delete.cshtml @@ -0,0 +1,82 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Delete.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view delete +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Resolution + +@{ + ViewData["Title"] = "Delete"; +} + +

Delete

+ +

Are you sure you want to delete this?

+
+

Resolution

+
+
+
+ @Html.DisplayNameFor(model => model.Width) +
+
+ @Html.DisplayFor(model => model.Width) +
+
+ @Html.DisplayNameFor(model => model.Height) +
+
+ @Html.DisplayFor(model => model.Height) +
+
+ @Html.DisplayNameFor(model => model.Colors) +
+
+ @Html.DisplayFor(model => model.Colors) +
+
+ @Html.DisplayNameFor(model => model.Palette) +
+
+ @Html.DisplayFor(model => model.Palette) +
+
+ @Html.DisplayNameFor(model => model.Chars) +
+
+ @Html.DisplayFor(model => model.Chars) +
+
+ +
+ + | + Back to List +
+
diff --git a/cicm_web/Areas/Admin/Views/Resolutions/Details.cshtml b/cicm_web/Areas/Admin/Views/Resolutions/Details.cshtml new file mode 100644 index 00000000..fd86d596 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Resolutions/Details.cshtml @@ -0,0 +1,79 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Details.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view details +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Resolution + +@{ + ViewData["Title"] = "Details"; +} + +

Details

+ +
+

Resolution

+
+
+
+ @Html.DisplayNameFor(model => model.Width) +
+
+ @Html.DisplayFor(model => model.Width) +
+
+ @Html.DisplayNameFor(model => model.Height) +
+
+ @Html.DisplayFor(model => model.Height) +
+
+ @Html.DisplayNameFor(model => model.Colors) +
+
+ @Html.DisplayFor(model => model.Colors) +
+
+ @Html.DisplayNameFor(model => model.Palette) +
+
+ @Html.DisplayFor(model => model.Palette) +
+
+ @Html.DisplayNameFor(model => model.Chars) +
+
+ @Html.DisplayFor(model => model.Chars) +
+
+
+ diff --git a/cicm_web/Areas/Admin/Views/Resolutions/Edit.cshtml b/cicm_web/Areas/Admin/Views/Resolutions/Edit.cshtml new file mode 100644 index 00000000..eb9d66b8 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Resolutions/Edit.cshtml @@ -0,0 +1,85 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Edit.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view edit +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.Resolution + +@{ + ViewData["Title"] = "Edit"; +} + +

Edit

+ +

Resolution

+
+
+
+
+
+ +
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/Resolutions/Index.cshtml b/cicm_web/Areas/Admin/Views/Resolutions/Index.cshtml new file mode 100644 index 00000000..549023f4 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Resolutions/Index.cshtml @@ -0,0 +1,90 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Index.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view index +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model IEnumerable + +@{ + ViewData["Title"] = "Index"; +} + +

Index

+ +

+ Create New +

+ + + + + + + + + + + + +@foreach (var item in Model) { + + + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Width) + + @Html.DisplayNameFor(model => model.Height) + + @Html.DisplayNameFor(model => model.Colors) + + @Html.DisplayNameFor(model => model.Palette) + + @Html.DisplayNameFor(model => model.Chars) +
+ @Html.DisplayFor(modelItem => item.Width) + + @Html.DisplayFor(modelItem => item.Height) + + @Html.DisplayFor(modelItem => item.Colors) + + @Html.DisplayFor(modelItem => item.Palette) + + @Html.DisplayFor(modelItem => item.Chars) + + Edit | + Details | + Delete +
diff --git a/cicm_web/Areas/Admin/Views/Shared/Error.cshtml b/cicm_web/Areas/Admin/Views/Shared/Error.cshtml new file mode 100644 index 00000000..b9256b90 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Shared/Error.cshtml @@ -0,0 +1,53 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Error.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Error page +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model ErrorViewModel +@{ + ViewData["Title"] = "Error"; +} + +

Error.

+

An error occurred while processing your request.

+ +@if(Model.ShowRequestId) +{ +

+ Request ID: @Model.RequestId +

+} + +

Development Mode

+

+ Swapping to Development environment will display more detailed information about the error that occurred. +

+

+ Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. +

\ No newline at end of file diff --git a/cicm_web/Areas/Admin/Views/Shared/_Layout.cshtml b/cicm_web/Areas/Admin/Views/Shared/_Layout.cshtml new file mode 100644 index 00000000..0239b830 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Shared/_Layout.cshtml @@ -0,0 +1,170 @@ +@using Microsoft.Extensions.PlatformAbstractions +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : _Layout.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Page layout +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} + + + + + + Canary Islands Computer Museum - @ViewData["Title"] + + + + + + + + + + + + +
+ @RenderBody() +
+
+

© 2018 Natalia Portillo, @(PlatformServices.Default.Application.ApplicationVersion)

+
+
+ + + + + + + + + + + + +@RenderSection("Scripts", false) + + \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Views/Shared/_ValidationScriptsPartial.cshtml b/cicm_web/Areas/Admin/Views/Shared/_ValidationScriptsPartial.cshtml new file mode 100644 index 00000000..0f3b05bd --- /dev/null +++ b/cicm_web/Areas/Admin/Views/Shared/_ValidationScriptsPartial.cshtml @@ -0,0 +1,49 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : _ValidationScriptsPartial.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Validation scripts +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} + + + + + + + + \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Views/SoundSynths/Create.cshtml b/cicm_web/Areas/Admin/Views/SoundSynths/Create.cshtml new file mode 100644 index 00000000..7b18f8c0 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/SoundSynths/Create.cshtml @@ -0,0 +1,103 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Create.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view create +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.SoundSynth + +@{ + ViewData["Title"] = "Create"; +} + +

Create

+ +

SoundSynth

+
+
+
+
+
+
+ + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/SoundSynths/Delete.cshtml b/cicm_web/Areas/Admin/Views/SoundSynths/Delete.cshtml new file mode 100644 index 00000000..116ef1cf --- /dev/null +++ b/cicm_web/Areas/Admin/Views/SoundSynths/Delete.cshtml @@ -0,0 +1,112 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Delete.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view delete +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.SoundSynth + +@{ + ViewData["Title"] = "Delete"; +} + +

Delete

+ +

Are you sure you want to delete this?

+
+

SoundSynth

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ @Html.DisplayNameFor(model => model.ModelCode) +
+
+ @Html.DisplayFor(model => model.ModelCode) +
+
+ @Html.DisplayNameFor(model => model.Introduced) +
+
+ @Html.DisplayFor(model => model.Introduced) +
+
+ @Html.DisplayNameFor(model => model.Voices) +
+
+ @Html.DisplayFor(model => model.Voices) +
+
+ @Html.DisplayNameFor(model => model.Frequency) +
+
+ @Html.DisplayFor(model => model.Frequency) +
+
+ @Html.DisplayNameFor(model => model.Depth) +
+
+ @Html.DisplayFor(model => model.Depth) +
+
+ @Html.DisplayNameFor(model => model.SquareWave) +
+
+ @Html.DisplayFor(model => model.SquareWave) +
+
+ @Html.DisplayNameFor(model => model.WhiteNoise) +
+
+ @Html.DisplayFor(model => model.WhiteNoise) +
+
+ @Html.DisplayNameFor(model => model.Type) +
+
+ @Html.DisplayFor(model => model.Type) +
+
+ @Html.DisplayNameFor(model => model.Company) +
+
+ @Html.DisplayFor(model => model.Company.Name) +
+
+ +
+ + | + Back to List +
+
diff --git a/cicm_web/Areas/Admin/Views/SoundSynths/Details.cshtml b/cicm_web/Areas/Admin/Views/SoundSynths/Details.cshtml new file mode 100644 index 00000000..0eee35fe --- /dev/null +++ b/cicm_web/Areas/Admin/Views/SoundSynths/Details.cshtml @@ -0,0 +1,109 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Details.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view details +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.SoundSynth + +@{ + ViewData["Title"] = "Details"; +} + +

Details

+ +
+

SoundSynth

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ @Html.DisplayNameFor(model => model.ModelCode) +
+
+ @Html.DisplayFor(model => model.ModelCode) +
+
+ @Html.DisplayNameFor(model => model.Introduced) +
+
+ @Html.DisplayFor(model => model.Introduced) +
+
+ @Html.DisplayNameFor(model => model.Voices) +
+
+ @Html.DisplayFor(model => model.Voices) +
+
+ @Html.DisplayNameFor(model => model.Frequency) +
+
+ @Html.DisplayFor(model => model.Frequency) +
+
+ @Html.DisplayNameFor(model => model.Depth) +
+
+ @Html.DisplayFor(model => model.Depth) +
+
+ @Html.DisplayNameFor(model => model.SquareWave) +
+
+ @Html.DisplayFor(model => model.SquareWave) +
+
+ @Html.DisplayNameFor(model => model.WhiteNoise) +
+
+ @Html.DisplayFor(model => model.WhiteNoise) +
+
+ @Html.DisplayNameFor(model => model.Type) +
+
+ @Html.DisplayFor(model => model.Type) +
+
+ @Html.DisplayNameFor(model => model.Company) +
+
+ @Html.DisplayFor(model => model.Company.Name) +
+
+
+ diff --git a/cicm_web/Areas/Admin/Views/SoundSynths/Edit.cshtml b/cicm_web/Areas/Admin/Views/SoundSynths/Edit.cshtml new file mode 100644 index 00000000..b2361731 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/SoundSynths/Edit.cshtml @@ -0,0 +1,110 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Edit.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view edit +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.SoundSynth + +@{ + ViewData["Title"] = "Edit"; +} + +

Edit

+ +

SoundSynth

+
+
+
+
+
+ +
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/SoundSynths/Index.cshtml b/cicm_web/Areas/Admin/Views/SoundSynths/Index.cshtml new file mode 100644 index 00000000..c90e7172 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/SoundSynths/Index.cshtml @@ -0,0 +1,120 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Index.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view index +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model IEnumerable + +@{ + ViewData["Title"] = "Index"; +} + +

Index

+ +

+ Create New +

+ + + + + + + + + + + + + + + + + +@foreach (var item in Model) { + + + + + + + + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Name) + + @Html.DisplayNameFor(model => model.ModelCode) + + @Html.DisplayNameFor(model => model.Introduced) + + @Html.DisplayNameFor(model => model.Voices) + + @Html.DisplayNameFor(model => model.Frequency) + + @Html.DisplayNameFor(model => model.Depth) + + @Html.DisplayNameFor(model => model.SquareWave) + + @Html.DisplayNameFor(model => model.WhiteNoise) + + @Html.DisplayNameFor(model => model.Type) + + @Html.DisplayNameFor(model => model.Company) +
+ @Html.DisplayFor(modelItem => item.Name) + + @Html.DisplayFor(modelItem => item.ModelCode) + + @Html.DisplayFor(modelItem => item.Introduced) + + @Html.DisplayFor(modelItem => item.Voices) + + @Html.DisplayFor(modelItem => item.Frequency) + + @Html.DisplayFor(modelItem => item.Depth) + + @Html.DisplayFor(modelItem => item.SquareWave) + + @Html.DisplayFor(modelItem => item.WhiteNoise) + + @Html.DisplayFor(modelItem => item.Type) + + @Html.DisplayFor(modelItem => item.Company.Name) + + Edit | + Details | + Delete +
diff --git a/cicm_web/Areas/Admin/Views/StorageByMachines/Create.cshtml b/cicm_web/Areas/Admin/Views/StorageByMachines/Create.cshtml new file mode 100644 index 00000000..3813328d --- /dev/null +++ b/cicm_web/Areas/Admin/Views/StorageByMachines/Create.cshtml @@ -0,0 +1,68 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Create.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view create +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.StorageByMachine + +@{ + ViewData["Title"] = "Create"; +} + +

Create

+ +

StorageByMachine

+
+
+
+
+
+
+ + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/StorageByMachines/Delete.cshtml b/cicm_web/Areas/Admin/Views/StorageByMachines/Delete.cshtml new file mode 100644 index 00000000..c44e8682 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/StorageByMachines/Delete.cshtml @@ -0,0 +1,76 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Delete.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view delete +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.StorageByMachine + +@{ + ViewData["Title"] = "Delete"; +} + +

Delete

+ +

Are you sure you want to delete this?

+
+

StorageByMachine

+
+
+
+ @Html.DisplayNameFor(model => model.Type) +
+
+ @Html.DisplayFor(model => model.Type) +
+
+ @Html.DisplayNameFor(model => model.Interface) +
+
+ @Html.DisplayFor(model => model.Interface) +
+
+ @Html.DisplayNameFor(model => model.Capacity) +
+
+ @Html.DisplayFor(model => model.Capacity) +
+
+ @Html.DisplayNameFor(model => model.Machine) +
+
+ @Html.DisplayFor(model => model.Machine.Name) +
+
+ +
+ + | + Back to List +
+
diff --git a/cicm_web/Areas/Admin/Views/StorageByMachines/Details.cshtml b/cicm_web/Areas/Admin/Views/StorageByMachines/Details.cshtml new file mode 100644 index 00000000..0b34c237 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/StorageByMachines/Details.cshtml @@ -0,0 +1,73 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Details.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view details +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.StorageByMachine + +@{ + ViewData["Title"] = "Details"; +} + +

Details

+ +
+

StorageByMachine

+
+
+
+ @Html.DisplayNameFor(model => model.Type) +
+
+ @Html.DisplayFor(model => model.Type) +
+
+ @Html.DisplayNameFor(model => model.Interface) +
+
+ @Html.DisplayFor(model => model.Interface) +
+
+ @Html.DisplayNameFor(model => model.Capacity) +
+
+ @Html.DisplayFor(model => model.Capacity) +
+
+ @Html.DisplayNameFor(model => model.Machine) +
+
+ @Html.DisplayFor(model => model.Machine.Name) +
+
+
+ diff --git a/cicm_web/Areas/Admin/Views/StorageByMachines/Edit.cshtml b/cicm_web/Areas/Admin/Views/StorageByMachines/Edit.cshtml new file mode 100644 index 00000000..1f453cb5 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/StorageByMachines/Edit.cshtml @@ -0,0 +1,80 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Edit.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view edit +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model Cicm.Database.Models.StorageByMachine + +@{ + ViewData["Title"] = "Edit"; +} + +

Edit

+ +

StorageByMachine

+
+
+
+
+
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+ +
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/cicm_web/Areas/Admin/Views/StorageByMachines/Index.cshtml b/cicm_web/Areas/Admin/Views/StorageByMachines/Index.cshtml new file mode 100644 index 00000000..9f4e9858 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/StorageByMachines/Index.cshtml @@ -0,0 +1,84 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : Index.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// Admin view index +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@model IEnumerable + +@{ + ViewData["Title"] = "Index"; +} + +

Index

+ +

+ Create New +

+ + + + + + + + + + + +@foreach (var item in Model) { + + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Type) + + @Html.DisplayNameFor(model => model.Interface) + + @Html.DisplayNameFor(model => model.Capacity) + + @Html.DisplayNameFor(model => model.Machine) +
+ @Html.DisplayFor(modelItem => item.Type) + + @Html.DisplayFor(modelItem => item.Interface) + + @Html.DisplayFor(modelItem => item.Capacity) + + @Html.DisplayFor(modelItem => item.Machine.Name) + + Edit | + Details | + Delete +
diff --git a/cicm_web/Areas/Admin/Views/_ViewImports.cshtml b/cicm_web/Areas/Admin/Views/_ViewImports.cshtml new file mode 100644 index 00000000..f6b7adfe --- /dev/null +++ b/cicm_web/Areas/Admin/Views/_ViewImports.cshtml @@ -0,0 +1,35 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : _ViewImports.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// View imports +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} + +@using cicm_web +@using cicm_web.Models +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers \ No newline at end of file diff --git a/cicm_web/Areas/Admin/Views/_ViewStart.cshtml b/cicm_web/Areas/Admin/Views/_ViewStart.cshtml new file mode 100644 index 00000000..b3d46196 --- /dev/null +++ b/cicm_web/Areas/Admin/Views/_ViewStart.cshtml @@ -0,0 +1,34 @@ +@{ + /****************************************************************************** +// Canary Islands Computer Museum Website +// ---------------------------------------------------------------------------- +// +// Filename : _ViewStart.cshtml +// Author(s) : Natalia Portillo +// +// --[ Description ] ---------------------------------------------------------- +// +// View start +// +// --[ License ] -------------------------------------------------------------- +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// ---------------------------------------------------------------------------- +// Copyright © 2003-2018 Natalia Portillo +*******************************************************************************/ +} +@{ + Layout = "_Layout"; +} \ No newline at end of file diff --git a/cicm_web/Startup.cs b/cicm_web/Startup.cs index 3a0dd772..cb5ab801 100644 --- a/cicm_web/Startup.cs +++ b/cicm_web/Startup.cs @@ -1,4 +1,4 @@ -/****************************************************************************** +/****************************************************************************** // Canary Islands Computer Museum Website // ---------------------------------------------------------------------------- // @@ -66,7 +66,10 @@ namespace cicm_web app.UseStaticFiles(); - app.UseMvc(routes => { routes.MapRoute("default", "{controller=Home}/{action=Index}/{id?}"); }); + app.UseMvc(routes => { routes.MapRoute("default", "{controller=Home}/{action=Index}/{id?}").MapRoute( + name: "areas", + template: "{area:exists}/{controller=Home}/{action=Index}/{id?}" + ); }); } } } \ No newline at end of file