Add a 'go' value to the 'edit room configuration' tab so it automatically selects...
[citadel.git] / webcit / static / t / room / edit / tab_config.html
index 44c8c04fbdf37f017e0e61a7bcee03a5e4e2db95..872f3ea1942245df5b7c2c92504a2c3c95e4fafb 100644 (file)
@@ -1,6 +1,7 @@
-<div class="tabcontent">
+<?!("COND:THISROOM:EDIT", 1)><div class="tabcontent">
        <form method="post" action="editroom">
                <input type="hidden" name="nonce" value="<?NONCE>" />
+               <input type="hidden" name="go" value="<?ROOM:INFO:PRINT_NAME("X")>">
                <ul>   
                        <li>
                                <?_("name of room: ")>
@@ -17,7 +18,7 @@
                                <ul>
                                        <li>
                                                <input type="radio" name="type" value="public" 
-                                                      <?%("COND:THISROOM:FLAG:QR", 3, #"QR_PRIVATE | QR_MAILBOX", 1, 'disabled="disabled" ', "")>
+                                                      <?%("COND:THISROOM:FLAG:QR", 3, #"QR_PRIVATE | QR_MAILBOX", 1, "", 'checked="checked" ')>
                                                       onChange="if (this.form.type[0].checked == true) { this.form.er_floor.disabled = false; }" />
                                                <?_("Public (automatically appears to everyone)")>
                                        </li>
        </center>
        </form>
 </div>
+<?!("X", 1)><??("COND:THISROOM:EDIT", 20)><div class="tabcontent"><?_("Higher access is required to access this function.")></div><??("X", 20)>