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

criar e editar areas

parent de8be23c
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
</div> </div>
</div> </div>
<hr> <hr>
<div class="row" style="margin-bottom: 200px;">
<div class="col-md-12">
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>
<tr> <tr>
...@@ -63,6 +65,8 @@ ...@@ -63,6 +65,8 @@
@endforeach @endforeach
</tbody> </tbody>
</table> </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,6 +17,8 @@ ...@@ -17,6 +17,8 @@
</div> </div>
<hr> <hr>
<div class="row" style="margin-bottom: 20px;">
<div class="col-md-12">
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>
<tr> <tr>
...@@ -55,6 +57,8 @@ ...@@ -55,6 +57,8 @@
@endforeach @endforeach
</tbody> </tbody>
</table> </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