OLD | NEW |
(Empty) | |
| 1 [define category_css]css/ph_list.css[end] |
| 2 [include "../framework/master-header.ezt" "showtabs"] |
| 3 [include "../framework/js-placeholders.ezt"] |
| 4 |
| 5 [if-any read_only][include "../framework/read-only-rejection.ezt"] |
| 6 [else] |
| 7 |
| 8 <form action="adminLabels.do" id="adminLabels" method="POST"> |
| 9 <input type="hidden" name="token" value="[form_token]"> |
| 10 |
| 11 <h4>Predefined issue labels</h4> |
| 12 <div class="section"> |
| 13 [if-any perms.EditProject] |
| 14 <table class="vt"> |
| 15 <tr><td> |
| 16 <textarea name="predefinedlabels" rows="12" cols="75" style="tab-size:18"
>[for config.issue_labels] |
| 17 [config.issue_labels.commented][config.issue_labels.name_padded][if-any config.i
ssue_labels.docstring]	= [config.issue_labels.docstring][end][end] |
| 18 </textarea><br><br> |
| 19 |
| 20 Each issue may have <b>at most one</b> label with each of these prefixes:
<br> |
| 21 <input type="text" size="75" name="excl_prefixes" |
| 22 value="[for config.excl_prefixes][config.excl_prefixes][if-index c
onfig.excl_prefixes last][else], [end][end]"> |
| 23 </td> |
| 24 <td style="padding-left:.7em"> |
| 25 <div class="tip"> |
| 26 <b>Instructions:</b><br> List one label per line in desired sort-orde
r.<br><br> |
| 27 Optionally, use an equals-sign to document the meaning of each label. |
| 28 </div> |
| 29 </td> |
| 30 </tr> |
| 31 </table> |
| 32 [else] |
| 33 <table cellspacing="0" cellpadding="2" border="0" class="results striped" wi
dth="100%"> |
| 34 <tr> |
| 35 <th style="min-width:14em">Label</th> |
| 36 <th width="100%">Meaning</th> |
| 37 </tr> |
| 38 [for config.issue_labels] |
| 39 <tr> |
| 40 <td style="white-space:nowrap; padding-right:2em; color:#363">[config.i
ssue_labels.name]</td> |
| 41 <td>[config.issue_labels.docstring]</td> |
| 42 </tr> |
| 43 [end] |
| 44 </table> |
| 45 [end] |
| 46 </div> |
| 47 |
| 48 [if-any perms.EditProject] |
| 49 <input type="submit" id="savechanges" name="btn" value="Save changes" class="
submit"> |
| 50 [end] |
| 51 |
| 52 <br> |
| 53 <br> |
| 54 |
| 55 <h4>Custom fields</h4> |
| 56 <div class="section"> |
| 57 <table cellspacing="0" cellpadding="2" border="0" class="results striped vt" i
d="resultstable" width="100%"> |
| 58 <tbody> |
| 59 <tr> |
| 60 <th>Name</th> |
| 61 <th>Type</th> |
| 62 <th>Required</th> |
| 63 <th>Multivalued</th> |
| 64 <th>Applicable to</th> |
| 65 <th>Description</th> |
| 66 </tr> |
| 67 [if-any field_defs][else] |
| 68 <tr> |
| 69 <td colspan="40"> |
| 70 <div style="padding: 3em; text-align: center"> |
| 71 This project has not defined any custom fields. |
| 72 </div> |
| 73 </td> |
| 74 </tr> |
| 75 [end] |
| 76 [for field_defs] |
| 77 [define detail_url]/p/[projectname]/fields/detail?field=[field_defs.field_
name][end] |
| 78 [is field_defs.type_name "INT_TYPE"][define pretty_type_name]Integer[end][
end] |
| 79 [is field_defs.type_name "ENUM_TYPE"][define pretty_type_name]Enum[end][en
d] |
| 80 [is field_defs.type_name "USER_TYPE"][define pretty_type_name]User[end][en
d] |
| 81 [is field_defs.type_name "STR_TYPE"][define pretty_type_name]String[end][e
nd] |
| 82 <tr data-url="[detail_url]"> |
| 83 <td class="id" style="white-space:nowrap"> |
| 84 <a href="[detail_url]">[field_defs.field_name]</a></td> |
| 85 <td style="white-space:nowrap"> |
| 86 [pretty_type_name] |
| 87 </td> |
| 88 <td style="white-space:nowrap"> |
| 89 [if-any field_defs.is_required_bool]Required[else]Optional[end] |
| 90 </td> |
| 91 <td style="white-space:nowrap"> |
| 92 [if-any field_defs.is_multivalued_bool]Multiple[else]Single[end] |
| 93 </td> |
| 94 <td style="white-space:nowrap"> |
| 95 [if-any field_defs.applicable_type][field_defs.applicable_type][else]A
ny issue[end] |
| 96 </td> |
| 97 <td> |
| 98 [field_defs.docstring_short] |
| 99 </td> |
| 100 </tr> |
| 101 [end] |
| 102 </tbody> |
| 103 </table> |
| 104 <div class="list-foot"></div> |
| 105 [if-any perms.EditProject] |
| 106 <p><a href="/p/[projectname]/fields/create" class="buttonify">Add field</a><
/p> |
| 107 [end] |
| 108 </div> |
| 109 |
| 110 </form> |
| 111 |
| 112 [end] |
| 113 |
| 114 |
| 115 [include "../framework/footer-script.ezt"] |
| 116 <script type="text/javascript" nonce="[nonce]"> |
| 117 runOnLoad(function() { |
| 118 _onload(); |
| 119 |
| 120 function _handleResultsClick(event) { |
| 121 var target = event.target; |
| 122 if (target.tagName == "A") |
| 123 return; |
| 124 while (target && target.tagName != "TR") target = target.parentNode; |
| 125 _go(target.attributes[[]"data-url"].value, |
| 126 (event.metaKey || event.ctrlKey || event.button == 1)); |
| 127 }; |
| 128 $("resultstable").addEventListener("click", _handleResultsClick); |
| 129 }); |
| 130 </script> |
| 131 |
| 132 [include "../framework/master-footer.ezt"] |
OLD | NEW |