Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PA2-1617-D3TK05
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ropelita esterlina sihombing
PA2-1617-D3TK05
Commits
e6d48c6a
Commit
e6d48c6a
authored
May 12, 2017
by
ropelita esterlina sihombing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perubahan di aktor manager untuk memperbaiki use case pegawai supaya terhubung ke database
parent
eb07e2d1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
10 deletions
+48
-10
workspace.xml
.idea/workspace.xml
+0
-0
AuthorsController.php
app/Http/Controllers/AuthorsController.php
+1
-6
_form.blade.php
resources/views/authors/_form.blade.php
+8
-0
create_pegawai.blade.php
resources/views/authors/create_pegawai.blade.php
+37
-0
pegawai.blade.php
resources/views/authors/pegawai.blade.php
+2
-4
No files found.
.idea/workspace.xml
View file @
e6d48c6a
This diff is collapsed.
Click to expand it.
app/Http/Controllers/AuthorsController.php
View file @
e6d48c6a
...
...
@@ -16,7 +16,6 @@ class AuthorsController extends Controller
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*
*/
public
function
index
(
Request
$request
,
Builder
$htmlBuilder
)
{
...
...
@@ -28,6 +27,7 @@ class AuthorsController extends Controller
'model'
=>
$author
,
'form_url'
=>
route
(
'authors.destroy'
,
$author
->
id
),
'edit_url'
=>
route
(
'authors.edit'
,
$author
->
id
),
'confirm_message'
=>
'Yakin ingin menghapus '
.
$author
->
name
.
'?'
]);
})
->
make
(
true
);
...
...
@@ -50,11 +50,6 @@ class AuthorsController extends Controller
return
view
(
'authors.create'
);
}
public
function
pegawai
()
{
return
view
(
'authors.pegawai'
);
}
/**
* Store a newly created resource in storage.
*
...
...
resources/views/authors/_form.blade.php
View file @
e6d48c6a
...
...
@@ -12,3 +12,10 @@
</div>
</div>
<div
class=
"form-group{{ $errors->has('name') ? ' has-error' : '' }}"
>
{!! Form::label('name', 'Nama', ['class'=>'col-md-2 control-label']) !!}
<div
class=
"col-md-4"
>
{!! Form::text('name', null, ['class'=>'form-control']) !!}
{!! $errors->first('name', '
<p
class=
"help-block"
>
:message
</p>
') !!}
</div>
</div>
\ No newline at end of file
resources/views/authors/create_pegawai.blade.php
0 → 100644
View file @
e6d48c6a
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
section
id
=
"main-content"
>
<
section
class
="
wrapper
">
<div class="
container
">
<div class="
row
">
<br>
<div class="
col
-
md
-
10
">
<ul class="
breadcrumb
">
<li><a href="
{{
url
(
'/home'
)
}}
">Dashboard</a></li>
<li><a href="
{{
url
(
'/admin/authors'
)
}}
">Pelanggan</a></li>
<li class="
active
">Tambah Pelanggan</li>
</ul>
<div class="
panel
panel
-
default
">
<div class="
panel
-
heading
">
<h2 class="
panel
-
title
">Tambah Pelanggan</h2>
</div>
<div class="
panel
-
body
">
{!! Form::open(['url' => route('authors.store'),
'method' => 'post', 'class'=>'form-horizontal']) !!}
@include('authors._form')
{!! Form::close() !!}
</div>
</div>
</div>
</div>
</div>
</section>
</section>
@endsection
resources/views/authors/pegawai.blade.php
View file @
e6d48c6a
...
...
@@ -20,10 +20,8 @@
</div>
<div class="
panel
-
body
">
{!! Form::open(['url' => route('authors.store'),
'method' => 'post', 'class'=>'form-horizontal']) !!}
@include('authors._form')
{!! Form::close() !!}
<p> <a class="
btn
btn
-
primary
" href="
{{
route
(
'authors.create_pegawai'
)
}}
">Tambah</a> </p>
{!!
$html->table
(['class'=>'table-striped']) !!}
</div>
</div>
</div>
...
...
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