Remove recipe/post toggle — auto-detect type from category selection
When user selects Reseptit category, recipe fields (time, servings, ingredients, steps) appear automatically. All other categories show the post body field instead. Removed the manual toggle buttons and cleaned up related CSS. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -88,11 +88,6 @@
|
||||
<button class="modal-close" onclick="closeSubmitModal()">✕</button>
|
||||
<h2>✏️ Lisää julkaisu</h2>
|
||||
|
||||
<div class="type-toggle">
|
||||
<button class="type-btn active" id="sub-typeRecipeBtn" onclick="setSubmitType('recipe')">🍳 Resepti</button>
|
||||
<button class="type-btn" id="sub-typePostBtn" onclick="setSubmitType('post')">📝 Julkaisu</button>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Otsikko *</label>
|
||||
<input type="text" id="sub-title" placeholder="esim. Mummon mustikkapiirakka" maxlength="100" />
|
||||
|
||||
Reference in New Issue
Block a user