Jednostka kolejne zmiany - dodany formularz, brak kontrolera
This commit is contained in:
parent
a9ac22be16
commit
ce1f8c65be
@ -1,82 +1,70 @@
|
|||||||
@extends('layout.app')
|
@extends('layout.app')
|
||||||
|
|
||||||
|
|
||||||
@section('center-area')
|
@section('center-area')
|
||||||
@parent
|
@parent
|
||||||
|
<h2>Dodaj Jednostkę</h2>
|
||||||
|
|
||||||
{{-- <form action="/register" method="post">--}}
|
|
||||||
{{-- Użytkownik--}}
|
|
||||||
{{-- {{ csrf_field() }}--}}
|
|
||||||
{{-- <div class="form-group">--}}
|
|
||||||
{{-- <label for="title">Imię</label>--}}
|
|
||||||
{{-- <input type="text" class="form-control" id="userName" name="userName">--}}
|
|
||||||
{{-- </div>--}}
|
|
||||||
{{-- <div class="form-group">--}}
|
|
||||||
{{-- <label for="title">Nazwisko</label>--}}
|
|
||||||
{{-- <input type="text" class="form-control" id="userLastName" name="userLastName">--}}
|
|
||||||
{{-- </div>--}}
|
|
||||||
|
|
||||||
{{-- <div class="form-group">--}}
|
|
||||||
{{-- <label for="title">Pesel</label>--}}
|
|
||||||
{{-- <input type="text" class="form-control" id="userPesel" name="userPesel">--}}
|
|
||||||
{{-- </div>--}}
|
|
||||||
|
|
||||||
{{-- <div class="form-group">--}}
|
|
||||||
{{-- <label for="title">Email</label>--}}
|
|
||||||
{{-- <input type="text" class="form-control" id="userEmail" name="userEmail">--}}
|
|
||||||
{{-- </div>--}}
|
|
||||||
|
|
||||||
{{-- <label for="title">Numer telefonu</label>--}}
|
|
||||||
{{-- <input type="text" class="form-control" id="userPhone" name="userPhone">--}}
|
|
||||||
{{-- </div>--}}
|
|
||||||
|
|
||||||
{{-- <div class="form-group">--}}
|
|
||||||
{{-- <label for="title">Login</label>--}}
|
|
||||||
{{-- <input type="text" class="form-control" id="userLogin" name="userLogin">--}}
|
|
||||||
{{-- </div>--}}
|
|
||||||
|
|
||||||
{{-- <div class="form-group">--}}
|
|
||||||
{{-- <label for="title">Hasło</label>--}}
|
|
||||||
{{-- <input type="text" class="form-control" id="userPassword" name="userPassword">--}}
|
|
||||||
{{-- </div>--}}
|
|
||||||
|
|
||||||
{{-- <div class="form-group">--}}
|
|
||||||
{{-- <label for="title">Powtórz Hasło</label>--}}
|
|
||||||
{{-- <input type="text" class="form-control" id="userPassword2" name="userPassword2">--}}
|
|
||||||
{{-- </div>--}}
|
|
||||||
|
|
||||||
{{-- @if ($errors->any())--}}
|
|
||||||
{{-- <div class="alert alert-danger">--}}
|
|
||||||
{{-- <ul>--}}
|
|
||||||
{{-- @foreach ($errors->all() as $error)--}}
|
|
||||||
{{-- <li>{{ $error }}</li>--}}
|
|
||||||
{{-- @endforeach--}}
|
|
||||||
{{-- </ul>--}}
|
|
||||||
{{-- </div>--}}
|
|
||||||
{{-- @endif--}}
|
|
||||||
{{-- <button type="submit" class="btn btn-primary">Zarejestruj</button>--}}
|
|
||||||
{{-- </form>--}}
|
|
||||||
|
|
||||||
<h2>Register</h2>
|
|
||||||
<form method="POST" action="/register">
|
<form method="POST" action="/register">
|
||||||
{{ csrf_field() }}
|
{{ csrf_field() }}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="name">Imię:</label>
|
<label for="name">Nazwa Jednostki:</label>
|
||||||
<input type="text" class="form-control" id="name" name="name" value="{{ old('name') }} ">
|
<input type="text" class="form-control" id="name" name="name" value="{{ old('name') }} ">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="name">Nazwisko:</label>
|
<label for="name">Numer Jednostki:</label>
|
||||||
<input type="text" class="form-control" id="surname" name="surname" value="{{ old('surname') }}">
|
<input type="text" class="form-control" id="number" name="number" value="{{ old('number') }}">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
||||||
<label for="name">Pesel:</label>
|
<label for="name">Województwo:</label>
|
||||||
<input type="text" class="form-control" id="PESEL" name="PESEL" value="{{ old('PESEL') }}">
|
<input type="text" class="form-control" id="voivodeship" name="voivodeship" value="{{ old('voivodeship') }}">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="name">Powiat:</label>
|
||||||
|
<input type="text" class="form-control" id="county" name="county" value="{{ old('county') }}">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="name">Gmina:</label>
|
||||||
|
<input type="text" class="form-control" id="community" name="community" value="{{ old('community') }}">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="name">Urząd Pocztowy:</label>
|
||||||
|
<input type="text" class="form-control" id="postOffice" name="postOffice" value="{{ old('postOffice') }}">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="name">Kod Pocztowy:</label>
|
||||||
|
<input type="text" class="form-control" id="zipCode" name="zipCode" value="{{ old('zipCode') }}">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="name">Ulica:</label>
|
||||||
|
<input type="text" class="form-control" id="address" name="address" value="{{ old('address') }}">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="name">Szerokośc Geograficzna:</label>
|
||||||
|
<input type="text" class="form-control" id="latitude" name="latitude" value="{{ old('latitude') }}">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="name">Długość Geograficzna:</label>
|
||||||
|
<input type="text" class="form-control" id="longitude" name="longitude" value="{{ old('longitude') }}">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="name">KRS:</label>
|
||||||
|
<input type="text" class="form-control" id="KRS" name="KRS" value="{{ old('KRS') }}">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="name">NIP:</label>
|
||||||
|
<input type="text" class="form-control" id="NIP" name="NIP" value="{{ old('NIP') }}">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -85,29 +73,10 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="email">Adres e-mail:</label>
|
<label for="name">Email:</label>
|
||||||
<input type="email" class="form-control" id="email" name="email" value="{{ old('email') }}">
|
<input type="email" class="form-control" id="email" name="email" value="{{ old('email') }}">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="password">Hasło:</label>
|
|
||||||
<input type="password" class="form-control" id="password" name="password">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="password_confirmation">Powtórz hasło:</label>
|
|
||||||
<input type="password" class="form-control" id="password_confirmation" name="password_confirmation">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@if ($errors->any())
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
<ul>
|
|
||||||
@foreach ($errors->all() as $error)
|
|
||||||
<li>{{ $error }}</li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<button style="cursor:pointer" type="submit" class="btn btn-primary">Submit</button>
|
<button style="cursor:pointer" type="submit" class="btn btn-primary">Submit</button>
|
||||||
|
@ -99,16 +99,6 @@
|
|||||||
<input type="password" class="form-control" id="password_confirmation" name="password_confirmation">
|
<input type="password" class="form-control" id="password_confirmation" name="password_confirmation">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if ($errors->any())
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
<ul>
|
|
||||||
@foreach ($errors->all() as $error)
|
|
||||||
<li>{{ $error }}</li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<button style="cursor:pointer" type="submit" class="btn btn-primary">Submit</button>
|
<button style="cursor:pointer" type="submit" class="btn btn-primary">Submit</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
@if( auth()->check() )
|
@if( auth()->check() )
|
||||||
@if( auth()->user()->fireStationID == NULL)
|
@if( auth()->user()->fireStationID == NULL)
|
||||||
null
|
null
|
||||||
|
@include('inc.addFireStation')
|
||||||
@else
|
@else
|
||||||
notnull
|
notnull
|
||||||
<div>
|
<div>
|
||||||
|
Loading…
Reference in New Issue
Block a user