|
92 | 92 | <input type="hidden" name="title" value={editable_title} /> |
93 | 93 | <input type="hidden" name="slug" value={slug} /> |
94 | 94 | <div> |
95 | | - <label class="block font-medium mb-1"> |
| 95 | + <label for="blog-title" class="block font-medium mb-1"> |
96 | 96 | Title: |
97 | | - <input |
98 | | - bind:value={editable_title} |
99 | | - required |
100 | | - class="mt-1 block w-full rounded border-gray-300 shadow-sm focus:ring-blue-500 focus:border-blue-500" |
101 | | - /> |
102 | 97 | </label> |
| 98 | + <input |
| 99 | + id="blog-title" |
| 100 | + bind:value={editable_title} |
| 101 | + required |
| 102 | + class="mt-1 block w-full rounded border-gray-300 shadow-sm focus:ring-blue-500 focus:border-blue-500" |
| 103 | + /> |
103 | 104 | </div> |
104 | 105 | <div> |
105 | | - <label class="block font-medium mb-1"> |
| 106 | + <label for="blog-seo-title" class="block font-medium mb-1"> |
106 | 107 | SEO Title: |
107 | | - <input |
108 | | - name="seoTitle" |
109 | | - bind:value={blog.seoTitle} |
110 | | - class="mt-1 block w-full rounded border-gray-300 shadow-sm focus:ring-blue-500 focus:border-blue-500" |
111 | | - /> |
112 | 108 | </label> |
| 109 | + <input |
| 110 | + id="blog-seo-title" |
| 111 | + name="seoTitle" |
| 112 | + bind:value={blog.seoTitle} |
| 113 | + class="mt-1 block w-full rounded border-gray-300 shadow-sm focus:ring-blue-500 focus:border-blue-500" |
| 114 | + /> |
113 | 115 | </div> |
114 | 116 | <div> |
115 | | - <label class="block font-medium mb-1"> |
| 117 | + <label for="blog-seo-description" class="block font-medium mb-1"> |
116 | 118 | SEO Description: |
117 | | - <textarea |
118 | | - name="seoDescription" |
119 | | - bind:value={blog.seoDescription} |
120 | | - class="mt-1 block w-full rounded border-gray-300 shadow-sm focus:ring-blue-500 focus:border-blue-500" |
121 | | - ></textarea> |
122 | 119 | </label> |
| 120 | + <textarea |
| 121 | + id="blog-seo-description" |
| 122 | + name="seoDescription" |
| 123 | + bind:value={blog.seoDescription} |
| 124 | + class="mt-1 block w-full rounded border-gray-300 shadow-sm focus:ring-blue-500 focus:border-blue-500" |
| 125 | + ></textarea> |
123 | 126 | </div> |
124 | 127 | <div> |
125 | | - <label class="block font-medium mb-1"> |
| 128 | + <label for="blog-excerpt" class="block font-medium mb-1"> |
126 | 129 | Excerpt: |
127 | | - <textarea |
128 | | - name="excerpt" |
129 | | - bind:value={blog.excerpt} |
130 | | - class="mt-1 block w-full rounded border-gray-300 shadow-sm focus:ring-blue-500 focus:border-blue-500" |
131 | | - ></textarea> |
132 | 130 | </label> |
| 131 | + <textarea |
| 132 | + id="blog-excerpt" |
| 133 | + name="excerpt" |
| 134 | + bind:value={blog.excerpt} |
| 135 | + class="mt-1 block w-full rounded border-gray-300 shadow-sm focus:ring-blue-500 focus:border-blue-500" |
| 136 | + ></textarea> |
133 | 137 | </div> |
134 | 138 | <div> |
135 | | - <label class="block font-medium mb-1"> |
| 139 | + <label for="blog-slug" class="block font-medium mb-1"> |
136 | 140 | Slug: |
137 | | - <input |
138 | | - bind:value={slug} |
139 | | - required |
140 | | - class="mt-1 block w-full rounded border-gray-300 shadow-sm focus:ring-blue-500 focus:border-blue-500" |
141 | | - disabled={!blog.draft} |
142 | | - /> |
143 | 141 | </label> |
| 142 | + <input |
| 143 | + id="blog-slug" |
| 144 | + bind:value={slug} |
| 145 | + required |
| 146 | + class="mt-1 block w-full rounded border-gray-300 shadow-sm focus:ring-blue-500 focus:border-blue-500" |
| 147 | + disabled={!blog.draft} |
| 148 | + /> |
144 | 149 | {#if !blog.draft} |
145 | 150 | <p class="text-xs text-gray-500 mt-1"> |
146 | 151 | Slug can only be edited in draft mode. |
|
0 commit comments