Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
3
3f-timesheet
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dockers
3f-timesheet
Commits
04d7f70a
Commit
04d7f70a
authored
Aug 17, 2022
by
hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
parent
fb3e31f7
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
6 deletions
+44
-6
database/migrations/2022_08_16_173021_add_filename_column_in_notes_attachement.php
+32
-0
packages/portal/timesheet/resources/views/dashboard/timesheetViewer.blade.php
+4
-3
packages/portal/timesheet/resources/views/form/notelist.blade.php
+6
-3
packages/portal/timesheet/src/Http/Controllers/FormController.php
+2
-0
public/uploads/timesheet/notes/7/ACM ICPC Programming Contest Certificate.pdf
+0
-0
No files found.
database/migrations/2022_08_16_173021_add_filename_column_in_notes_attachement.php
0 → 100644
View file @
04d7f70a
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
AddFilenameColumnInNotesAttachement
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'notes_attachement'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'filename'
,
50
)
->
after
(
'fk_timesheet_master'
)
->
nullable
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
table
(
'notes_attachement'
,
function
(
Blueprint
$table
)
{
$table
->
dropColumn
(
'filename'
);
});
}
}
packages/portal/timesheet/resources/views/dashboard/timesheetViewer.blade.php
View file @
04d7f70a
...
@@ -510,7 +510,7 @@
...
@@ -510,7 +510,7 @@
</thead>
</thead>
<tbody>
<tbody>
<tr>
<tr>
<td style="
width
:
1
3.5
%
;
">Date</td>
<td style="
width
:
1
4
%
;
">Date</td>
<td>Description</td>
<td>Description</td>
</tr>
</tr>
@if(
$notes
)
@if(
$notes
)
...
@@ -527,12 +527,13 @@
...
@@ -527,12 +527,13 @@
<table id="
printtable5
" class="
ui
celled
structured
table
unstackable
">
<table id="
printtable5
" class="
ui
celled
structured
table
unstackable
">
<thead>
<thead>
<tr>
<tr>
<th colspan="
2
" class="
center
aligned
">Attachment</th>
<th class="
center
aligned
">Title</th>
<th class="
center
aligned
">Attachment</th>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
<tr>
<tr>
<td style="
width
:
4
%
;
">
</td>
<td style="
width
:
14
%
;
">
{
{data_get($check,'attachement.filename')}
}
</td>
<td>
<td>
<a href="
{{
asset
(
data_get
(
$check
,
'attachement.path'
))}}
" target="
_blank
">
<a href="
{{
asset
(
data_get
(
$check
,
'attachement.path'
))}}
" target="
_blank
">
...
...
packages/portal/timesheet/resources/views/form/notelist.blade.php
View file @
04d7f70a
...
@@ -9,13 +9,16 @@
...
@@ -9,13 +9,16 @@
<div class="
content
">
<div class="
content
">
<form class="
ui
form
" action="
/
action
/
upload
" method="
POST
" enctype="
multipart
/
form
-
data
">
<form class="
ui
form
" action="
/
action
/
upload
" method="
POST
" enctype="
multipart
/
form
-
data
">
{
{csrf_field()}
}
{
{csrf_field()}
}
<input type="
hidden
" name="
id
" value="
{{
$fk_tm_id
}}
">
<input type="
hidden
" name="
id
" value="
{{
$fk_tm_id
}}
">
<div class="
field
">
<label for="
title
">File Name</label>
<input type="
text
" name="
filename
">
</div>
<div class="
field
">
<div class="
field
">
<label>
Tit
le</label>
<label>
Upload fi
le</label>
<input type="
file
" name="
attachment
" id="
uploadfile
" style="">
<input type="
file
" name="
attachment
" id="
uploadfile
" style=""
accept="
.
xls
,
.
xlsx
,
.
pdf
"
>
</div>
</div>
<button class="
ui
blue
button
" type="
submit
">Upload</button>
<button class="
ui
blue
button
" type="
submit
">Upload</button>
</form>
</form>
...
...
packages/portal/timesheet/src/Http/Controllers/FormController.php
View file @
04d7f70a
...
@@ -1163,12 +1163,14 @@ class FormController extends Controller
...
@@ -1163,12 +1163,14 @@ class FormController extends Controller
$upd
=
NotesAttachement
::
where
(
'fk_timesheet_master'
,
$request
->
id
)
->
first
();
$upd
=
NotesAttachement
::
where
(
'fk_timesheet_master'
,
$request
->
id
)
->
first
();
// $upd->fk_timesheet_master = $request->id;
// $upd->fk_timesheet_master = $request->id;
$upd
->
path
=
$shortpath
;
$upd
->
path
=
$shortpath
;
$upd
->
filename
=
$request
->
filename
;
$upd
->
save
();
$upd
->
save
();
}
else
{
}
else
{
$upd
=
new
NotesAttachement
;
$upd
=
new
NotesAttachement
;
$upd
->
fk_timesheet_master
=
$request
->
id
;
$upd
->
fk_timesheet_master
=
$request
->
id
;
$upd
->
filename
=
$request
->
filename
;
$upd
->
path
=
$shortpath
;
$upd
->
path
=
$shortpath
;
$upd
->
save
();
$upd
->
save
();
...
...
public/uploads/timesheet/notes/7/ACM ICPC Programming Contest Certificate.pdf
0 → 100644
View file @
04d7f70a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment