Reformat.
[Sone.git] / src / main / resources / templates / include / updateStatus.html
index 129c526..aa87ce8 100644 (file)
@@ -1,8 +1,17 @@
-<div id="update-status">
-       <form action="createPost.html" method="post">
-               <input type="hidden" name="formPassword" value="<% formPassword|html>" />
-               <label for="text"><%= Page.Index.Label.Text|l10n|html></label>
-               <input class="status-input" name="text" />
-               <button type="submit"><%= Page.Index.Button.Post|l10n|html></button>
-       </form>
-</div>
+<%ifnull !currentSone>
+    <form id="update-status" action="createPost.html" method="post">
+        <input type="hidden" name="formPassword" value="<% formPassword|html>" />
+        <input type="hidden" name="returnPage" value="<% request.uri|html>" />
+        <label for="sender"><%= Page.Index.Label.Sender|l10n|html></label>
+        <div class="sender">
+            <select name="sender" title="<%= View.UpdateStatus.Text.ChooseSenderIdentity|l10n|html>">
+                <%foreach localSones localSone|sort>
+                    <option value="<% localSone.id|html>"<%if localSone.current> selected="selected"<%/if>><% localSone.niceName|html></option>
+                <%/foreach>
+            </select>
+        </div>
+        <div class="select-sender"><button type="button" title="<%= View.UpdateStatus.Text.ChooseSenderIdentity|l10n|html>">+</button></div><label for="text"><%= Page.Index.Label.Text|l10n|html></label>
+        <textarea class="rip-out status-input" name="text"></textarea>
+        <button type="submit"><%= Page.Index.Button.Post|l10n|html></button>
+    </form>
+<%/if>