<form id="mood-form" class="stack-form">
<input type="hidden" name="id" /><input type="hidden" name="version" />
<fieldset><legend>此刻,你的心情怎么样?</legend><div class="mood-picker">
@{ string[] faces = ["☹", "◔", "◑", "☺", "✿"]; string[] words = ["低落", "不太好", "一般", "不错", "很开心"]; }
@for (var i = 1; i <= 5; i++) { <label><input type="radio" name="mood" value="@i" checked="@(i == 3)" /><span class="mood-face mood-@i">@faces[i-1]</span><small>@words[i-1]</small></label> }
</div></fieldset>
<div class="two-cols">
<label>精力 <span class="range-value">3 / 5</span><input name="energy" type="range" min="1" max="5" step="1" value="3" /><small>低:想休息 · 高:充满能量</small></label>
<label>压力 <span class="range-value">3 / 5</span><input name="stress" type="range" min="1" max="5" step="1" value="3" /><small>低:轻松 · 高:压力很大</small></label>
</div>
<label>记录时间<input name="recordedAt" type="datetime-local" required class="local-now" /></label>
<div><label>给心情加个标签</label><div class="tag-picker">
@foreach (var tag in Labels.EmotionTags.Concat(Labels.SceneTags)) { <label class="tag-option"><input type="checkbox" name="tags" value="@tag" /><span>@tag</span></label> }
</div></div>
<label>有什么想留下的?<textarea name="thoughts" rows="4" maxlength="5000" placeholder="今天发生了什么?一个小念头也可以。"></textarea><small class="char-count">0 / 5000</small></label>
<div class="suggestions" id="tag-suggestions"></div>
<div class="button-row"><button class="button primary" type="submit">保存此刻 →</button><button class="button secondary" id="analyze-tags" type="button">看看文字标签建议</button><button class="text-button" type="button" id="cancel-mood" hidden>取消编辑</button></div>
<p class="form-status" role="status"></p>
</form>
<form id="mood-form" class="stack-form">
<input type="hidden" name="id" /><input type="hidden" name="version" />
<fieldset><legend>此刻,你的心情怎么样?</legend><div class="mood-picker">
@{ string[] faces = ["☹", "◔", "◑", "☺", "✿"]; string[] words = ["低落", "不太好", "一般", "不错", "很开心"]; }
@for (var i = 1; i <= 5; i++) { <label><input type="radio" name="mood" value="@i" checked="@(i == 3)" /><span class="mood-face mood-@i">@faces[i-1]</span><small>@words[i-1]</small></label> }
</div></fieldset>
<div class="two-cols">
<label>精力 <span class="range-value">3 / 5</span><input name="energy" type="range" min="1" max="5" step="1" value="3" /><small>低:想休息 · 高:充满能量</small></label>
<label>压力 <span class="range-value">3 / 5</span><input name="stress" type="range" min="1" max="5" step="1" value="3" /><small>低:轻松 · 高:压力很大</small></label>
</div>
<label>记录时间<input name="recordedAt" type="datetime-local" required class="local-now" /></label>
<div><label>给心情加个标签</label><div class="tag-picker">
@foreach (var tag in Labels.EmotionTags.Concat(Labels.SceneTags)) { <label class="tag-option"><input type="checkbox" name="tags" value="@tag" /><span>@tag</span></label> }
</div></div>
<label>有什么想留下的?<textarea name="thoughts" rows="4" maxlength="5000" placeholder="今天发生了什么?一个小念头也可以。"></textarea><small class="char-count">0 / 5000</small></label>
<div class="suggestions" id="tag-suggestions"></div>
<div class="button-row"><button class="button primary" type="submit">保存此刻 →</button><button class="button secondary" id="analyze-tags" type="button">看看文字标签建议</button><button class="text-button" type="button" id="cancel-mood" hidden>取消编辑</button></div>
<p class="form-status" role="status"></p>
</form>