| 1 | <mt:setvar name="page_title" value="<__trans phrase="Edit Category">"> |
|---|
| 2 | <$mt:setvar name="position_actions_bottom" value="1"$> |
|---|
| 3 | <MTSetVarBlock name="system_msg"> |
|---|
| 4 | <mt:if name="error"> |
|---|
| 5 | <mtapp:statusmsg |
|---|
| 6 | id="generic-error" |
|---|
| 7 | class="error"> |
|---|
| 8 | <mt:var name="error"> |
|---|
| 9 | </mtapp:statusmsg> |
|---|
| 10 | </mt:if> |
|---|
| 11 | <mt:if name="saved"> |
|---|
| 12 | <mtapp:statusmsg |
|---|
| 13 | id="saved" |
|---|
| 14 | class="success" |
|---|
| 15 | rebuild="all"> |
|---|
| 16 | <__trans phrase="Your category changes have been made."> |
|---|
| 17 | </mtapp:statusmsg> |
|---|
| 18 | </mt:if> |
|---|
| 19 | </MTSetVarBlock> |
|---|
| 20 | <mt:setvarblock name="related_content"> |
|---|
| 21 | <mtapp:widget |
|---|
| 22 | id="useful-links" |
|---|
| 23 | label="<__trans phrase="Useful links">"> |
|---|
| 24 | <ul> |
|---|
| 25 | <li><a href="<mt:var name="script_url">?__mode=list_cat&_type=category&blog_id=<$mt:var name="blog_id"$>"><__trans phrase="Manage Categories"></a></li> |
|---|
| 26 | <li><a href="<mt:var name="script_url">?__mode=list_entry&blog_id=<$mt:var name="blog_id"$>&filter=category_id&filter_val=<$mt:var name="id"$>"><__trans phrase="Manage entries in this category"></a></li> |
|---|
| 27 | </ul> |
|---|
| 28 | </mtapp:widget> |
|---|
| 29 | </mt:setvarblock> |
|---|
| 30 | <mt:include name="include/header.tmpl"> |
|---|
| 31 | |
|---|
| 32 | <script type="text/javascript"> |
|---|
| 33 | /* <![CDATA[ */ |
|---|
| 34 | function validate(form) { |
|---|
| 35 | if (form.label.value.match(/\S/,'')) |
|---|
| 36 | return true; |
|---|
| 37 | alert('<__trans phrase="You must specify a label for the category." escape="singlequotes">'); |
|---|
| 38 | form.label.focus(); |
|---|
| 39 | return false; |
|---|
| 40 | } |
|---|
| 41 | |
|---|
| 42 | function toggleFile() { |
|---|
| 43 | var fld = getByID("basename"); |
|---|
| 44 | if (fld) { |
|---|
| 45 | fld.disabled = false; |
|---|
| 46 | fld.focus(); |
|---|
| 47 | var baseman = getByID("basename_manual"); |
|---|
| 48 | if (baseman) baseman.value = "1"; |
|---|
| 49 | var basewarn = getByID("basename-warning"); |
|---|
| 50 | if (basewarn) basewarn.style.display = "block"; |
|---|
| 51 | } |
|---|
| 52 | var img = getByID("basename-lock"); |
|---|
| 53 | if (img) |
|---|
| 54 | img.style.display = 'none'; |
|---|
| 55 | return false; |
|---|
| 56 | } |
|---|
| 57 | |
|---|
| 58 | var tableSelect; |
|---|
| 59 | function init() |
|---|
| 60 | { |
|---|
| 61 | // setup |
|---|
| 62 | tableSelect = new TC.TableSelect( "<$mt:var name="asset_type"$>-listing-table" ); |
|---|
| 63 | tableSelect.rowSelect = true; |
|---|
| 64 | } |
|---|
| 65 | TC.attachLoadEvent( init ); |
|---|
| 66 | /* ]]> */ |
|---|
| 67 | </script> |
|---|
| 68 | |
|---|
| 69 | |
|---|
| 70 | <div id="category-details-content"> |
|---|
| 71 | <form method="post" action="<mt:var name="script_url">" onsubmit="return validate(this)"> |
|---|
| 72 | <input type="hidden" name="blog_id" value="<mt:var name="blog_id">" /> |
|---|
| 73 | <input type="hidden" name="__mode" value="save" /> |
|---|
| 74 | <input type="hidden" name="_type" value="<mt:var name="object_type">" /> |
|---|
| 75 | <input type="hidden" name="id" value="<mt:var name="id">" /> |
|---|
| 76 | <input type="hidden" name="return_args" value="<mt:var name="return_args" escape="html">" /> |
|---|
| 77 | <input type="hidden" name="magic_token" value="<mt:var name="magic_token">" /> |
|---|
| 78 | <input type="hidden" name="category_parent" value="<mt:var name="parent">" /> |
|---|
| 79 | |
|---|
| 80 | <fieldset> |
|---|
| 81 | <mtapp:setting |
|---|
| 82 | id="label" |
|---|
| 83 | label="<__trans phrase="Label">"> |
|---|
| 84 | <div class="textarea-wrapper"> |
|---|
| 85 | <input name="label" id="label" class="full-width" maxlength="100" value="<mt:var name="label" escape="html">" class="wide" /> |
|---|
| 86 | </div> |
|---|
| 87 | </mtapp:setting> |
|---|
| 88 | |
|---|
| 89 | <input type="hidden" name="basename_manual" id="basename_manual" value="0" /> |
|---|
| 90 | <input type="hidden" name="basename_old" id="basename_old" value="<mt:var name="basename_old" escape="html">" /> |
|---|
| 91 | |
|---|
| 92 | <mtapp:setting |
|---|
| 93 | id="basename" |
|---|
| 94 | label="<__trans phrase="_CATEGORY_BASENAME">" |
|---|
| 95 | hint="<__trans phrase="This is the basename assigned to your category.">" |
|---|
| 96 | help_page="categories" |
|---|
| 97 | help_section="category_basename"> |
|---|
| 98 | <input name="basename" id="basename" class="width90" maxlength="250" value="<mt:var name="basename" escape="html">" disabled="disabled" onchange="setElementValue('basename', dirify(this.value))" /> |
|---|
| 99 | <a href="javascript:void(0);"id="basename-lock" title="<__trans phrase="Unlock this category’s output filename for editing">" onclick="return toggleFile()"><span>Unlock</span></a> |
|---|
| 100 | |
|---|
| 101 | <p class="alert-warning-inline" id="basename-warning" style="display: none;"> |
|---|
| 102 | <img src="<mt:var name="static_uri">images/status_icons/warning.gif" alt="<__trans phrase="Warning">" width="9" height="9" /> |
|---|
| 103 | <__trans phrase="Warning: Changing this category's basename may break inbound links."> |
|---|
| 104 | </p> |
|---|
| 105 | </mtapp:setting> |
|---|
| 106 | |
|---|
| 107 | <mtapp:setting |
|---|
| 108 | id="description" |
|---|
| 109 | label="<__trans phrase="Description">"> |
|---|
| 110 | <textarea name="description" id="description" rows="" cols="" class="full-width short"><mt:var name="description" escape="html"></textarea> |
|---|
| 111 | </mtapp:setting> |
|---|
| 112 | </fieldset> |
|---|
| 113 | |
|---|
| 114 | <fieldset> |
|---|
| 115 | <h3><__trans phrase="Inbound TrackBacks"></h3> |
|---|
| 116 | <mtapp:setting |
|---|
| 117 | id="allow_pings" |
|---|
| 118 | label="<__trans phrase="Accept Trackbacks">" |
|---|
| 119 | hint="<__trans phrase="If enabled, TrackBacks will be accepted for this category from any source.">" |
|---|
| 120 | help_page="categories" |
|---|
| 121 | help_section="accept_category_pings"> |
|---|
| 122 | <input type="checkbox" name="allow_pings" id="allow_pings" value="1" onclick="toggleSubPrefs(this); return true"<mt:if name="allow_pings"> checked="checked"</mt:if> class="cb" /> |
|---|
| 123 | </mtapp:setting> |
|---|
| 124 | |
|---|
| 125 | <mt:if name="tb"> |
|---|
| 126 | <mtapp:setting |
|---|
| 127 | id="view_trackbacks" |
|---|
| 128 | label="<__trans phrase="TrackBacks">"> |
|---|
| 129 | <div id="view_trackbacks"><strong><a href="<$mt:var name="script_url">?__mode=list_pings&filter=category_id&filter_val=<$mt:var name="id"$>&blog_id=<$mt:var name="blog_id"$>"><__trans phrase="View TrackBacks"></a></strong></div> |
|---|
| 130 | </mtapp:setting> |
|---|
| 131 | </mt:if> |
|---|
| 132 | <div id="allow_pings_prefs" style="display:<mt:if name="allow_pings">block<mt:else>none</mt:if>"> |
|---|
| 133 | <mt:if name="tb_url"> |
|---|
| 134 | <mtapp:setting |
|---|
| 135 | id="trackback_url" |
|---|
| 136 | label="<__trans phrase="TrackBack URL for this category">" |
|---|
| 137 | hint="<__trans phrase="_USAGE_CATEGORY_PING_URL">"> |
|---|
| 138 | <div class="textarea-wrapper"> |
|---|
| 139 | <input type="text" name="trackback_url" id="trackback_url" readonly="readonly" value="<mt:var name="tb_url" escape="html">" class="full-width" /> |
|---|
| 140 | </div> |
|---|
| 141 | </mtapp:setting> |
|---|
| 142 | <mtapp:setting |
|---|
| 143 | id="tb_passphrase" |
|---|
| 144 | label="<__trans phrase="Passphrase Protection">" |
|---|
| 145 | hint="<__trans phrase="Optional">" |
|---|
| 146 | help_page="categories" |
|---|
| 147 | help_section="trackback_passphrase_protection"> |
|---|
| 148 | <div class="textarea-wrapper"> |
|---|
| 149 | <input name="tb_passphrase" id="tb_passphrase" class="full-width" value="<mt:var name="tb_passphrase" escape="html">" size="30" /> |
|---|
| 150 | </div> |
|---|
| 151 | </mtapp:setting> |
|---|
| 152 | </mt:if> |
|---|
| 153 | </div> |
|---|
| 154 | </fieldset> |
|---|
| 155 | |
|---|
| 156 | <fieldset> |
|---|
| 157 | <h3><__trans phrase="Outbound TrackBacks"></h3> |
|---|
| 158 | <mtapp:setting |
|---|
| 159 | id="ping_urls" |
|---|
| 160 | label="<__trans phrase="Trackback URLs">" |
|---|
| 161 | hint="<__trans phrase="Enter the URL(s) of the websites that you would like to send a TrackBack to each time you create an entry in this category. (Separate URLs with a carriage return.)">" |
|---|
| 162 | help_page="categories" |
|---|
| 163 | help_section="categories_urls_to_ping"> |
|---|
| 164 | <textarea name="ping_urls" id="ping_urls" cols="" rows="" class="full-width short"><mt:var name="ping_urls" escape="html"></textarea> |
|---|
| 165 | </mtapp:setting> |
|---|
| 166 | </fieldset> |
|---|
| 167 | |
|---|
| 168 | <mt:setvarblock name="action_buttons"> |
|---|
| 169 | <button |
|---|
| 170 | type="submit" |
|---|
| 171 | accesskey="s" |
|---|
| 172 | title="<__trans phrase="Save changes to this category (s)">" |
|---|
| 173 | class="primary-button" |
|---|
| 174 | ><__trans phrase="Save Changes"></button> |
|---|
| 175 | </mt:setvarblock> |
|---|
| 176 | <mt:include name="include/actions_bar.tmpl" bar_position="bottom" hide_pager="1" settings_bar="1"> |
|---|
| 177 | </form> |
|---|
| 178 | |
|---|
| 179 | </div> |
|---|
| 180 | <mt:include name="include/footer.tmpl"> |
|---|