* add a way for the tabbed api to re-open the same tab on save again.
[citadel.git] / webcit / static / t / room / edit / tab_listserv.html
index fc7327cf7db19a87551dc6568e22ec47f88c6d7a..d76df96f94737c35803280b6e865151502306b86 100644 (file)
@@ -6,11 +6,13 @@
                        <?ITERATE("ITERATE:THISROOM:GNET", ="room_edit_listrecp_removal", 0, 0, -1, #"listrecp")>
                        <br />
                        <form method="post" action="netedit">
-                               <input type="hidden" name="tab" value="listserv" />
+                         <p>
+                               <input type="hidden" name="last_tabsel" value="<?TAB:N>" />
                                <input type="hidden" name="prefix" value="listrecp|" />
                                <input type="hidden" name="nonce" value="<?NONCE>" />
                                <input type="text" id="add_as_listrecp" name="line" />
                                <input type="submit" name="add_button" value="<?_("Add")>" />
+                         </p>
                        </form>
                        </td>
                        <td valign="top">
                        <?ITERATE("ITERATE:THISROOM:GNET", ="room_edit_digestrecp_removal", 0, 0, -1, #"digestrecp")>
                        <br />
                        <form method="post" action="netedit">
-                               <input type="hidden" name="tab" value="listserv" />
+                         <p>
+                               <input type="hidden" name="last_tabsel" value="<?TAB:N>" />
                                <input type="hidden" name="prefix" value="digestrecp|" />
                                <input type="hidden" name="nonce" value="<?NONCE>">
                                <input type="text" id="add_as_digestrecp" name="line">
                                <input type="submit" name="add_button" value="<?_("Add")>">
+                         </p>
                        </form>
                        </td></tr>
                </table>
 
-               <!-- Pop open an address book -- begin -->
+               <!-- Pop open an address book - begin -->
                <div align="right">
                        <a href="javascript:PopOpenAddressBook('add_as_listrecp|<?_("List")>|add_as_digestrecp|<?_("Digest")>')"
                        title="<?_("Add recipients from Contacts or other address books")>">
-                       <img align="middle" border="0" width="24" height="24" src="static/viewcontacts_24x.gif" />
+                       <img align="middle" border="0" width="24" height="24" alt="<?_("Addressbook Popup")>" src="static/viewcontacts_24x.gif" />
                        &nbsp;<?_("Add recipients from Contacts or other address books")></a>
                </div>
-               <!-- Pop open an address book -- end -->
+               <!-- Pop open an address book - end -->
 
                <br />
                <form method="get" action="toggle_self_service">
@@ -42,7 +46,7 @@
                        <table>
                                <tr>
                                        <td><?_("Allow self-service subscribe/unsubscribe requests.")></td>
-                                       <td><input type="checkbox" name="QR2_SelfList" value="yes" <?%("COND:THISROOM:FLAG:QR2", 20, #"QR2_SELFLIST", 1, 'checked="checked" ', "")> /></td> (is_selflist(&RoomFlags))?"checked":"
+                                       <td><input type="checkbox" name="QR2_SelfList" value="yes" <?%("COND:THISROOM:FLAG:QR2", 20, #"QR2_SELFLIST", 1, 'checked="checked" ', "")> /></td>
                                </tr>
                                <tr>
                                        <td colspan="2">
@@ -52,7 +56,7 @@
                                </tr>
                                <!-- Public posting? -->
                                <tr>
-                                       <td><?_("Allow non-subscribers to mail to this room.")></td> //// TODO: subonly / SMTP_PUBLIC??
+                                       <td><?_("Allow non-subscribers to mail to this room.")></td>
                                        <td><input type="checkbox" name="QR2_SubsOnly" value="yes" <?%("COND:THISROOM:FLAG:QR2", 20, #"QR2_SMTP_PUBLIC", 1, 'checked="checked" ', "")> /></td>
                                </tr>
                
@@ -63,6 +67,8 @@
                                </tr>
                                <tr>
                                        <td colspan="2" align="center">
+                                               <input type="hidden" name="last_tabsel" value="<?TAB:N>" />
+                                               <input type="hidden" name="nonce" value="<?NONCE>" />
                                                <input type="submit" name="add_button" value="<?_("Save changes")>" />
                                        </td>
                                </tr>