new terms item - docs section
This commit is contained in:
parent
c80225882e
commit
bec2b4a448
|
|
@ -342,6 +342,7 @@ class Plugin extends PluginBase
|
|||
'TPS\Birzha\Components\Balance' => 'balance',
|
||||
'TPS\Birzha\Components\ContactForm' => 'contactForm',
|
||||
'TPS\Birzha\Components\EmailVerify' => 'emailverify',
|
||||
'TPS\Birzha\Components\Birzhadocs' => 'birzhadocs',
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,27 @@
|
|||
<?php namespace TPS\Birzha\Components;
|
||||
|
||||
use Cms\Classes\ComponentBase;
|
||||
use TPS\Birzha\Models\BirzhaDoc;
|
||||
use RainLab\Translate\Classes\Translator;
|
||||
|
||||
class Birzhadocs extends ComponentBase
|
||||
{
|
||||
public function componentDetails() {
|
||||
return [
|
||||
'name' => 'Docs list',
|
||||
'description' => 'List of docs'
|
||||
];
|
||||
}
|
||||
|
||||
public function onRun() {
|
||||
$this->sections_with_docs = $this->loadDocs();
|
||||
}
|
||||
|
||||
protected function loadDocs() {
|
||||
$translator = Translator::instance();
|
||||
|
||||
return BirzhaDoc::where('lang', $translator->getLocale())->get();
|
||||
}
|
||||
|
||||
public $sections_with_docs;
|
||||
}
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
{% set sections = __SELF__.sections_with_docs %}
|
||||
|
||||
{% for section in sections %}
|
||||
<div class="term_row">
|
||||
<h6 class="term_row-title accord">{{ section.section_name }}</h6>
|
||||
<div class="term_sub-item"
|
||||
{% if loop.index == 1 %}
|
||||
style="max-height: 100%;"
|
||||
{% endif %}
|
||||
>
|
||||
{% for doc in section.section_docs %}
|
||||
<!-- output all the elements from 0 to 4 with loop indexes from 1 to 5 -->
|
||||
{% if loop.index < 6 %}
|
||||
<a class="term_download-link" href="{{ doc.birzha_file|media }}">{{ doc.file_name }} </a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<!-- if there is 5th element in the array (counting from 0, loop counts from 1)
|
||||
then we can show the button -->
|
||||
{% if section.section_docs[5] %}
|
||||
<div class="term_additional">
|
||||
<button class="term_more accord" type="button">
|
||||
<span>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6"
|
||||
viewBox="0 0 10 6">
|
||||
<path id="Union_1" data-name="Union 1"
|
||||
d="M-10288.26-97.869l-4.048-4.076a.968.968,0,0,1,0-1.36.949.949,0,0,1,1.349,0l3.373,3.4,3.371-3.4a.949.949,0,0,1,1.349,0,.968.968,0,0,1,0,1.36l-4.045,4.076a.946.946,0,0,1-.675.283A.945.945,0,0,1-10288.26-97.869Z"
|
||||
transform="translate(10292.587 103.586)" fill="#fff" />
|
||||
</svg>
|
||||
</span>
|
||||
|
||||
Has köp görmek
|
||||
</button>
|
||||
<div class="term_all">
|
||||
{% for doc in section.section_docs %}
|
||||
<!-- output all the elements from 0 to 5 with loop indexes from 6 to inf -->
|
||||
{% if loop.index > 5 %}
|
||||
<a class="term_download-link" href="{{ doc.birzha_file|media }}">{{ doc.file_name }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<?php namespace TPS\Birzha\Controllers;
|
||||
|
||||
use Backend\Classes\Controller;
|
||||
use BackendMenu;
|
||||
|
||||
class Birzhadocs extends Controller
|
||||
{
|
||||
public $implement = [ 'Backend\Behaviors\ListController', 'Backend\Behaviors\FormController' ];
|
||||
|
||||
public $listConfig = 'config_list.yaml';
|
||||
public $formConfig = 'config_form.yaml';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
BackendMenu::setContext('TPS.Birzha', 'frontend', 'birzha-docs-menu-item');
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<div data-control="toolbar">
|
||||
<a href="<?= Backend::url('tps/birzha/birzhadocs/create') ?>" class="btn btn-primary oc-icon-plus"><?= e(trans('backend::lang.form.create')) ?></a>
|
||||
<button
|
||||
class="btn btn-default oc-icon-trash-o"
|
||||
disabled="disabled"
|
||||
onclick="$(this).data('request-data', {
|
||||
checked: $('.control-list').listWidget('getChecked')
|
||||
})"
|
||||
data-request="onDelete"
|
||||
data-request-confirm="<?= e(trans('backend::lang.list.delete_selected_confirm')) ?>"
|
||||
data-trigger-action="enable"
|
||||
data-trigger=".control-list input[type=checkbox]"
|
||||
data-trigger-condition="checked"
|
||||
data-request-success="$(this).prop('disabled', true)"
|
||||
data-stripe-load-indicator>
|
||||
<?= e(trans('backend::lang.list.delete_selected')) ?>
|
||||
</button>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
name: Birzhadocs
|
||||
form: $/tps/birzha/models/birzhadoc/fields.yaml
|
||||
modelClass: TPS\Birzha\Models\BirzhaDoc
|
||||
defaultRedirect: tps/birzha/birzhadocs
|
||||
create:
|
||||
redirect: 'tps/birzha/birzhadocs/update/:id'
|
||||
redirectClose: tps/birzha/birzhadocs
|
||||
update:
|
||||
redirect: tps/birzha/birzhadocs
|
||||
redirectClose: tps/birzha/birzhadocs
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
list: $/tps/birzha/models/birzhadoc/columns.yaml
|
||||
modelClass: TPS\Birzha\Models\BirzhaDoc
|
||||
title: Birzhadocs
|
||||
noRecordsMessage: 'backend::lang.list.no_records'
|
||||
showSetup: true
|
||||
showCheckboxes: true
|
||||
recordsPerPage: 20
|
||||
toolbar:
|
||||
buttons: list_toolbar
|
||||
search:
|
||||
prompt: 'backend::lang.list.search_prompt'
|
||||
recordUrl: 'tps/birzha/birzhadocs/update/:id'
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
<?php Block::put('breadcrumb') ?>
|
||||
<ul>
|
||||
<li><a href="<?= Backend::url('tps/birzha/birzhadocs') ?>">Birzhadocs</a></li>
|
||||
<li><?= e($this->pageTitle) ?></li>
|
||||
</ul>
|
||||
<?php Block::endPut() ?>
|
||||
|
||||
<?php if (!$this->fatalError): ?>
|
||||
|
||||
<?= Form::open(['class' => 'layout']) ?>
|
||||
|
||||
<div class="layout-row">
|
||||
<?= $this->formRender() ?>
|
||||
</div>
|
||||
|
||||
<div class="form-buttons">
|
||||
<div class="loading-indicator-container">
|
||||
<button
|
||||
type="submit"
|
||||
data-request="onSave"
|
||||
data-hotkey="ctrl+s, cmd+s"
|
||||
data-load-indicator="<?= e(trans('backend::lang.form.saving')) ?>"
|
||||
class="btn btn-primary">
|
||||
<?= e(trans('backend::lang.form.create')) ?>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
data-request="onSave"
|
||||
data-request-data="close:1"
|
||||
data-hotkey="ctrl+enter, cmd+enter"
|
||||
data-load-indicator="<?= e(trans('backend::lang.form.saving')) ?>"
|
||||
class="btn btn-default">
|
||||
<?= e(trans('backend::lang.form.create_and_close')) ?>
|
||||
</button>
|
||||
<span class="btn-text">
|
||||
<?= e(trans('backend::lang.form.or')) ?> <a href="<?= Backend::url('tps/birzha/birzhadocs') ?>"><?= e(trans('backend::lang.form.cancel')) ?></a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?= Form::close() ?>
|
||||
|
||||
<?php else: ?>
|
||||
<p class="flash-message static error"><?= e(trans($this->fatalError)) ?></p>
|
||||
<p><a href="<?= Backend::url('tps/birzha/birzhadocs') ?>" class="btn btn-default"><?= e(trans('backend::lang.form.return_to_list')) ?></a></p>
|
||||
<?php endif ?>
|
||||
|
|
@ -0,0 +1 @@
|
|||
<?= $this->listRender() ?>
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
<?php Block::put('breadcrumb') ?>
|
||||
<ul>
|
||||
<li><a href="<?= Backend::url('tps/birzha/birzhadocs') ?>">Birzhadocs</a></li>
|
||||
<li><?= e($this->pageTitle) ?></li>
|
||||
</ul>
|
||||
<?php Block::endPut() ?>
|
||||
|
||||
<?php if (!$this->fatalError): ?>
|
||||
|
||||
<div class="form-preview">
|
||||
<?= $this->formRenderPreview() ?>
|
||||
</div>
|
||||
|
||||
<?php else: ?>
|
||||
<p class="flash-message static error"><?= e($this->fatalError) ?></p>
|
||||
<?php endif ?>
|
||||
|
||||
<p>
|
||||
<a href="<?= Backend::url('tps/birzha/birzhadocs') ?>" class="btn btn-default oc-icon-chevron-left">
|
||||
<?= e(trans('backend::lang.form.return_to_list')) ?>
|
||||
</a>
|
||||
</p>
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
<?php Block::put('breadcrumb') ?>
|
||||
<ul>
|
||||
<li><a href="<?= Backend::url('tps/birzha/birzhadocs') ?>">Birzhadocs</a></li>
|
||||
<li><?= e($this->pageTitle) ?></li>
|
||||
</ul>
|
||||
<?php Block::endPut() ?>
|
||||
|
||||
<?php if (!$this->fatalError): ?>
|
||||
|
||||
<?= Form::open(['class' => 'layout']) ?>
|
||||
|
||||
<div class="layout-row">
|
||||
<?= $this->formRender() ?>
|
||||
</div>
|
||||
|
||||
<div class="form-buttons">
|
||||
<div class="loading-indicator-container">
|
||||
<button
|
||||
type="submit"
|
||||
data-request="onSave"
|
||||
data-request-data="redirect:0"
|
||||
data-hotkey="ctrl+s, cmd+s"
|
||||
data-load-indicator="<?= e(trans('backend::lang.form.saving')) ?>"
|
||||
class="btn btn-primary">
|
||||
<?= e(trans('backend::lang.form.save')) ?>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
data-request="onSave"
|
||||
data-request-data="close:1"
|
||||
data-hotkey="ctrl+enter, cmd+enter"
|
||||
data-load-indicator="<?= e(trans('backend::lang.form.saving')) ?>"
|
||||
class="btn btn-default">
|
||||
<?= e(trans('backend::lang.form.save_and_close')) ?>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="oc-icon-trash-o btn-icon danger pull-right"
|
||||
data-request="onDelete"
|
||||
data-load-indicator="<?= e(trans('backend::lang.form.deleting')) ?>"
|
||||
data-request-confirm="<?= e(trans('backend::lang.form.confirm_delete')) ?>">
|
||||
</button>
|
||||
|
||||
<span class="btn-text">
|
||||
<?= e(trans('backend::lang.form.or')) ?> <a href="<?= Backend::url('tps/birzha/birzhadocs') ?>"><?= e(trans('backend::lang.form.cancel')) ?></a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<?= Form::close() ?>
|
||||
|
||||
<?php else: ?>
|
||||
<p class="flash-message static error"><?= e(trans($this->fatalError)) ?></p>
|
||||
<p><a href="<?= Backend::url('tps/birzha/birzhadocs') ?>" class="btn btn-default"><?= e(trans('backend::lang.form.return_to_list')) ?></a></p>
|
||||
<?php endif ?>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?php namespace TPS\Birzha\Models;
|
||||
|
||||
use Model;
|
||||
|
||||
/**
|
||||
* Model
|
||||
*/
|
||||
class BirzhaDoc extends Model
|
||||
{
|
||||
use \October\Rain\Database\Traits\Validation;
|
||||
|
||||
/*
|
||||
* Disable timestamps by default.
|
||||
* Remove this line if timestamps are defined in the database table.
|
||||
*/
|
||||
public $timestamps = false;
|
||||
|
||||
|
||||
/**
|
||||
* @var string The database table used by the model.
|
||||
*/
|
||||
public $table = 'tps_birzha_docs_one';
|
||||
protected $jsonable = ['section_docs'];
|
||||
|
||||
/**
|
||||
* @var array Validation rules
|
||||
*/
|
||||
public $rules = [
|
||||
];
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
columns:
|
||||
id:
|
||||
label: ID
|
||||
type: number
|
||||
section_code:
|
||||
label: 'Section code'
|
||||
type: text
|
||||
section_name:
|
||||
label: 'Section name'
|
||||
type: text
|
||||
lang:
|
||||
label: Language
|
||||
type: text
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
fields:
|
||||
section_code:
|
||||
label: 'Section code'
|
||||
span: auto
|
||||
required: 1
|
||||
type: text
|
||||
section_name:
|
||||
label: 'Section name'
|
||||
span: auto
|
||||
required: 1
|
||||
type: text
|
||||
section_docs:
|
||||
label: 'Section docs'
|
||||
prompt: 'Add new item'
|
||||
style: default
|
||||
span: auto
|
||||
type: repeater
|
||||
form:
|
||||
fields:
|
||||
file_name:
|
||||
label: 'File name'
|
||||
span: auto
|
||||
type: text
|
||||
required: 1
|
||||
birzha_file:
|
||||
label: File
|
||||
mode: file
|
||||
span: auto
|
||||
type: mediafinder
|
||||
required: 1
|
||||
lang:
|
||||
label: Language
|
||||
options:
|
||||
ru: ru
|
||||
tm: tm
|
||||
en: en
|
||||
showSearch: true
|
||||
span: auto
|
||||
type: dropdown
|
||||
|
|
@ -53,6 +53,10 @@ navigation:
|
|||
icon: icon-image
|
||||
permissions:
|
||||
- slider
|
||||
birzha-docs-menu-item:
|
||||
label: 'Birzha docs'
|
||||
url: /tps/birzha/birzhadocs
|
||||
icon: icon-th
|
||||
dictionary:
|
||||
label: Dictionary
|
||||
url: tps/birzha/terms
|
||||
|
|
|
|||
|
|
@ -0,0 +1,21 @@
|
|||
<?php namespace TPS\Birzha\Updates;
|
||||
|
||||
use Schema;
|
||||
use October\Rain\Database\Updates\Migration;
|
||||
|
||||
class BuilderTableCreateTpsBirzhaDocs extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::create('tps_birzha_docs', function($table)
|
||||
{
|
||||
$table->engine = 'InnoDB';
|
||||
$table->string('section_name');
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('tps_birzha_docs');
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
<?php namespace TPS\Birzha\Updates;
|
||||
|
||||
use Schema;
|
||||
use October\Rain\Database\Updates\Migration;
|
||||
|
||||
class BuilderTableCreateTpsBirzhaDocsOne extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::create('tps_birzha_docs_one', function($table)
|
||||
{
|
||||
$table->engine = 'InnoDB';
|
||||
$table->increments('id')->unsigned();
|
||||
$table->string('section_code');
|
||||
$table->string('section_name');
|
||||
$table->text('section_docs');
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('tps_birzha_docs_one');
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
<?php namespace TPS\Birzha\Updates;
|
||||
|
||||
use Schema;
|
||||
use October\Rain\Database\Updates\Migration;
|
||||
|
||||
class BuilderTableDeleteTpsBirzhaDocs extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::dropIfExists('tps_birzha_docs');
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::create('tps_birzha_docs', function($table)
|
||||
{
|
||||
$table->engine = 'InnoDB';
|
||||
$table->string('section_name', 191);
|
||||
$table->text('section_docs');
|
||||
$table->integer('id');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
<?php namespace TPS\Birzha\Updates;
|
||||
|
||||
use Schema;
|
||||
use October\Rain\Database\Updates\Migration;
|
||||
|
||||
class BuilderTableUpdateTpsBirzhaDocs extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::table('tps_birzha_docs', function($table)
|
||||
{
|
||||
$table->text('section_docs');
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::table('tps_birzha_docs', function($table)
|
||||
{
|
||||
$table->dropColumn('section_docs');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
<?php namespace TPS\Birzha\Updates;
|
||||
|
||||
use Schema;
|
||||
use October\Rain\Database\Updates\Migration;
|
||||
|
||||
class BuilderTableUpdateTpsBirzhaDocs2 extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::table('tps_birzha_docs', function($table)
|
||||
{
|
||||
$table->integer('id');
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::table('tps_birzha_docs', function($table)
|
||||
{
|
||||
$table->dropColumn('id');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
<?php namespace TPS\Birzha\Updates;
|
||||
|
||||
use Schema;
|
||||
use October\Rain\Database\Updates\Migration;
|
||||
|
||||
class BuilderTableUpdateTpsBirzhaDocsOne extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::table('tps_birzha_docs_one', function($table)
|
||||
{
|
||||
$table->string('lang');
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::table('tps_birzha_docs_one', function($table)
|
||||
{
|
||||
$table->dropColumn('lang');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -278,3 +278,21 @@
|
|||
1.0.99:
|
||||
- 'Updated table tps_birzha_products'
|
||||
- builder_table_update_tps_birzha_products_25.php
|
||||
1.0.100:
|
||||
- 'Created table tps_birzha_docs'
|
||||
- builder_table_create_tps_birzha_docs.php
|
||||
1.0.101:
|
||||
- 'Updated table tps_birzha_docs'
|
||||
- builder_table_update_tps_birzha_docs.php
|
||||
1.0.102:
|
||||
- 'Updated table tps_birzha_docs'
|
||||
- builder_table_update_tps_birzha_docs_2.php
|
||||
1.0.103:
|
||||
- 'Drop table tps_birzha_docs'
|
||||
- builder_table_delete_tps_birzha_docs.php
|
||||
1.0.104:
|
||||
- 'Created table tps_birzha_docs_one'
|
||||
- builder_table_create_tps_birzha_docs_one.php
|
||||
1.0.105:
|
||||
- 'Updated table tps_birzha_docs_one'
|
||||
- builder_table_update_tps_birzha_docs_one.php
|
||||
|
|
|
|||
|
|
@ -1814,7 +1814,7 @@ li {
|
|||
left: 0;
|
||||
width: 100%;
|
||||
padding: 30px 40px;
|
||||
background: rgba(0,0,0,.5);
|
||||
background: rgba(0, 0, 0, .5);
|
||||
backdrop-filter: blur(3px);
|
||||
|
||||
transition: all .7s linear;
|
||||
|
|
@ -5035,6 +5035,145 @@ li {
|
|||
}
|
||||
}
|
||||
|
||||
.term_row {
|
||||
margin-bottom: 25px;
|
||||
position: relative;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.term_row-title {
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
position: relative;
|
||||
font-weight: 700;
|
||||
font-size: 17px;
|
||||
line-height: 30px;
|
||||
color: #003197;
|
||||
padding: 20px 50px 20px 30px;
|
||||
|
||||
background: #F2F6FF;
|
||||
}
|
||||
|
||||
.term_row-title::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 36px;
|
||||
right: 25px;
|
||||
width: 18px;
|
||||
height: 8px;
|
||||
background: url("../images/svg/arrow-down.svg") no-repeat center;
|
||||
background-size: contain;
|
||||
transition: all .3s linear;
|
||||
-webkit-transition: all .3s linear;
|
||||
}
|
||||
|
||||
.term_row-title.active:after {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.term_sub-item {
|
||||
overflow: hidden;
|
||||
max-height: 0;
|
||||
transition: all .3s linear;
|
||||
-webkit-transition: all .3s linear;
|
||||
}
|
||||
|
||||
.term_sub-item::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.term_download-link {
|
||||
display: block;
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
|
||||
width: 100%;
|
||||
cursor: pointer;
|
||||
margin-bottom: 15px;
|
||||
position: relative;
|
||||
padding-left: 35px;
|
||||
|
||||
transition: all .1s linear;
|
||||
-webkit-transition: all .1s linear;
|
||||
}
|
||||
|
||||
.term_download-link:first-child {
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
.term_download-link:hover {
|
||||
text-decoration: underline;
|
||||
color: #003197;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.term_download-link:hover::before {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
.term_download-link::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 0;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: url("../images/svg/download.svg") no-repeat center;
|
||||
background-size: contain;
|
||||
}
|
||||
|
||||
.term_more {
|
||||
padding: 10px 20px;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
color: #FFFFFF;
|
||||
background: var(--blue);
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.term_more span {
|
||||
transition: all .3s linear;
|
||||
-webkit-transition: all .3s linear;
|
||||
margin-right: 10px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.term_more.active span {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.term_additional {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.term_additional .term_download-link:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.term_all {
|
||||
width: 100%;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
max-height: 0;
|
||||
transition: all .3s linear;
|
||||
-webkit-transition: all .3s linear;
|
||||
}
|
||||
|
||||
.term_all::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
/* Terms end ======================================= */
|
||||
|
||||
/* Import table page ======================================= */
|
||||
|
|
@ -7358,10 +7497,28 @@ input::-webkit-calendar-picker-indicator {
|
|||
}
|
||||
|
||||
.aside_term-tab {
|
||||
font-size: 14px;
|
||||
font-size: 15px;
|
||||
padding: 15px 20px;
|
||||
}
|
||||
|
||||
.term_row-title {
|
||||
font-size: 14px;
|
||||
padding: 12px 50px 12px 25px;
|
||||
}
|
||||
|
||||
.term_row-title::after {
|
||||
top: 22px;
|
||||
}
|
||||
|
||||
.term_download-link {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.term_more {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
|
||||
.aside_term-tab::after {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6">
|
||||
<path id="Union_1" data-name="Union 1" d="M-10288.26-97.869l-4.048-4.076a.968.968,0,0,1,0-1.36.949.949,0,0,1,1.349,0l3.373,3.4,3.371-3.4a.949.949,0,0,1,1.349,0,.968.968,0,0,1,0,1.36l-4.045,4.076a.946.946,0,0,1-.675.283A.945.945,0,0,1-10288.26-97.869Z" transform="translate(10292.587 103.586)" fill="#fff"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 398 B |
|
|
@ -0,0 +1,7 @@
|
|||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M15.8333 15H4.16665C3.70641 15 3.33331 15.3731 3.33331 15.8333C3.33331 16.2936 3.70641 16.6667 4.16665 16.6667H15.8333C16.2935 16.6667 16.6666 16.2936 16.6666 15.8333C16.6666 15.3731 16.2935 15 15.8333 15Z" fill="#003197"/>
|
||||
<path d="M3.33331 14.1667V15.8334C3.33331 16.2936 3.70641 16.6667 4.16665 16.6667C4.62688 16.6667 4.99998 16.2936 4.99998 15.8334V14.1667C4.99998 13.7064 4.62688 13.3334 4.16665 13.3334C3.70641 13.3334 3.33331 13.7064 3.33331 14.1667Z" fill="#003197"/>
|
||||
<path d="M15 14.1667V15.8334C15 16.2936 15.3731 16.6667 15.8333 16.6667C16.2936 16.6667 16.6667 16.2936 16.6667 15.8334V14.1667C16.6667 13.7064 16.2936 13.3334 15.8333 13.3334C15.3731 13.3334 15 13.7064 15 14.1667Z" fill="#003197"/>
|
||||
<path d="M10 12.5C9.82723 12.5013 9.65833 12.4489 9.51667 12.35L6.18333 9.99998C6.00368 9.87254 5.88179 9.67915 5.84431 9.46209C5.80683 9.24503 5.85681 9.02196 5.98333 8.84165C6.04649 8.75152 6.12687 8.6748 6.21984 8.6159C6.31281 8.55701 6.41652 8.51712 6.52499 8.49852C6.63346 8.47993 6.74454 8.483 6.85181 8.50757C6.95909 8.53213 7.06043 8.5777 7.15 8.64165L10 10.6333L12.8333 8.49998C13.0101 8.36737 13.2324 8.31044 13.4512 8.34169C13.67 8.37295 13.8674 8.48984 14 8.66665C14.1326 8.84346 14.1895 9.06571 14.1583 9.2845C14.127 9.50329 14.0101 9.70071 13.8333 9.83332L10.5 12.3333C10.3558 12.4415 10.1803 12.5 10 12.5Z" fill="#003197"/>
|
||||
<path d="M10 10.8333C9.77901 10.8333 9.56705 10.7455 9.41076 10.5893C9.25448 10.433 9.16669 10.221 9.16669 10V3.33333C9.16669 3.11232 9.25448 2.90036 9.41076 2.74408C9.56705 2.5878 9.77901 2.5 10 2.5C10.221 2.5 10.433 2.5878 10.5893 2.74408C10.7456 2.90036 10.8334 3.11232 10.8334 3.33333V10C10.8334 10.221 10.7456 10.433 10.5893 10.5893C10.433 10.7455 10.221 10.8333 10 10.8333Z" fill="#003197"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
|
|
@ -112,9 +112,9 @@ for (z = 0; z < accordion.length; z++) {
|
|||
panel.style.marginTop = "0px";
|
||||
|
||||
} else {
|
||||
panel.style.maxHeight = panel.scrollHeight + "px";
|
||||
// panel.style.maxHeight = panel.scrollHeight + "px";
|
||||
panel.style.maxHeight = "unset";
|
||||
panel.style.overflow = "visible";
|
||||
panel.style.marginTop = "10px";
|
||||
}
|
||||
});
|
||||
} // Accordion end =========================
|
||||
|
|
|
|||
|
|
@ -12,6 +12,9 @@ localeUrl[ru] = "/uslovia-torgov"
|
|||
[session]
|
||||
security = "all"
|
||||
redirect = "vojti"
|
||||
|
||||
[birzhadocs]
|
||||
language = "tm"
|
||||
==
|
||||
<?php
|
||||
function onStart() {
|
||||
|
|
@ -33,6 +36,9 @@ function onStart() {
|
|||
{% for pg in pagesList %}
|
||||
<h4 class="aside_term-tab open_link {{ loop.index == 1 ? 'active' : '' }}" data-tab="#term_info-{{loop.index}}">{{ pg.title }}</h4>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
<h4 class="aside_term-tab open_link" data-tab="#term_info-555">Resminamalar</h4>
|
||||
|
||||
|
||||
</div>
|
||||
|
|
@ -50,6 +56,11 @@ function onStart() {
|
|||
{{ pg.markup|raw }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
<div class="term_main-info open_info" id="term_info-555">
|
||||
|
||||
{% component 'birzhadocs' %}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,15 @@
|
|||
[viewBag]
|
||||
snippetCode = "birzha_docs"
|
||||
snippetName = "Birzha docs"
|
||||
snippetProperties[language][title] = "language"
|
||||
snippetProperties[language][type] = "dropdown"
|
||||
snippetProperties[language][default] = "tm"
|
||||
snippetProperties[language][options][] = "tm"
|
||||
snippetProperties[language][options][] = "ru"
|
||||
snippetProperties[language][options][] = "en"
|
||||
|
||||
[birzhadocs]
|
||||
language = "tm"
|
||||
==
|
||||
{% component 'birzhadocs' %}
|
||||
32416585465
|
||||
Loading…
Reference in New Issue