Skip to content

Commit c6f21dc

Browse files
authored
🐛 Remove draft button (#119)
1 parent 4347e54 commit c6f21dc

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

resources/views/livewire/articles/_form.blade.php

+15-17
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@hasanyrole('admin|moderator')
1212
<x-button type="button" wire:click="store">
1313
<x-loader class="text-white" wire:loading wire:target="store" />
14-
{{ isset($article) ? 'Enregistrer': 'Publier' }}
14+
{{ isset($article) ? __('Enregistrer'): __('Publier') }}
1515
</x-button>
1616
@else
1717
@if(isset($article))
@@ -56,17 +56,11 @@ class="origin-top-right absolute right-0 mt-2 -mr-1 w-56 rounded-md shadow-lg bg
5656
@else
5757
<x-button type="button" wire:click="submit">
5858
<x-loader class="text-white" wire:loading wire:target="submit" />
59-
Soumettre
59+
{{ __('Soumettre') }}
6060
</x-button>
6161
@endif
6262
@endhasanyrole
6363

64-
@if(! isset($article) && ! Auth::user()->hasAnyRole(['admin', 'moderator']))
65-
<x-default-button type="button" wire:click="draft">
66-
Brouillon
67-
</x-default-button>
68-
@endif
69-
7064
<button type="button" @click="open = true;" class="inline-flex justify-center py-2 px-4 text-skin-base hover:text-skin-muted focus:outline-none">
7165
<x-heroicon-o-cog class="h-5 w-5" />
7266
</button>
@@ -91,11 +85,11 @@ class="w-screen max-w-md"
9185
<div class="px-4 sm:px-6">
9286
<div class="flex items-start justify-between">
9387
<h2 class="text-lg font-medium text-skin-inverted" id="slide-over-title">
94-
Paramètres avancés
88+
{{ __('Paramètres avancés') }}
9589
</h2>
9690
<div class="ml-3 h-7 flex items-center">
9791
<button type="button" class="bg-skin-card rounded-md text-skin-muted hover:text-skin-base focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-body focus:ring-green-500" @click="open = false">
98-
<span class="sr-only">Close panel</span>
92+
<span class="sr-only">{{ __('Fermer') }}</span>
9993
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
10094
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
10195
</svg>
@@ -106,7 +100,7 @@ class="w-screen max-w-md"
106100
<div class="mt-6 relative flex-1 px-4 sm:px-6">
107101
<div class="h-full" aria-hidden="true">
108102
<x-label for="cover_photo">
109-
Image de couverture
103+
{{ __('Image de couverture') }}
110104
</x-label>
111105
<div class="mt-2">
112106
<x-forms.single-upload
@@ -121,7 +115,9 @@ class="w-screen max-w-md"
121115

122116
<div x-data="{ on: @entangle('show_toc') }" class="mt-8 flex-grow flex items-center justify-between">
123117
<div>
124-
<dt class="text-sm leading-7 font-semibold text-skin-base">Afficher le Sommaire</dt>
118+
<dt class="text-sm leading-7 font-semibold text-skin-base">
119+
{{ __('Afficher le Sommaire') }}
120+
</dt>
125121
</div>
126122
<button type="button"
127123
class="relative inline-flex items-center shrink-0 h-6 w-11 border border-skin-base rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 bg-skin-card-muted"
@@ -140,18 +136,20 @@ class="relative inline-flex items-center shrink-0 h-6 w-11 border border-skin-ba
140136
</div>
141137

142138
<div class="mt-8">
143-
<x-label for="published_at">Date de publication</x-label>
139+
<x-label for="published_at">{{ __('Date de publication') }}</x-label>
144140
<x-input wire:model.debounce.500ms="published_at" id="published_at" name="published_at" class="mt-1" type="date" autocomplete="off" />
145141
</div>
146142

147143
<div class="mt-8">
148-
<x-label for="slug">URL Slug</x-label>
144+
<x-label for="slug">{{ __('URL Slug') }}</x-label>
149145
<x-input wire:model.debounce.500ms="slug" id="slug" name="slug" class="mt-1" type="text" autocomplete="off" required />
150146
</div>
151147

152148
<div class="mt-8">
153-
<x-label for="canonical_url">Canonical URL</x-label>
154-
<span class="text-xs leading-3 text-skin-muted">Modifiez si l'article a été publié pour la première fois ailleurs (comme sur votre propre blog).</span>
149+
<x-label for="canonical_url">{{ __('Canonical URL') }}</x-label>
150+
<span class="text-xs leading-3 text-skin-muted">
151+
{{ __('Modifiez si l\'article a été publié pour la première fois ailleurs (comme sur votre propre blog).') }}
152+
</span>
155153
<x-input wire:model.defer="canonical_url" id="canonical_url" name="canonical_url" class="mt-1" type="text" autocomplete="off" />
156154
</div>
157155

@@ -192,7 +190,7 @@ class="block w-full h-auto px-0 py-4 text-3xl sm:text-4xl font-bold placeholder-
192190
/>
193191
<livewire:markdown-x :content="$body" />
194192
<div class="mt-6 text-right text-skin-base">
195-
Temps de lecture estimé : <span class="text-skin-inverted">{{ $reading_time }} min</span>
193+
{{ __('Temps de lecture estimé :') }} <span class="text-skin-inverted">{{ $reading_time }} min</span>
196194
</div>
197195
</div>
198196
</main>

0 commit comments

Comments
 (0)