1
0
mirror of https://github.com/LinkStackOrg/LinkStack.git synced 2025-04-28 17:08:42 +02:00

Translated Edit LInk Blade

This commit is contained in:
Frank 2023-06-06 09:39:24 +02:00
parent 124a48b1c9
commit 4a7a9e689d
2 changed files with 28 additions and 15 deletions
resources

@ -213,7 +213,20 @@ return [
'Update icon' => 'Update icon+', 'Update icon' => 'Update icon+',
'See all icons' => 'See all icons+', 'See all icons' => 'See all icons+',
########Edit Link Blade########
'Edit' => 'Edit+'
'Add' => 'Add+'
'Block' => 'Block+'
'Blocks' => 'Blocks: +'
'Select Block' => 'Select Block +'
'Toggle Dropdown' => 'Toggle Dropdown+'
'Cancel' => 'Cancel+'
'Save and Add More' => 'Save and Add More+'
'editlink.description.1-5' => 'The `Custom` button allows you to add a custom link, where the text on the button is determined with the link title set above.+',
'editlink.description.2-5' => 'The `Custom_website` button functions similar to the Custom button, with the addition of a function that requests the favicon from the chosen URL and uses it as the button icon.+',
'editlink.description.3-5' => '',
'editlink.description.4-5' => 'The `Space` button will be replaced with an empty space, so buttons could be visually separated into groups. Entering a number between 1-10 in the title section will change the empty space`s distance.+',
'editlink.description.5-5' => 'The `Heading` button will be replaced with a sub-heading, where the title defines the text on that heading.+',
'Config' => 'Config+', 'Config' => 'Config+',

@ -17,7 +17,7 @@
<section class='text-gray-400'> <section class='text-gray-400'>
<h3 class="card-header"><i class="bi bi-journal-plus"> @if($LinkID !== 0) Edit @else Add @endif Block</i></h3> <h3 class="card-header"><i class="bi bi-journal-plus"> @if($LinkID !== 0) {{__('messages.Submit')}} @else {{__('messages.Add')}} @endif {{__('messages.Block')}}</i></h3>
<div class='card-body'> <div class='card-body'>
<form action="{{ route('addLink') }}" method="post" id="my-form"> <form action="{{ route('addLink') }}" method="post" id="my-form">
@ -26,9 +26,9 @@
<input type='hidden' name='linkid' value="{{ $LinkID }}" /> <input type='hidden' name='linkid' value="{{ $LinkID }}" />
<div class="form-group col-lg-8 flex justify-around"> <div class="form-group col-lg-8 flex justify-around">
{{-- <label class='font-weight-bold'>Blocks: </label> --}} {{-- <label class='font-weight-bold'>{{__('messages.Blocks')}}</label> --}}
<div class="btn-group shadow m-2"> <div class="btn-group shadow m-2">
<button type="button" id='btnLinkType' class="btn btn-primary rounded-pill" title='Click to change link blocks' data-toggle="modal" data-target="#SelectLinkType">Select Block <button type="button" id='btnLinkType' class="btn btn-primary rounded-pill" title='Click to change link blocks' data-toggle="modal" data-target="#SelectLinkType">{{__('messages.Select Block')}}
<span class="btn-inner"> <span class="btn-inner">
<i class="bi bi-window-plus"></i> <i class="bi bi-window-plus"></i>
</span> </span>
@ -37,7 +37,7 @@
{{-- <button type="button" class="dropdown-toggle border-0 border-left-1 px-2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> {{-- <button type="button" class="dropdown-toggle border-0 border-left-1 px-2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span> <span class="sr-only">{{__('messages.Toggle Dropdown')}}</span>
</button> --}} </button> --}}
{{-- <div class="dropdown-menu"> {{-- <div class="dropdown-menu">
@foreach ( $LinkTypes as $lt ) @foreach ( $LinkTypes as $lt )
@ -59,9 +59,9 @@
<div class="d-flex align-items-center pt-4"> <div class="d-flex align-items-center pt-4">
<a class="btn btn-danger me-3" href="{{ url('studio/links') }}">Cancel</a> <a class="btn btn-danger me-3" href="{{ url('studio/links') }}">{{__('messages.Cancel')}}</a>
<button type="submit" class="btn btn-primary me-3">Save</button> <button type="submit" class="btn btn-primary me-3">{{__('messages.Save')}}</button>
<button type="button" class="btn btn-soft-primary me-3" onclick="submitFormWithParam('add_more')">Save and Add More</button> <button type="button" class="btn btn-soft-primary me-3" onclick="submitFormWithParam('add_more')">{{__('messages.Save and Add More')}}</button>
<script> <script>
function submitFormWithParam(paramValue) { function submitFormWithParam(paramValue) {
// get the form element // get the form element
@ -94,13 +94,13 @@
</section> </section>
<br><br> <br><br>
{{-- <details> {{-- <details>
<summary>More information</summary> <summary>{{__('messages.More information')}}</summary>
<pre style="color: grey;"> <pre style="color: grey;">
The 'Custom' button allows you to add a custom link, where the text on the button is determined with the link title set above. {{__('messages.editlink.description.1-5')}}
The 'Custom_website' button functions similar to the Custom button, with the addition of a function that requests the favicon from the chosen URL and uses it as the button icon. {{__('messages.editlink.description.2-5')}}
{{__('messages.editlink.description.3-5')}}
The 'Space' button will be replaced with an empty space, so buttons could be visually separated into groups. Entering a number between 1-10 in the title section will change the empty space's distance. {{__('messages.editlink.description.4-5')}}
The 'Heading' button will be replaced with a sub-heading, where the title defines the text on that heading. {{__('messages.editlink.description.5-5')}}
</pre> </pre>
</details> --}} </details> --}}
@ -140,7 +140,7 @@
</div> </div>
<x-slot name="buttons"> <x-slot name="buttons">
<button type="button" class="btn btn-gray" data-dismiss="modal">Close</button> <button type="button" class="btn btn-gray" data-dismiss="modal">{{__('messages.Close')}}</button>
</x-slot> </x-slot>
</x-modal> </x-modal>