Create event creation structuring and polishing
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<script lang="ts">
|
||||
let { emailData, errors } = $props<{
|
||||
emailData: {
|
||||
subject: string;
|
||||
body: string;
|
||||
};
|
||||
errors: Record<string, string>;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<div class="space-y-6">
|
||||
<div>
|
||||
<label for="emailSubject" class="block text-sm font-medium text-gray-700 mb-2">
|
||||
Email Subject *
|
||||
</label>
|
||||
<input
|
||||
id="emailSubject"
|
||||
type="text"
|
||||
bind:value={emailData.subject}
|
||||
class="w-full px-3 py-2 border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"
|
||||
placeholder="Event invitation subject"
|
||||
/>
|
||||
{#if errors.subject}
|
||||
<p class="mt-1 text-sm text-red-600">{errors.subject}</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="emailBody" class="block text-sm font-medium text-gray-700 mb-2">
|
||||
Email Body *
|
||||
</label>
|
||||
<textarea
|
||||
id="emailBody"
|
||||
bind:value={emailData.body}
|
||||
rows="8"
|
||||
class="w-full px-3 py-2 border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"
|
||||
placeholder="Email message content..."
|
||||
></textarea>
|
||||
{#if errors.body}
|
||||
<p class="mt-1 text-sm text-red-600">{errors.body}</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user