Created
December 15, 2020 19:18
-
-
Save NandoKstroNet/2686ce6b5f9f2d5a9d06974d942c4aa8 to your computer and use it in GitHub Desktop.
Visão do Componente de Planos - Code Experts Curso Livewire na Prática
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="max-w-7xl mx-auto py-15 px-4"> | |
<x-slot name="header">Criar Plano</x-slot> | |
@include('includes.message') | |
<form action="" wire:submit.prevent="createPlan" class="w-full max-w-7xl mx-auto"> | |
<div class="flex flex-wrap -mx-3 mb-6"> | |
<p class="w-full px-3 mb-6 md:mb-0"> | |
<label class="block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2">Nome Plano</label> | |
<input type="text" name="description" wire:model="name" | |
class="block appearance-none w-full bg-gray-200 border @error('name') border-red-500 @else border-gray-200 @enderror text-gray-700 py-3 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-gray-500"> | |
@error('name') | |
<h5 class="text-red-500 text-xs italic">{{$message}}</h5> | |
@enderror | |
</p> | |
<p class="w-full px-3 mb-6 md:mb-0"> | |
<label class="block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2">Descrição Plano</label> | |
<input type="text" name="description" wire:model="description" | |
class="block appearance-none w-full bg-gray-200 border @error('description') border-red-500 @else border-gray-200 @enderror text-gray-700 py-3 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-gray-500"> | |
@error('description') | |
<h5 class="text-red-500 text-xs italic">{{$message}}</h5> | |
@enderror | |
</p> | |
<p class="w-full px-3 mb-6 md:mb-0"> | |
<label class="block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2">Valor do Plano</label> | |
<input type="text" name="amount" wire:model="price" | |
class="block appearance-none w-full bg-gray-200 border @error('price') border-red-500 @else border-gray-200 @enderror text-gray-700 py-3 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-gray-500"> | |
@error('price') | |
<h5 class="text-red-500 text-xs italic">{{$message}}</h5> | |
@enderror | |
</p> | |
<p class="w-full px-3 mb-6 md:mb-0"> | |
<label class="block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2">Apelido Plano</label> | |
<input type="text" name="slug" wire:model="slug" | |
class="block appearance-none w-full bg-gray-200 @error('slug') border-red-500 @else border-gray-200 @enderror text-gray-700 py-3 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-gray-500"> | |
</p> | |
</div> | |
<div class="w-full py-4 px-3 mb-6 md:mb-0"> | |
<button type="submit" | |
class="flex-shrink-0 bg-teal-500 hover:bg-teal-700 border-teal-500 hover:border-teal-700 text-sm border-4 text-white py-1 px-2 rounded">Criar Plano</button> | |
</div> | |
</form> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment