Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WebAlumniSTEI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Trian Annas T S
WebAlumniSTEI
Commits
fee400ed
Commit
fee400ed
authored
Apr 10, 2018
by
Rachel Sidney
Browse files
Options
Downloads
Patches
Plain Diff
add back end for change access and draft
parent
cbac31fb
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/Http/Controllers/PostsController.php
+7
-7
7 additions, 7 deletions
app/Http/Controllers/PostsController.php
resources/views/admin/editpost.blade.php
+2
-2
2 additions, 2 deletions
resources/views/admin/editpost.blade.php
with
9 additions
and
9 deletions
app/Http/Controllers/PostsController.php
+
7
−
7
View file @
fee400ed
...
...
@@ -119,14 +119,14 @@ class PostsController extends Controller
'body'
=>
'required'
]);
$public
=
1
;
$draft
=
1
;
if
(
$request
->
input
(
'draft
_no
'
)
===
"
1
"
)
{
$draft
=
0
;
$public
=
'0'
;
$draft
=
'0'
;
if
(
$request
->
input
(
'draft'
)
===
"
yes
"
)
{
$draft
=
'1'
;
}
if
(
$request
->
input
(
'public
_no
'
)
===
"
1
"
)
{
$public
=
0
;
if
(
$request
->
input
(
'public'
)
===
"
yes
"
)
{
$public
=
'1'
;
}
if
(
$request
->
hasFile
(
'cover_image'
))
{
...
...
This diff is collapsed.
Click to expand it.
resources/views/admin/editpost.blade.php
+
2
−
2
View file @
fee400ed
...
...
@@ -15,7 +15,7 @@
<
div
class
=
"form-group"
>
{{
Form
::
label
(
'draft'
,
'Save As Draft'
)}}
<
label
class
=
"switch"
>
<
input
name
=
"draft"
id
=
"draft"
type
=
"checkbox"
>
<
input
name
=
"draft"
id
=
"draft"
value
=
"yes"
type
=
"checkbox"
>
<
span
class
=
"slider round"
></
span
>
</
label
>
</
div
>
...
...
@@ -23,7 +23,7 @@
<
div
class
=
"form-group"
>
{{
Form
::
label
(
'public'
,
'Save As Public'
)}}
<
label
class
=
"switch"
>
<
input
name
=
"public"
id
=
"public"
type
=
"checkbox"
>
<
input
name
=
"public"
id
=
"public"
value
=
"yes"
type
=
"checkbox"
>
<
span
class
=
"slider round"
></
span
>
</
label
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment