1
0
forked from s421507/eOSP2

Jednostka kolejne zmiany - dodany formularz, brak kontrolera

This commit is contained in:
czup 2019-09-19 12:20:48 +02:00
parent a9ac22be16
commit ce1f8c65be
3 changed files with 54 additions and 95 deletions

View File

@ -1,82 +1,70 @@
@extends('layout.app')
@section('center-area')
@parent
{{-- <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>
@parent
<h2>Dodaj Jednostkę</h2>
<form method="POST" action="/register">
{{ csrf_field() }}
<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') }} ">
</div>
<div class="form-group">
<label for="name">Nazwisko:</label>
<input type="text" class="form-control" id="surname" name="surname" value="{{ old('surname') }}">
<label for="name">Numer Jednostki:</label>
<input type="text" class="form-control" id="number" name="number" value="{{ old('number') }}">
</div>
<div class="form-group">
<label for="name">Pesel:</label>
<input type="text" class="form-control" id="PESEL" name="PESEL" value="{{ old('PESEL') }}">
<label for="name">Województwo:</label>
<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 class="form-group">
@ -85,29 +73,10 @@
</div>
<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') }}">
</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">
<button style="cursor:pointer" type="submit" class="btn btn-primary">Submit</button>

View File

@ -99,16 +99,6 @@
<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">
<button style="cursor:pointer" type="submit" class="btn btn-primary">Submit</button>
</div>

View File

@ -15,7 +15,7 @@
@if( auth()->check() )
@if( auth()->user()->fireStationID == NULL)
null
@include('inc.addFireStation')
@else
notnull
<div>