Commit 015d3c6b authored by Carlos André's avatar Carlos André
Browse files

criar e editar areas

parent de8be23c
...@@ -26,43 +26,47 @@ ...@@ -26,43 +26,47 @@
</div> </div>
</div> </div>
<hr> <hr>
<table class="table table-bordered"> <div class="row" style="margin-bottom: 200px;">
<thead> <div class="col-md-12">
<tr> <table class="table table-bordered">
<th scope="col">Nome</th> <thead>
<th scope="col">Opção</th> <tr>
</tr> <th scope="col">Nome</th>
</thead> <th scope="col">Opção</th>
<tbody> </tr>
@foreach ($subAreas as $subArea) </thead>
<tr> <tbody>
<td> @foreach ($subAreas as $subArea)
{{ $subArea->nome }} <tr>
</td> <td>
<td> {{ $subArea->nome }}
<div class="btn-group dropright dropdown-options"> </td>
<a id="options" class="dropdown-toggle " data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <td>
<img src="{{asset('img/icons/ellipsis-v-solid.svg')}}" style="width:8px"> <div class="btn-group dropright dropdown-options">
</a> <a id="options" class="dropdown-toggle " data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<div class="dropdown-menu"> <img src="{{asset('img/icons/ellipsis-v-solid.svg')}}" style="width:8px">
<a href="{{ route('subarea.editar', ['id' => $subArea->id]) }}" class="dropdown-item text-center"> </a>
Editar <div class="dropdown-menu">
</a> <a href="{{ route('subarea.editar', ['id' => $subArea->id]) }}" class="dropdown-item text-center">
<form method="POST" action="{{ route('subarea.deletar', ['id' => $subArea->id]) }}"> Editar
{{ csrf_field() }} </a>
<button type="submit" class="dropdown-item dropdown-item-delete text-center"> <form method="POST" action="{{ route('subarea.deletar', ['id' => $subArea->id]) }}">
<img src="{{asset('img/icons/logo_lixeira.png')}}" alt=""> {{ csrf_field() }}
Deletar <button type="submit" class="dropdown-item dropdown-item-delete text-center">
</button> <img src="{{asset('img/icons/logo_lixeira.png')}}" alt="">
Deletar
</form> </button>
</div>
</div> </form>
</td> </div>
</tr> </div>
@endforeach </td>
</tbody> </tr>
</table> @endforeach
</tbody>
</table>
</div>
</div>
</div> </div>
@endsection @endsection
\ No newline at end of file
...@@ -2,17 +2,17 @@ ...@@ -2,17 +2,17 @@
@section('content') @section('content')
<div class="container" > <div class="container" style="margin-top: 50px; ">
<div class="row" > <div class="row" >
<div class="col-sm-12"> <div class="col-sm-12">
<h2 style="margin-top: 100px; ">{{ __('Editar uma área') }}</h2> <h2 style="color: rgb(0, 140, 255);">{{ __('Editar uma área') }}</h2>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<form method="POST" action="{{ route('area.atualizar', ['id' => $area->id])}}"> <form method="POST" action="{{ route('area.atualizar', ['id' => $area->id])}}">
@csrf @csrf
<div class="col-sm-12"> <div class="col-sm-12">
<label for="nome" class="col-form-label">{{ __('Nome') }}</label> <label for="nome" class="col-form-label" style="color: rgb(0, 140, 255);">{{ __('Nome') }}<span style="color: red;"> *</span></label>
<input id="nome" type="text" class="form-control @error('nome') is-invalid @enderror" name="nome" value="{{ $area->nome }}" required autocomplete="nome" autofocus> <input id="nome" type="text" class="form-control @error('nome') is-invalid @enderror" name="nome" value="{{ $area->nome }}" required autocomplete="nome" autofocus>
@error('nome') @error('nome')
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</span> </span>
@enderror @enderror
<button type="submit" class="btn btn-primary" style="position:relative;top:10px;">{{ __('Salvar') }}</button> <button type="submit" class="btn btn-info" style="position:relative;top:10px;">{{ __('Salvar') }}</button>
</div> </div>
</form> </form>
</div> </div>
......
...@@ -2,17 +2,17 @@ ...@@ -2,17 +2,17 @@
@section('content') @section('content')
<div class="container" > <div class="container" style="margin-top: 50px;">
<div class="row" > <div class="row" >
<div class="col-sm-12"> <div class="col-sm-12">
<h2 style="margin-top: 100px; ">{{ __('Criar uma nova área') }}</h2> <h2 style="color: rgb(0, 140, 255);">{{ __('Criar uma nova área') }}</h2>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<form method="POST" action="{{ route('area.salvar', ['id' => $grandeAreaId])}}"> <form method="POST" action="{{ route('area.salvar', ['id' => $grandeAreaId])}}">
@csrf @csrf
<div class="col-sm-12"> <div class="col-sm-12">
<label for="nome" class="col-form-label">{{ __('Nome') }}</label> <label for="nome" class="col-form-label" style="color: rgb(0, 140, 255);">{{ __('Nome') }}<span style="color: red;"> *</span></label>
<input id="nome" type="text" class="form-control @error('nome') is-invalid @enderror" name="nome" value="{{ old('nome') }}" required autocomplete="nome" autofocus> <input id="nome" type="text" class="form-control @error('nome') is-invalid @enderror" name="nome" value="{{ old('nome') }}" required autocomplete="nome" autofocus>
@error('nome') @error('nome')
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</span> </span>
@enderror @enderror
<button type="submit" class="btn btn-primary" style="position:relative;top:10px;">{{ __('Salvar') }}</button> <button type="submit" class="btn btn-info" style="position:relative;top:10px;">{{ __('Salvar') }}</button>
</div> </div>
</form> </form>
</div> </div>
......
...@@ -2,17 +2,17 @@ ...@@ -2,17 +2,17 @@
@section('content') @section('content')
<div class="container" > <div class="container" style="margin-top: 50px; ">
<div class="row" > <div class="row" >
<div class="col-sm-12"> <div class="col-sm-12">
<h2 style="margin-top: 100px; ">{{ __('Editar uma área') }}</h2> <h2 style="color: rgb(0, 140, 255);">{{ __('Editar uma área') }}</h2>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<form method="POST" action="{{ route('grandearea.atualizar', ['id' => $grandeArea->id])}}"> <form method="POST" action="{{ route('grandearea.atualizar', ['id' => $grandeArea->id])}}">
@csrf @csrf
<div class="col-sm-12"> <div class="col-sm-12">
<label for="nome" class="col-form-label">{{ __('Nome') }}</label> <label for="nome" class="col-form-label" style="color: rgb(0, 140, 255);">{{ __('Nome') }}<span style="color: red;"> *</span></label>
<input id="nome" type="text" class="form-control @error('nome') is-invalid @enderror" name="nome" value="{{ $grandeArea->nome }}" required autocomplete="nome" autofocus> <input id="nome" type="text" class="form-control @error('nome') is-invalid @enderror" name="nome" value="{{ $grandeArea->nome }}" required autocomplete="nome" autofocus>
@error('nome') @error('nome')
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</span> </span>
@enderror @enderror
<button type="submit" class="btn btn-primary" style="position:relative;top:10px;">{{ __('Salvar') }}</button> <button type="submit" class="btn btn-info" style="position:relative;top:10px;">{{ __('Salvar') }}</button>
</div> </div>
</form> </form>
</div> </div>
......
...@@ -2,18 +2,18 @@ ...@@ -2,18 +2,18 @@
@section('content') @section('content')
<div class="container" > <div class="container" style="margin-top: 50px;">
<div class="row" > <div class="row" >
<div class="col-sm-12"> <div class="col-sm-12">
<h2 style="margin-top: 100px; ">{{ __('Criar uma nova área') }}</h2> <h2 style="color: rgb(0, 140, 255);">{{ __('Criar uma nova grande área') }}</h2>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<form method="POST" action="{{ route('grandearea.salvar')}}"> <form method="POST" action="{{ route('grandearea.salvar')}}">
@csrf @csrf
<div class="col-sm-12"> <div class="col-sm-12">
<label for="nome" class="col-form-label">{{ __('Nome') }}</label> <label for="nome" class="col-form-label" style="color: rgb(0, 140, 255);">{{ __('Nome') }}<span style="color: red;"> *</span></label>
<input id="nome" type="text" class="form-control @error('nome') is-invalid @enderror" name="nome" value="{{ old('nome') }}" required autocomplete="nome" autofocus> <input id="nome" type="text" class="form-control @error('nome') is-invalid @enderror" name="nome" value="{{ old('nome') }}" required autocomplete="nome" autofocus >
@error('nome') @error('nome')
<span class="invalid-feedback" role="alert"> <span class="invalid-feedback" role="alert">
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</span> </span>
@enderror @enderror
<button type="submit" class="btn btn-primary" style="position:relative;top:10px;">{{ __('Salvar') }}</button> <button type="submit" class="btn btn-info" style="position:relative;top:10px;">{{ __('Salvar') }}</button>
</div> </div>
</form> </form>
</div> </div>
......
...@@ -2,17 +2,17 @@ ...@@ -2,17 +2,17 @@
@section('content') @section('content')
<div class="container" > <div class="container" style="margin-top: 50px; ">
<div class="row" > <div class="row" >
<div class="col-sm-12"> <div class="col-sm-12">
<h2 style="margin-top: 100px; ">{{ __('Editar uma subárea') }}</h2> <h2 style="color: rgb(0, 140, 255);">{{ __('Editar uma subárea') }}</h2>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<form method="POST" action="{{ route('subarea.atualizar', ['id' => $subarea->id])}}"> <form method="POST" action="{{ route('subarea.atualizar', ['id' => $subarea->id])}}">
@csrf @csrf
<div class="col-sm-12"> <div class="col-sm-12">
<label for="nome" class="col-form-label">{{ __('Nome') }}</label> <label for="nome" class="col-form-label" style="color: rgb(0, 140, 255);">{{ __('Nome') }}<span style="color: red;"> *</span></label>
<input id="nome" type="text" class="form-control @error('nome') is-invalid @enderror" name="nome" value="{{ $subarea->nome }}" required autocomplete="nome" autofocus> <input id="nome" type="text" class="form-control @error('nome') is-invalid @enderror" name="nome" value="{{ $subarea->nome }}" required autocomplete="nome" autofocus>
@error('nome') @error('nome')
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</span> </span>
@enderror @enderror
<button type="submit" class="btn btn-primary" style="position:relative;top:10px;">{{ __('Salvar') }}</button> <button type="submit" class="btn btn-info" style="position:relative;top:10px;">{{ __('Salvar') }}</button>
</div> </div>
</form> </form>
</div> </div>
......
...@@ -17,44 +17,48 @@ ...@@ -17,44 +17,48 @@
</div> </div>
<hr> <hr>
<table class="table table-bordered"> <div class="row" style="margin-bottom: 20px;">
<thead> <div class="col-md-12">
<tr> <table class="table table-bordered">
<th scope="col">Nome</th> <thead>
<th scope="col">Opção</th> <tr>
</tr> <th scope="col">Nome</th>
</thead> <th scope="col">Opção</th>
<tbody> </tr>
@foreach ($subAreas as $subArea) </thead>
<tr> <tbody>
<td> @foreach ($subAreas as $subArea)
{{ $subArea->nome }} <tr>
</td> <td>
<td> {{ $subArea->nome }}
<div class="btn-group dropright dropdown-options"> </td>
<a id="options" class="dropdown-toggle " data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <td>
<img src="{{asset('img/icons/ellipsis-v-solid.svg')}}" style="width:8px"> <div class="btn-group dropright dropdown-options">
</a> <a id="options" class="dropdown-toggle " data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<div class="dropdown-menu"> <img src="{{asset('img/icons/ellipsis-v-solid.svg')}}" style="width:8px">
<a href="{{ route('subarea.editar', ['id' => $subArea->id]) }}" class="dropdown-item"> </a>
<img src="{{asset('img/icons/edit-regular.svg')}}" class="icon-card" alt=""> <div class="dropdown-menu">
Editar <a href="{{ route('subarea.editar', ['id' => $subArea->id]) }}" class="dropdown-item">
</a> <img src="{{asset('img/icons/edit-regular.svg')}}" class="icon-card" alt="">
<form method="POST" action="{{ route('subarea.deletar', ['id' => $subArea->id]) }}"> Editar
{{ csrf_field() }} </a>
<button type="submit" class="dropdown-item"> <form method="POST" action="{{ route('subarea.deletar', ['id' => $subArea->id]) }}">
<img src="{{asset('img/icons/trash-alt-regular.svg')}}" class="icon-card" alt=""> {{ csrf_field() }}
Deletar <button type="submit" class="dropdown-item">
</button> <img src="{{asset('img/icons/trash-alt-regular.svg')}}" class="icon-card" alt="">
Deletar
</form> </button>
</div>
</div> </form>
</td> </div>
</tr> </div>
@endforeach </td>
</tbody> </tr>
</table> @endforeach
</tbody>
</table>
</div>
</div>
</div> </div>
@endsection @endsection
\ No newline at end of file
...@@ -2,17 +2,17 @@ ...@@ -2,17 +2,17 @@
@section('content') @section('content')
<div class="container" > <div class="container" style="margin-top: 50px; ">
<div class="row" > <div class="row" >
<div class="col-sm-12"> <div class="col-sm-12">
<h2 style="margin-top: 100px; ">{{ __('Criar uma nova subárea') }}</h2> <h2 style="color: rgb(0, 140, 255);">{{ __('Criar uma nova subárea') }}</h2>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<form method="POST" action="{{ route('subarea.salvar', ['id' => $areaId])}}"> <form method="POST" action="{{ route('subarea.salvar', ['id' => $areaId])}}">
@csrf @csrf
<div class="col-sm-12"> <div class="col-sm-12">
<label for="nome" class="col-form-label">{{ __('Nome') }}</label> <label for="nome" class="col-form-label" style="color: rgb(0, 140, 255);">{{ __('Nome') }}<span style="color: red;"> *</span></label>
<input id="nome" type="text" class="form-control @error('nome') is-invalid @enderror" name="nome" value="{{ old('nome') }}" required autocomplete="nome" autofocus> <input id="nome" type="text" class="form-control @error('nome') is-invalid @enderror" name="nome" value="{{ old('nome') }}" required autocomplete="nome" autofocus>
@error('nome') @error('nome')
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</span> </span>
@enderror @enderror
<button type="submit" class="btn btn-primary" style="position:relative;top:10px;">{{ __('Salvar') }}</button> <button type="submit" class="btn btn-info" style="position:relative;top:10px;">{{ __('Salvar') }}</button>
</div> </div>
</form> </form>
</div> </div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment