Compare commits

..

No commits in common. "42a9fe816fde6167f97e1799124b6cd96a4951fb" and "72191cbb166fe11c92908be84a5d96eb00c3bfa6" have entirely different histories.

6 changed files with 42 additions and 52 deletions

View File

@ -59,3 +59,35 @@ jobs:
- name: Check tests
run: make test
deploy:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '8.1' ]
steps:
- uses: actions/checkout@v3
- name: Set up PHP ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
github_token: ${{ secrets.COMPOSER_GITHUB_TOKEN }}
tools: composer, phpcs, phpstan, phpunit, symfony
- name: PHP Security Checker
uses: StephaneBour/actions-php-security-checker@1.1
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i --delete"
SOURCE: "dist/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }}
EXCLUDE: "/dist/, /node_modules/"

View File

@ -9,18 +9,14 @@
<table class="table">
<thead class="border-b-2 border-solid border-black text-left" style="text-align: left">
<tr>
<th scope="col">Позиция</th>
<th scope="col">Название</th>
<th scope="col">действия</th>
<th scope="col"></th>
</tr>
</thead>
<tbody class="accordion" id="accordionExample">
<tbody>
@foreach($receptionScreens as $receptionScreen)
<?php $accordion_tmp = str_replace(' ','', $receptionScreen->name) ?>
<tr class="accordion-item">
<tr>
<th scope="row">{{ $receptionScreen->position }}</th>
<td>{{ $receptionScreen->name }}</td>
<td><a href="{{ route("admin-reception-screen.edit", $receptionScreen) }}" class="btn btn-secondary">редактировать</a>
@ -29,23 +25,16 @@
удалить
</a>
</td>
<th class="accordion-header" id="heading<?php echo $accordion_tmp ?>">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse<?php echo $accordion_tmp ?> " aria-expanded="false" aria-controls="collapse<?php echo $accordion_tmp ?>">
Показать
</button>
</th>
@if(count($receptionScreen->files) !== 0)
</tr>
<tr>
<td colspan="3">
<table class="table table-bordered accordion-collapse collapse" id="collapse<?php echo $accordion_tmp ?>" aria-labelledby="heading<?php echo $accordion_tmp ?>" data-bs-parent="#accordionExample">
<thead class="accordion-body">
<table class="table table-bordered">
<thead>
<tr>
<th scope="col">Позиция</th>
<th scope="col">Имя Файла</th>
<th scope="col">действия</th>
</tr>
</thead>
<tbody>
@ -67,8 +56,6 @@
@endforeach
</tbody>
</table>
<div class="mb-2">
<a href="{{ route('files.create', $receptionScreen->id) }}"
@ -76,7 +63,6 @@
Добавить файл
</a>
</div>
</td>
</tr>
@else
@ -94,30 +80,4 @@
<br>
<br>
</div>
@endsection

View File

@ -9,19 +9,18 @@
<table class="table">
<thead class="border-b-2 border-solid border-black text-left" style="text-align: left">
<tr>
{{-- <th scope="col">Позиция</th>--}}
<th scope="col">Экран Приема</th>
<th scope="col">Позиция</th>
<th scope="col">Название файла</th>
<th scope="col">Экран Приема</th>
<th scope="col">действия</th>
</tr>
</thead>
<tbody>
@foreach($files as $file)
<tr>
<td>{{ $file->receptionScreen->name }}</td>
{{-- <th scope="row">{{ $file->position }}</th>--}}
<th scope="row">{{ $file->position }}</th>
<td>{{ $file->name }}</td>
<td>{{ $file->receptionScreen->name }}</td>
<td><a href="{{ route("files.edit", $file) }}" class="btn btn-secondary">редактировать</a>
<a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
href="{{ route('files.destroy', $file) }}" class="btn btn-danger">

View File

@ -49,10 +49,9 @@
<div class="row align-items-start">
<aside class="list-group col-2">
<ul>
<li class="list-group-item"><a href="{{ route('files.index') }}">Файлы</a></li>
<li class="list-group-item"><a href="{{ route('admin-reception-screen.index') }}">Экран Приема</a></li>
@if(!is_null(Auth::getUser()) && Auth::getUser()->name === 'admin')
{{-- <li class="list-group-item"></li>--}}
<li class="list-group-item"></li>
<li class="list-group-item"><a href="{{ route('users.index') }}">Список администраторов</a></li>
@endif
</ul>

View File

@ -73,7 +73,7 @@
<div id="panelsStayOpen-<?php echo $tmp ?>" class="accordion-collapse collapse show">
<div class="accordion-body">
@foreach($receptionScreen->files as $file)
<div class="col-8 mb-2 pb-2 ms-4">
<div class="col-8">
<a href="{{ $file->url }}">{{ $file->name }}</a>
</div>
@endforeach