Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @extends('admin.layouts.default')
- @section('header')
- @stop
- @section('content')
- <style>
- .file-field input[type="file"] {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 100%;
- cursor: pointer;
- opacity: 0;
- }
- </style>
- <div class="content-w">
- <div class="content-i">
- <div class="content-box">
- @if(session('error'))
- <div class="alert alert-danger"> {{ session('error') }} </div>
- @endif
- <div class="element-wrapper mt-4">
- <div class="row">
- <div class="col-sm-4">
- <h6 class="element-header">
- Adicionar Pedido
- </h6>
- </div>
- </div>
- <div class="element-box tableDataContainer" id="tableDataContainer">
- <form role="form" method="POST" novalidate=""
- action="{{route('requests.add_request')}}"
- enctype="multipart/form-data">
- <div class="row">
- <div class="col-sm-12">
- <h6 class="element-header full">
- Adicionar
- </h6>
- <div class="row align-items-end">
- <div class="col-sm-4">
- <div class="form-group">
- <label for="">NIF/Nome do Cliente</label>
- <input list="clients_list" value="{{old("client_nif")}}" name="client_nif" class="form-control" placeholder="Nome do cliente" autofocus>
- <datalist id="clients_list">
- @foreach ($clients_list as $client)
- <option data-id="{{$client->id}}" label="{{$client->name}}">{{$client->nif}}</option>
- @endforeach
- </datalist>
- @if ($errors->has('client_id'))
- <span class="help-block text-danger" >
- <strong>{{ $errors->first('client_id') }}</strong>
- </span>
- @endif
- </div>
- </div>
- <div class="col-sm-4">
- <div class="form-group">
- <label for="">Tipo de Atendimento</label>
- <select class="mdb-select md-form form-control" name="request_type">
- <option value="Balcão">Balcão</option>
- <option value="E-mail">E-mail</option>
- <option value="Telefone">Telefone</option>
- </select>
- @if ($errors->has('request_type'))
- <span class="help-block text-danger">
- <strong>{{ $errors->first('request_type') }}</strong>
- </span>
- @endif
- </div>
- </div>
- <div class="col-sm-4">
- <div class="form-group">
- <label for="">Numeração</label>
- <p><input class="form-control" type="text" name="numeration" disabled></p>
- </div>
- </div>
- <div class="col-sm-12">
- <div class="form-group">
- <label for="">Descrição do Pedido</label>
- <textarea class="form-control rounded-0" rows="10" name="description"
- placeholder="(Required)"></textarea>
- @if ($errors->has('description'))
- <span class="help-block text-danger" >
- <strong>{{ $errors->first('description') }}</strong>
- </span>
- @endif
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="row align-items-center">
- <div class="col-sm-6">
- <div class="form-group file-loading">
- <label for="">Ficheiros adicionais</label>
- <div class="control-group form-group" >
- {{-- OLA<input type="file" name="files[]" class="form-control"> --}}
- <div class="file-field control-group form-group">
- <div class="row align-items-center ml-auto">
- <div class="btn btn-primary position-relative">
- <span>Escolher Ficheiro</span>
- <input type="file" name="files[]" id="file_id" class="id_0">
- </div>
- <div class="file-path-wrapper pl-1">
- <input id="show_file_name" class="file-path validate form-control id_0" type="text" placeholder="Nome do ficheiro" disabled>
- </div>
- </div>
- </div>
- </div>
- <div class="files_div"></div>
- <div class="input-group-btn">
- <button class="btn btn-success btn-add-more" type="button">
- <i class="fa fa-plus"></i></button>
- </div>
- <!-- FILE CLONE -->
- <div class="clone" hidden>
- <div class="file-field control-group form-group">
- <div class="row align-items-center ml-auto">
- <div class="btn btn-primary position-relative">
- <span>Escolher Ficheiro</span>
- <input type="file" name="files[]" id="file_id" class="id_0">
- </div>
- <div class="file-path-wrapper pl-1">
- <input id="show_file_name" class="file-path validate form-control id_0" type="text" placeholder="Nome do ficheiro" disabled>
- </div>
- <div>
- <button class="btn btn-danger btn-remove" type="button">
- <i class="fa fa-trash"></i></button>
- </div>
- </div>
- </div>
- </div>
- <br />
- @if ($errors->has('file'))
- <span class="help-block text-danger">
- <strong>{{ $errors->first('file') }}</strong>
- </span>
- @endif
- </div>
- </div>
- </div>
- <div class="col-sm-12">
- <div class="form-buttons-w form-buttons-custom text-left">
- <button class="btn btn-success">Submeter</button>
- <input class="btn btn-warning" type="reset" value="Limpar">
- <a href="/pedidos/lista" class="btn btn-default">Cancel</a>
- </div>
- </div>
- <input type="hidden" name="_token" value="{{{ csrf_token() }}}" />
- </form>
- </div>
- </div>
- {{-- File input test --}}
- </div>
- </div>
- </div>
- @stop
- @section('scripts')
- <script>
- add_request_input_files_scripts();
- </script>
- @stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement