Skip to content

Commit

Permalink
Making Websites With October CMS - Part 34 - Backend Lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Dorić committed Mar 25, 2017
1 parent 5a97ff1 commit fa9f7d4
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 38 deletions.
114 changes: 82 additions & 32 deletions octobermovies.sublime-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -336,18 +336,27 @@
"buffers":
[
{
"file": "themes/olympos/layouts/static-layout.htm",
"file": "plugins/watchlearn/movies/models/movie/columns.yaml",
"settings":
{
"buffer_size": 2187,
"line_ending": "Windows"
"buffer_size": 449,
"line_ending": "Unix"
}
},
{
"file": "plugins/watchlearn/movies/models/movie/_poster_column.htm",
"settings":
{
"buffer_size": 95,
"encoding": "UTF-8",
"line_ending": "Unix"
}
},
{
"file": "themes/olympos/partials/footer.htm",
"file": "plugins/watchlearn/movies/models/actor/columns.yaml",
"settings":
{
"buffer_size": 311,
"buffer_size": 154,
"line_ending": "Unix"
}
}
Expand Down Expand Up @@ -574,13 +583,17 @@
"expanded_folders":
[
"/Users/idoric/Development/public/octobermovies",
"/Users/idoric/Development/public/octobermovies/themes",
"/Users/idoric/Development/public/octobermovies/themes/olympos",
"/Users/idoric/Development/public/octobermovies/themes/olympos/layouts",
"/Users/idoric/Development/public/octobermovies/themes/olympos/partials"
"/Users/idoric/Development/public/octobermovies/plugins",
"/Users/idoric/Development/public/octobermovies/plugins/watchlearn",
"/Users/idoric/Development/public/octobermovies/plugins/watchlearn/movies",
"/Users/idoric/Development/public/octobermovies/plugins/watchlearn/movies/models",
"/Users/idoric/Development/public/octobermovies/plugins/watchlearn/movies/models/actor",
"/Users/idoric/Development/public/octobermovies/plugins/watchlearn/movies/models/movie",
"/Users/idoric/Development/public/octobermovies/themes/olympos"
],
"file_history":
[
"/Users/idoric/Development/public/octobermovies/themes/olympos/layouts/static-layout.htm",
"/Users/idoric/Development/public/octobermovies/themes/olympos/layouts/default.htm",
"/Users/idoric/Development/public/octobermovies/plugins/watchlearn/movies/controllers/movies/_list_toolbar.htm",
"/Users/idoric/Development/public/octobermovies/plugins/watchlearn/movies/controllers/movies/update.htm",
Expand Down Expand Up @@ -707,8 +720,7 @@
"/Users/ivan/Development/public/activenation/wp-content/themes/olympos/sass/_404.scss",
"/Users/ivan/Development/public/activenation/wp-content/themes/olympos/sass/modules/_lockeroom-article.scss",
"/Users/ivan/Development/public/activenation/wp-content/themes/olympos/sass/_lockeroom-single.scss",
"/Users/ivan/Development/public/activenation/wp-content/themes/olympos/parts/single-venue/prices.php",
"/Users/ivan/Development/public/activenation/wp-content/themes/olympos/sass/_modules.scss"
"/Users/ivan/Development/public/activenation/wp-content/themes/olympos/parts/single-venue/prices.php"
],
"find":
{
Expand Down Expand Up @@ -921,68 +933,68 @@
"groups":
[
{
"selected": 0,
"selected": 2,
"sheets":
[
{
"buffer": 0,
"file": "themes/olympos/layouts/static-layout.htm",
"file": "plugins/watchlearn/movies/models/movie/columns.yaml",
"semi_transient": false,
"settings":
{
"buffer_size": 2187,
"buffer_size": 449,
"regions":
{
},
"selection":
[
[
1192,
1192
113,
113
]
],
"settings":
{
"incomplete_sync": null,
"open_with_edit": true,
"remote_loading": false,
"synced": false,
"syntax": "Packages/Twig/Syntaxes/HTML (Twig).tmLanguage",
"tabs_extra_last_activated": 1489842177.9,
"syntax": "Packages/YAML/YAML.sublime-syntax",
"tabs_extra_last_activated": 1490437277.97,
"tabs_extra_last_activated_sheet_index": 0,
"tabs_extra_spawned": true
},
"translation.x": 0.0,
"translation.y": 1310.0,
"translation.y": 0.0,
"zoom_level": 1.0
},
"stack_index": 0,
"stack_index": 2,
"type": "text"
},
{
"buffer": 1,
"file": "themes/olympos/partials/footer.htm",
"semi_transient": true,
"file": "plugins/watchlearn/movies/models/movie/_poster_column.htm",
"semi_transient": false,
"settings":
{
"buffer_size": 311,
"buffer_size": 95,
"regions":
{
},
"selection":
[
[
311,
0
95,
95
]
],
"settings":
{
"_anf_new": "",
"incomplete_sync": null,
"remote_loading": false,
"synced": false,
"syntax": "Packages/Twig/Syntaxes/HTML (Twig).tmLanguage",
"tabs_extra_last_activated": 1489837591.28,
"tabs_extra_last_activated": 1490438337.01,
"tabs_extra_last_activated_sheet_index": 1,
"tabs_extra_spawned": true
},
Expand All @@ -992,6 +1004,40 @@
},
"stack_index": 1,
"type": "text"
},
{
"buffer": 2,
"file": "plugins/watchlearn/movies/models/actor/columns.yaml",
"semi_transient": false,
"settings":
{
"buffer_size": 154,
"regions":
{
},
"selection":
[
[
139,
139
]
],
"settings":
{
"incomplete_sync": null,
"remote_loading": false,
"synced": false,
"syntax": "Packages/YAML/YAML.sublime-syntax",
"tabs_extra_last_activated": 1490442107.43,
"tabs_extra_last_activated_sheet_index": 2,
"tabs_extra_spawned": true
},
"translation.x": 0.0,
"translation.y": 37.0,
"zoom_level": 1.0
},
"stack_index": 0,
"type": "text"
}
]
}
Expand Down Expand Up @@ -1566,21 +1612,25 @@
"select_project":
{
"height": 500.0,
"last_filter": "watch",
"last_filter": "wa",
"selected_items":
[
[
"watch",
"wa",
"~/Development/public/watchlearn/watchlearn.sublime-project"
],
[
"vip",
"~/Burza/vip-templates/vip-templates.sublime-project"
"wat",
"~/Development/public/watchlearn/watchlearn.sublime-project"
],
[
"wat",
"watch",
"~/Development/public/watchlearn/watchlearn.sublime-project"
],
[
"vip",
"~/Burza/vip-templates/vip-templates.sublime-project"
],
[
"",
"~/Burza/patternlab/patternlab.sublime-project"
Expand Down
6 changes: 1 addition & 5 deletions plugins/watchlearn/movies/models/actor/columns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@ columns:
type: text
searchable: true
sortable: true
lastname:
label: 'Last name'
type: text
searchable: true
sortable: true
select: 'concat(name, '' '', lastname)'
3 changes: 3 additions & 0 deletions plugins/watchlearn/movies/models/movie/_poster_column.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php if($record->poster){ ?>
<img src="<?= $value->getThumb(80,80, 'crop') ?>">
<?php } ?>
12 changes: 11 additions & 1 deletion plugins/watchlearn/movies/models/movie/columns.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
columns:
name:
label: Name
label: 'Movie name'
type: text
searchable: true
sortable: true
year:
label: Year
type: number
sortable: true
poster:
label: Poster
type: partial
path: ~/plugins/watchlearn/movies/models/movie/_poster_column.htm
genres:
label: Genres
type: text
searchable: true
select: genre_title
relation: genres

0 comments on commit fa9f7d4

Please sign in to comment.