mirror of
https://github.com/guilhermewerner/gerencia-projetos
synced 2025-06-16 23:15:05 +00:00
Requisitos Controller
This commit is contained in:
39
GerenciaProjetos/Views/Requisitos/Form.cshtml
Normal file
39
GerenciaProjetos/Views/Requisitos/Form.cshtml
Normal file
@ -0,0 +1,39 @@
|
||||
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
@model GerenciaProjetos.Models.Requisito
|
||||
|
||||
<h3>@ViewData["Title"]</h3>
|
||||
|
||||
<section class="py-3">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<form method="post">
|
||||
<div class="form-group">
|
||||
<label>Descrição</label>
|
||||
<textarea class="form-control" rows="5" asp-for="Descricao"></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Observações</label>
|
||||
<textarea class="form-control" rows="5" asp-for="Observacoes"></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Projeto</label>
|
||||
<select asp-for="ProjetoId" class="form-control" asp-items="ViewBag.Projetos">
|
||||
<option></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Data de Entrega</label>
|
||||
<input type="date" class="form-control" asp-for="DataEntrega">
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<a class="btn btn-secondary" asp-area="" asp-controller="Requisitos" asp-action="Index" asp-route-id="">Cancelar</a>
|
||||
<button type="submit" class="btn btn-primary">Confirmar</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
58
GerenciaProjetos/Views/Requisitos/Index.cshtml
Normal file
58
GerenciaProjetos/Views/Requisitos/Index.cshtml
Normal file
@ -0,0 +1,58 @@
|
||||
|
||||
@{
|
||||
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="Requisitos" 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">Descrição</th>
|
||||
<th scope="col">Observações</th>
|
||||
<th scope="col">Data de Cadastro</th>
|
||||
<th scope="col">Data de Entrega</th>
|
||||
<th scope="col">Opções</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (Requisito r in ViewBag.Requisitos)
|
||||
{
|
||||
<tr>
|
||||
<td>@r.Id</td>
|
||||
<td>@r.Descricao</td>
|
||||
<td>@r.Observacoes</td>
|
||||
<td>@r.DataCadastro</td>
|
||||
<td>@r.DataEntrega</td>
|
||||
<td>
|
||||
<a asp-area="" asp-controller="Requisitos" asp-action="Edit" asp-route-id="@r.Id">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a asp-area="" asp-controller="Requisitos" asp-action="Del" asp-route-id="@r.Id">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
Reference in New Issue
Block a user