Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
Platform
Commits
40c254ef
Unverified
Commit
40c254ef
authored
Sep 16, 2017
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding content header to the components itself
parent
7cf141fc
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22122 additions
and
21951 deletions
+22122
-21951
PageForm.vue
Modules/Page/Assets/js/components/PageForm.vue
+129
-109
PageTableServerSide.vue
Modules/Page/Assets/js/components/PageTableServerSide.vue
+64
-48
create.blade.php
Modules/Page/Resources/views/admin/create.blade.php
+0
-8
edit.blade.php
Modules/Page/Resources/views/admin/edit.blade.php
+0
-8
index.blade.php
Modules/Page/Resources/views/admin/index.blade.php
+0
-7
app.js
public/js/app.js
+21929
-21771
No files found.
Modules/Page/Assets/js/components/PageForm.vue
View file @
40c254ef
This diff is collapsed.
Click to expand it.
Modules/Page/Assets/js/components/PageTableServerSide.vue
View file @
40c254ef
<
template
>
<div
class=
"row"
>
<div
class=
"col-xs-12"
>
<div
class=
"box box-primary"
>
<div
class=
"box-body"
>
<div
class=
"sc-table"
>
<div
class=
"tool-bar el-row"
style=
"padding-bottom: 20px;"
>
<div
class=
"actions el-col el-col-5"
>
<router-link
:to=
"
{name: 'admin.page.page.create'}">
<el-button
type=
"primary"
><i
class=
"el-icon-edit"
></i>
{{
translate
(
'
page
'
,
'
create page
'
)
}}
</el-button>
</router-link>
</div>
<div
class=
"search el-col el-col-5"
>
<el-input
icon=
"search"
@
change=
"performSearch"
v-model=
"searchQuery"
>
</el-input>
<div
class=
"div"
>
<div
class=
"content-header"
>
<h1>
{{
translate
(
'
page
'
,
'
pages
'
)
}}
</h1>
<el-breadcrumb
separator=
"/"
>
<el-breadcrumb-item>
<a
href=
"/backend"
>
Home
</a>
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{name: 'admin.page.page.index'}">
{{
translate
(
'
page
'
,
'
pages
'
)
}}
</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div
class=
"row"
>
<div
class=
"col-xs-12"
>
<div
class=
"box box-primary"
>
<div
class=
"box-body"
>
<div
class=
"sc-table"
>
<div
class=
"tool-bar el-row"
style=
"padding-bottom: 20px;"
>
<div
class=
"actions el-col el-col-5"
>
<router-link
:to=
"
{name: 'admin.page.page.create'}">
<el-button
type=
"primary"
><i
class=
"el-icon-edit"
></i>
{{
translate
(
'
page
'
,
'
create page
'
)
}}
</el-button>
</router-link>
</div>
<div
class=
"search el-col el-col-5"
>
<el-input
icon=
"search"
@
change=
"performSearch"
v-model=
"searchQuery"
>
</el-input>
</div>
</div>
</div>
<el-table
:data=
"data"
stripe
style=
"width: 100%"
v-loading
.
body=
"tableIsLoading"
@
sort-change=
"handleSortChange"
>
<el-table-column
prop=
"id"
label=
"Id"
width=
"100"
sortable=
"custom"
>
</el-table-column>
<el-table-column
prop=
"translations.title"
:label=
"translate('page', 'title')"
>
</el-table-column>
<el-table-column
prop=
"translations.slug"
label=
"Slug"
>
</el-table-column>
<el-table-column
prop=
"created_at"
label=
"Created at"
sortable=
"custom"
>
</el-table-column>
<el-table-column
fixed=
"right"
prop=
"actions"
label=
"Actions"
>
<template
scope=
"scope"
>
<a
class=
"btn btn-default btn-flat"
@
click
.
prevent=
"goToEdit(scope)"
><i
class=
"fa fa-pencil"
></i></a>
<el-table
:data=
"data"
stripe
style=
"width: 100%"
v-loading
.
body=
"tableIsLoading"
@
sort-change=
"handleSortChange"
>
<el-table-column
prop=
"id"
label=
"Id"
width=
"100"
sortable=
"custom"
>
</el-table-column>
<el-table-column
prop=
"translations.title"
:label=
"translate('page', 'title')"
>
</el-table-column>
<el-table-column
prop=
"translations.slug"
label=
"Slug"
>
</el-table-column>
<el-table-column
prop=
"created_at"
label=
"Created at"
sortable=
"custom"
>
</el-table-column>
<el-table-column
fixed=
"right"
prop=
"actions"
label=
"Actions"
>
<template
scope=
"scope"
>
<a
class=
"btn btn-default btn-flat"
@
click
.
prevent=
"goToEdit(scope)"
><i
class=
"fa fa-pencil"
></i></a>
<delete-button
:scope=
"scope"
:rows=
"data"
:translations=
"translations"
>
</delete-button>
</
template
>
</el-table-column>
</el-table>
<div
class=
"pagination-wrap"
style=
"text-align: center; padding-top: 20px;"
>
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"meta.current_page"
:page-sizes=
"[10, 20, 50, 100]"
:page-size=
"parseInt(meta.per_page)"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"meta.total"
>
</el-pagination>
<delete-button
:scope=
"scope"
:rows=
"data"
:translations=
"translations"
>
</delete-button>
</
template
>
</el-table-column>
</el-table>
<div
class=
"pagination-wrap"
style=
"text-align: center; padding-top: 20px;"
>
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"meta.current_page"
:page-sizes=
"[10, 20, 50, 100]"
:page-size=
"parseInt(meta.per_page)"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"meta.total"
>
</el-pagination>
</div>
</div>
</div>
</div>
...
...
Modules/Page/Resources/views/admin/create.blade.php
View file @
40c254ef
@
extends
(
'layouts.master'
)
@
section
(
'content-header'
)
<
h1
>
{{
trans
(
'page::pages.create page'
)
}}
</
h1
>
<
ol
class
="
breadcrumb
">
<li><a href="
{{
route
(
'dashboard.index'
)
}}
"><i class="
fa
fa
-
dashboard
"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li><a href="
{{
route
(
'admin.page.page.index'
)
}}
">{{ trans('page::pages.pages') }}</a></li>
<li class="
active
">{{ trans('page::pages.create page') }}</li>
</ol>
@
stop
@
push
(
'css-stack'
)
...
...
Modules/Page/Resources/views/admin/edit.blade.php
View file @
40c254ef
@
extends
(
'layouts.master'
)
@
section
(
'content-header'
)
<
h1
>
{{
trans
(
'page::pages.edit page'
)
}}
</
h1
>
<
ol
class
="
breadcrumb
">
<li><a href="
{{
route
(
'dashboard.index'
)
}}
"><i class="
fa
fa
-
dashboard
"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li><a href="
{{
route
(
'admin.page.page.index'
)
}}
">{{ trans('page::pages.pages') }}</a></li>
<li class="
active
">{{ trans('page::pages.edit page') }}</li>
</ol>
@
stop
@
push
(
'css-stack'
)
...
...
Modules/Page/Resources/views/admin/index.blade.php
View file @
40c254ef
@extends('layouts.master')
@section('content-header')
<h1>
{{ trans('page::pages.pages') }}
</h1>
<ol
class=
"breadcrumb"
>
<li><a
href=
"{{ route('dashboard.index') }}"
><i
class=
"fa fa-dashboard"
></i>
{{ trans('core::core.breadcrumb.home') }}
</a></li>
<li
class=
"active"
>
{{ trans('page::pages.pages') }}
</li>
</ol>
@stop
@section('content')
...
...
public/js/app.js
View file @
40c254ef
This diff is collapsed.
Click to expand it.
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