mirror of
https://github.com/guilhermewerner/gerencia-projetos
synced 2025-06-16 23:15:05 +00:00
New Migration
This commit is contained in:
47
GerenciaProjetos/Views/Bugs/Form.cshtml
Normal file
47
GerenciaProjetos/Views/Bugs/Form.cshtml
Normal file
@ -0,0 +1,47 @@
|
||||
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
@model GerenciaProjetos.Models.Bug
|
||||
|
||||
<h3>@ViewData["Title"]</h3>
|
||||
|
||||
<section class="py-3">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<form method="post">
|
||||
<div class="form-group">
|
||||
<label>Desenvolvedor</label>
|
||||
<select asp-for="DesenvolvedorId" class="form-control" asp-items="ViewBag.Desenvolvedores">
|
||||
<option></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Requisito</label>
|
||||
<select asp-for="RequisitoId" class="form-control" asp-items="ViewBag.Requisitos">
|
||||
<option></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Criador</label>
|
||||
<select asp-for="CriadorId" class="form-control" asp-items="ViewBag.Desenvolvedores">
|
||||
<option></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Prioridade</label>
|
||||
<select asp-for="Prioridade" class="form-control">
|
||||
<option>Normal</option>
|
||||
<option>Baixa</option>
|
||||
<option>Alta</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<a class="btn btn-secondary" asp-area="" asp-controller="Bugs" asp-action="Index" asp-route-id="">Cancelar</a>
|
||||
<button type="submit" class="btn btn-primary">Confirmar</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
56
GerenciaProjetos/Views/Bugs/Index.cshtml
Normal file
56
GerenciaProjetos/Views/Bugs/Index.cshtml
Normal file
@ -0,0 +1,56 @@
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Requisitos";
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
<h3>@ViewData["Title"]</h3>
|
||||
|
||||
<section class="py-3">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
1
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="text-right">
|
||||
<a asp-area="" asp-controller="Bugs" asp-action="New">
|
||||
<i class="fas fa-plus-circle"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-borderless table-hover">
|
||||
<thead class="border-bottom">
|
||||
<tr>
|
||||
<th scope="col">#</th>
|
||||
<th scope="col">Criador</th>
|
||||
<th scope="col">Data de Cadastro</th>
|
||||
<th scope="col">Prioridade</th>
|
||||
<th scope="col">Opções</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (Bug b in ViewBag.Bugs)
|
||||
{
|
||||
<tr>
|
||||
<td>@b.DesenvolvedorId-@b.RequisitoId</td>
|
||||
<td>@b.Criador</td>
|
||||
<td>@b.DataCadastro</td>
|
||||
<td>@b.Prioridade</td>
|
||||
<td>
|
||||
<a asp-area="" asp-controller="Bugs" asp-action="Edit" asp-route-id="@b.DesenvolvedorId, @b.RequisitoId">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a asp-area="" asp-controller="Bugs" asp-action="Del" asp-route-id="@b.DesenvolvedorId, @b.RequisitoId">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
Reference in New Issue
Block a user