blob: bef52dfbec49c3020b39a7955c4031519987f31f [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001[# This is the "Project publishing options" on the "Advanced" subtab. ]
2
3<h4>Project state</h4>
4
5<div class="section">
6<table class="vt" cellspacing="20" style="width:60em">
7 [if-any offer_archive]
8 <tr>
9 <td>
10 <input type="submit" name="archivebtn" style="width:6em"
11 value="Archive">
12 </td>
13 <td>
14 Archive this project. It will only be visible read-only to
15 project members. Once it is archived, you may unarchive it, or go ahead
16 and fully delete it.
17 <br><br>
18 </td>
19 </tr>
20 [end]
21
22 [if-any offer_delete]
23 <tr>
24 <td>
25 <input type="submit" name="deletebtn" style="width:6em"
26 value="Delete" id="delbtn">
27 </td>
28 <td>
29 Completely delete this project now.
30 <br><br>
31 </td>
32 </tr>
33 [end]
34
35 [if-any offer_publish]
36 <tr>
37 <td>
38 <input type="submit" name="publishbtn" style="width:6em"
39 value="Unarchive">
40 </td>
41 <td>
42 Make this project active again.
43 All project contents will become visible and editable to users as normal.
44 <br><br>
45 </td>
46 </tr>
47 [end]
48
49 [if-any offer_move]
50 <tr>
51 <td>
52 <input type="submit" name="movedbtn" style="width:6em"
53 value="Move">
54 </td>
55 <td>
56 If you have moved your project to a different location, enter it here and
57 users will be directed to that location. If the destination is another
58 project on this site, enter just the new project name. If the destination
59 is another site, enter the new project home page URL.
60 <br><br>
61 <b>Location:</b>
62 <input type="text" name="moved_to" size="50" value="[moved_to]">
63 </td>
64 </tr>
65 [end]
66
67 [if-any offer_doom]
68 <tr>
69 <td>
70 <input type="submit" name="doombtn" style="width:6em"
71 value="Doom">
72 </td>
73 <td>
74 Immediately archive this project and schedule it for deletion in
75 90 days. Only a site admin can un-archive the project, not a
76 project owner. In the meantime, the project will be read-only for
77 project members only, and the reason for deletion will be displayed at the top
78 of each page.
79 <br><br>
80 <b>Reason:</b>
81 <input type="text" name="reason" size="50" value="[default_doom_reason]">
82 </td>
83 </tr>
84 [end]
85
86 [if-any offer_archive offer_delete offer_publish offer_doom offer_move][else]
87 <tr>
88 <td>
89 </td>
90 <td>
91 You are not authorized to change the project state.
92 </td>
93 </tr>
94 [end]
95
96</table>
97
98</div>
99
100<script type="text/javascript" nonce="[nonce]">
101runOnLoad(function() {
102 if ($("delbtn")) {
103 $("delbtn").addEventListener("click", function(event) {
104 var msg = "Really delete the whole project?\nThis operation cannot be undone.";
105 if (!confirm(msg))
106 event.preventDefault();
107 });
108 }
109});
110</script>