sections!
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
</div>
|
||||
<div>
|
||||
<label for="picture" class="block text-sm font-semibold text-gray-700 mb-1">Picture</label>
|
||||
<input type="file" name="picture" id="picture"
|
||||
class="mt-1 block w-full text-sm text-gray-700 border border-gray-300 rounded-lg px-3 py-2 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500">
|
||||
<input type="file" name="picture" id="picture" accept="image/*"
|
||||
class="mt-1 block w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-md file:border-0 file:text-sm file:font-semibold file:bg-[#6b8f71] file:text-white hover:file:bg-[#5a7b5f]">
|
||||
{% if plant.picture %}
|
||||
<img src="{{ url_for('static', filename='uploads/' ~ plant.picture) }}" alt="{{ plant.name }}" class="w-24 h-24 object-cover rounded mt-2">
|
||||
{% endif %}
|
||||
@@ -108,7 +108,10 @@
|
||||
<div id="quill-care-guide" class="bg-white rounded border border-gray-300" style="min-height: 120px;">{{ plant.care_guide|safe }}</div>
|
||||
<textarea name="care_guide" id="care_guide" style="display:none;">{{ plant.care_guide }}</textarea>
|
||||
</div>
|
||||
<button type="submit" class="w-full btn-main text-lg font-semibold">Save Changes</button>
|
||||
<button type="submit"
|
||||
class="w-full bg-blue-500 text-white py-2 px-4 rounded-md hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2">
|
||||
Save Changes
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user