permissions and img source

This commit is contained in:
Kerim 2023-01-10 16:22:27 +05:00
parent 4806e4d8a9
commit d9be37cf6a
6 changed files with 52 additions and 5 deletions

View File

@ -45,6 +45,7 @@ class Post extends Model
'excerpt' => 'required', 'excerpt' => 'required',
'category_groups' => 'required', 'category_groups' => 'required',
'awtor' => 'required', 'awtor' => 'required',
'img_source' => 'required'
]; ];
/** /**

View File

@ -67,6 +67,7 @@ secondaryTabs:
author_name: author_name:
label: 'Author Name' label: 'Author Name'
span: auto span: auto
hidden: 1
dependsOn: dependsOn:
- awtor - awtor
type: text type: text
@ -77,6 +78,11 @@ secondaryTabs:
type: checkbox type: checkbox
comment: 'не отмечать если не нужно выставлять на слайдере' comment: 'не отмечать если не нужно выставлять на слайдере'
tab: 'rainlab.blog::lang.post.tab_manage' tab: 'rainlab.blog::lang.post.tab_manage'
on_morque:
label: 'Бегущая строка'
span: right
type: checkbox
tab: 'rainlab.blog::lang.post.tab_manage'
published_at: published_at:
tab: 'rainlab.blog::lang.post.tab_manage' tab: 'rainlab.blog::lang.post.tab_manage'
label: 'rainlab.blog::lang.post.published_on' label: 'rainlab.blog::lang.post.published_on'
@ -96,13 +102,14 @@ secondaryTabs:
excerpt: excerpt:
label: 'rainlab.blog::lang.post.excerpt' label: 'rainlab.blog::lang.post.excerpt'
size: small size: small
span: left span: auto
type: textarea type: textarea
tab: 'rainlab.blog::lang.post.tab_manage' tab: 'rainlab.blog::lang.post.tab_manage'
on_morque: img_source:
label: 'Бегущая строка' label: 'Image Source'
span: auto span: left
type: checkbox required: 1
type: text
tab: 'rainlab.blog::lang.post.tab_manage' tab: 'rainlab.blog::lang.post.tab_manage'
featured_image: featured_image:
label: 'Featured image' label: 'Featured image'

View File

@ -0,0 +1,23 @@
<?php namespace RainLab\Blog\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class BuilderTableUpdateRainlabBlogPosts18 extends Migration
{
public function up()
{
Schema::table('rainlab_blog_posts', function($table)
{
$table->string('img_source')->nullable();
});
}
public function down()
{
Schema::table('rainlab_blog_posts', function($table)
{
$table->dropColumn('img_source');
});
}
}

View File

@ -171,3 +171,6 @@
1.5.37: 1.5.37:
- 'Updated table rainlab_blog_posts' - 'Updated table rainlab_blog_posts'
- builder_table_update_rainlab_blog_posts_17.php - builder_table_update_rainlab_blog_posts_17.php
1.5.38:
- 'Updated table rainlab_blog_posts'
- builder_table_update_rainlab_blog_posts_18.php

View File

@ -9,6 +9,8 @@ navigation:
label: Reklama label: Reklama
url: tps/reklama/groupscontroller url: tps/reklama/groupscontroller
icon: icon-empire icon: icon-empire
permissions:
- reklama
sideMenu: sideMenu:
side-menu-item: side-menu-item:
label: Groups label: Groups

View File

@ -9,8 +9,19 @@ navigation:
label: 'Media Category' label: 'Media Category'
url: tps/tps/media url: tps/tps/media
icon: icon-film icon: icon-film
permissions:
- media.media
sideMenu: sideMenu:
side-menu-item: side-menu-item:
label: Authors label: Authors
url: tps/tps/authors url: tps/tps/authors
icon: icon-users icon: icon-users
permissions:
- media.authors
permissions:
media.media:
tab: Media
label: Media
media.authors:
tab: Authors
label: Authors