source: resources/views/dashboard/documents/edit.blade.php@ b9c4a92

develop
Last change on this file since b9c4a92 was b9c4a92, checked in by Berat Kjufliju <kufliju@…>, 3 years ago

edited file upload, seeding and departments controller

  • Property mode set to 100644
File size: 4.8 KB
Line 
1@extends('layouts.app')
2
3@section("title", "Documents - Edit document")
4
5@section('pageTitle', 'Edit document')
6
7@section('content')
8
9 <div class="page-header">
10 <nav aria-label="breadcrumb" class="d-flex align-items-start">
11 <ol class="breadcrumb">
12 <li class="breadcrumb-item">
13 <a href="{{ url('dashboard/documents') }}">Documents</a>
14 </li>
15 <li class="breadcrumb-item active" aria-current="page">Edit document</li>
16 </ol>
17 </nav>
18 </div>
19
20 <div class="row">
21 <div class="col-md-12">
22
23 <div class="row">
24 <div class="col-lg-12 col-md-12">
25 <div class="tab-content" id="v-pills-tabContent">
26 <div class="tab-pane fade show active" id="v-pills-home" role="tabpanel" aria-labelledby="v-pills-home-tab">
27 <div class="card">
28 <div class="card-body">
29 <h6 class="card-title">Documents</h6>
30 <form action="{{ route("dashboard.documents.edit", ["id" => $document->id]) }}" method="post" accept-charset="utf-8" enctype="multipart/form-data">
31 @method("patch")
32 @csrf
33 <div class="row">
34 <div class="col-md-6">
35 <div class="form-group">
36 <label for="exampleFormControlSelect1">Department</label>
37 <select class="form-control edit_document_deparment" name="department" required>
38 @foreach ($departments as $department)
39 <option value="{{ $department->id }}" data-dept-code="{{ $department->code }}" {{ old("department", $document->department->id) == $department->id ? "selected" : "" }}>{{ $department->name }}</option>
40 @endforeach
41 </select>
42 </div>
43 </div>
44 <div class="col-md-6">
45 <div class="form-group">
46 <label>Archive ID</label>
47 <input type="text" name="arch_id" value="{{ old("arch_id", $document->arch_id) }}" class="form-control" placeholder="Archive ID" required>
48 </div>
49 </div>
50 </div>
51 <div class="row">
52 <div class="col-md-6">
53 <div class="form-group">
54 <label>Name</label>
55 <input type="text" name="name" value="{{ old("name", $document->name) }}" class="form-control" placeholder="Name" required>
56 </div>
57 </div>
58 <div class="col-md-6">
59 <div class="form-group">
60 <label>Description</label>
61 <textarea class="form-control" name="description" rows="3">
62 {{ old("description", $document->description) }}
63 </textarea>
64 </div>
65 </div>
66 </div>
67 <div class="row">
68 <div class="col-md-6">
69 <input type="file" class="form-control" id="file-item" name="file_item[]" multiple>
70 </div>
71 </div>
72
73 <input type="submit" value="Save changes" class="submitBtn btn btn-primary pull-right m-10">
74 </form>
75 </div>
76 </div>
77 </div>
78 </div>
79 </div>
80 </div>
81 </div>
82 </div>
83
84@endsection
Note: See TracBrowser for help on using the repository browser.