source: products/quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/skins/quintagroup.seoptimizer/qseo_properties_edit_form.cpt @ 1270

Last change on this file since 1270 was 1270, checked in by olha, 15 years ago

Text on SEO properties tab updated

  • Property svn:eol-style set to native
File size: 19.1 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
2      lang="en"
3      metal:use-macro="here/main_template/macros/master"
4      i18n:domain="qseoptimizer">
5  <metal:border fill-slot="top_slot">
6    <tal:border define="dummy python:request.set('enable_border',1)" />
7  </metal:border>
8  <metal:style_head fill-slot="style_slot">
9      <style type="text/css">
10          tr.datagridwidget-empty-row {
11              display:none;
12          }
13      </style>
14  </metal:style_head>
15  <metal:javascript_head fill-slot="javascript_head_slot">
16      <script type="text/javascript"
17              tal:condition="python:exists('portal/statistics.js')"
18              tal:attributes="src string:${here/absolute_url}/statistics.js">
19      </script>
20      <script type="text/javascript"
21              tal:condition="python:exists('portal/checkkeywords.js')"
22              tal:attributes="src string:${here/absolute_url}/checkkeywords.js">
23      </script>
24      <script type="text/javascript"
25              tal:condition="python:exists('portal/custommetatags.js')"
26              tal:attributes="src string:${here/absolute_url}/custommetatags.js">
27      </script>
28  </metal:javascript_head>
29  <body>
30    <div metal:fill-slot="main"
31         tal:define="errors options/state/getErrors;">
32      <h1 i18n:translate="heading_edit_seo_properties">Edit SEO Properties</h1>
33      <p i18n:translate="description_edit_seo_properties">
34        This form allows you to edit html header meta tags that are produced by
35        Plone CMS to incrase Search Engine visibility. The values generated by
36        Plone are present as default values in input fields. To override default
37        value, check corresponding checkbox and input value itself in the
38        corresponding field.
39      </p>
40      <form name="edit_form"
41            action=""
42            method="post"
43            tal:attributes="action string:${here/absolute_url}/${template/getId}">
44        <fieldset>
45          <legend i18n:domain="plone" i18n:translate="legend_item_properties">
46            Item Properties
47          </legend>
48          <div class="field">
49            <label i18n:translate="label_page_title_tag" for="title">
50              Page Title Tag
51            </label>
52            <div class="formHelp" i18n:translate="help_seo_title">
53              Text to be present in &lt;TITLE&gt; tag. It is displayed in
54              browser title bar. Search engines display it as a title of the
55              document.
56            </div>
57            <input type="checkbox"
58                   id="title_override"
59                   name="title_override"
60                   tabindex=""
61                   tal:attributes="checked python:test(here.hasProperty('qSEO_title'), 'on', None);
62                                   tabindex tabindex/next;"
63                   />
64            <label i18n:translate="label_override" for="title_override">
65              Override
66            </label>
67            <input type="text"
68                   id="seo_title"
69                   name="title"
70                   size="40"
71                   value=""
72                   tabindex=""
73                   tal:attributes="value request/title | here/@@seo_context/seo_title;
74                                   tabindex tabindex/next;"
75                   />
76          </div>
77          <div class="field">
78            <label i18n:translate="label_meta_description_tag" for="description">
79              Meta Description Tag
80            </label>
81            <div class="formHelp" i18n:translate="help_seo_description">
82              Description of the document to be indexed by Search Engines. This text will be present in meta description tag in page HTML source.
83            </div>
84            <input type="checkbox"
85                   id="description_override"
86                   name="description_override"
87                   tabindex=""
88                   tal:attributes="checked python:test(here.hasProperty('qSEO_description'), 'on', None);
89                                   tabindex tabindex/next;"
90                   />
91            <label i18n:translate="label_override" for="description_override">
92              Override
93            </label>
94            <textarea
95                      type="text"
96                      id="seo_description"
97                      name="description"
98                      rows="5"
99                      cols="15"
100                      tabindex=""
101                      tal:attributes="tabindex tabindex/next;"
102                      tal:content="request/description | here/@@seo_context/seo_description"
103                      ></textarea>
104
105          </div>
106           
107          <div class="field">
108            <label i18n:translate="label_meta_keywords_tag" for="keywords">
109              Meta Keywords Tag
110            </label>
111            <div class="formHelp" i18n:translate="help_seo_keywords">
112              Keywords, the page will be indexed with.
113              <strong>Enter each keyword in separate line, please.</strong>
114              Though the relevance of listing meta keywords is of
115              questionable value now, it is useful to set meta keywords for
116              pages - for furture reference.
117            </div>
118            <input type="checkbox"
119                   id="keywords_override"
120                   name="keywords_override"
121                   tabindex=""
122                   tal:attributes="checked python:test(here.hasProperty('qSEO_keywords'), 'on', None);
123                                   tabindex tabindex/next;"
124                   />
125            <label i18n:translate="label_override" for="keywords_override">
126              Override
127            </label>
128            <textarea
129                      id="seo_keywords"
130                      name="keywords:lines"
131                      rows="11"
132                      cols="15"
133                      wrap="off"
134                      tabindex=""
135                      tal:attributes="tabindex tabindex/next;"
136                      tal:define="keywords request/keywords | here/@@seo_context/seo_keywords"
137                      tal:content="python:'\n'.join(keywords)"
138                      ></textarea>
139          </div>
140          <div class="field">
141            <label i18n:translate="label_html_comment" for="html_commment">
142              HTML Comment
143            </label>
144            <div class="formHelp" i18n:translate="help_seo_html_comment">
145              Comments embedded into HTML header.
146            </div>
147            <input type="checkbox"
148                   id="html_comment_override"
149                   name="html_comment_override"
150                   tabindex=""
151                   tal:attributes="checked python:test(here.hasProperty('qSEO_html_comment'), 'on', None);
152                                   tabindex tabindex/next;"
153                   />
154            <label i18n:translate="label_override" for="html_comment_override">
155              Override
156            </label>
157            <br />
158            <textarea
159                      id="seo_html_comment"
160                      name="html_comment"
161                      rows="5"
162                      cols="15"
163                      tabindex=""
164                      tal:attributes="tabindex tabindex/next;"
165                      tal:content="request/html_comment | here/@@seo_context/seo_html_comment"
166                      ></textarea>
167          </div>
168          <div class="field">
169            <label i18n:translate="label_robot_tag" for="robots">
170              Robot Tag
171            </label>
172            <div class="formHelp" i18n:translate="help_seo_robots">
173              Robots meta tag value. Allows or denies indexing, following
174              links, etc. for spiders indexing your content.
175            </div>
176            <input type="checkbox"
177                   id="robots_override"
178                   name="robots_override"
179                   tabindex=""
180                   tal:attributes="checked python:test(here.hasProperty('qSEO_robots'), 'on', None);
181                                   tabindex tabindex/next;"
182                   />
183            <label i18n:translate="label_override" for="robots_override">
184              Override
185            </label><br />
186            <input type="text"
187                   id="seo_robots"
188                   name="robots"
189                   size="25"
190                   value=""
191                   tabindex=""
192                   tal:attributes="value request/robots | here/@@seo_context/seo_robots;
193                                   tabindex tabindex/next;"
194                   />
195          </div>
196          <div class="field">
197            <label i18n:translate="label_distribution_tag" for="distribution">
198              Distribution Tag
199            </label>
200            <div class="formHelp" i18n:translate="help_seo_distribution">
201              Distribution meta tag to designate time and area disribution
202              of the document.
203            </div>
204            <input type="checkbox"
205                   id="distribution_override"
206                   name="distribution_override"
207                   tabindex=""
208                   tal:attributes="checked python:test(here.hasProperty('qSEO_distribution'), 'on', None);
209                                   tabindex tabindex/next;"
210                   />
211            <label i18n:translate="label_override" for="distribution_override">
212              Override
213            </label><br />
214            <input type="text"
215                   id="seo_distribution"
216                   name="distribution"
217                   size="25"
218                   value=""
219                   tabindex=""
220                   tal:attributes="value request/distribution | here/@@seo_context/seo_distribution;
221                                   tabindex tabindex/next;"
222                   />
223          </div>
224          <div class="field"
225               tal:define="error errors/canonical|nothing;"
226               tal:attributes="class python:test(error, 'field error', 'field')">
227            <label i18n:translate="label_canonical_tag" for="canonical">
228              Canonical URL
229            </label>
230            <div class="formHelp" i18n:translate="help_seo_canonical">
231              Specify your canonical URL.
232              If your site has identical or vastly similar content that's accessible through multiple URLs,
233              this format provides you with more control over the URL returned in search results.
234            </div>
235            <input type="checkbox"
236                   id="canonical_override"
237                   name="canonical_override"
238                   tabindex=""
239                   tal:attributes="checked python:test(here.hasProperty('qSEO_canonical'), 'on', None);
240                                   tabindex tabindex/next;"
241                   />
242            <label i18n:translate="label_override" for="canonical_override">
243              Override
244            </label><br />
245            <div tal:content="error">Validation error output</div>
246            <input type="text"
247                   id="seo_canonical"
248                   name="canonical"
249                   size="55"
250                   value=""
251                   tabindex=""
252                   tal:attributes="value request/canonical | here/@@seo_context/seo_canonical;
253                                   tabindex tabindex/next;"
254                   />
255          </div>
256          <div class="field"
257               tal:define="fieldName string:custommetatags;
258                           nonEmptylocalMetaTags here/@@seo_context/seo_nonEmptylocalMetaTags;">
259            <label i18n:translate="label_custom_metatags" for="custom_metatags">
260              Custom Meta Tags
261            </label>
262            <div class="formHelp" i18n:translate="help_seo_custommetatags">
263              Here you can manage your custom meta tags. Specify local Meta Tags parameters to be added to the global Meta Tags.
264            </div>
265            <input type="checkbox"
266                   id="custommetatags_override"
267                   name="custommetatags_override"
268                   tabindex=""
269                   tal:attributes="checked python:test(nonEmptylocalMetaTags, 'on', None);
270                                   tabindex tabindex/next;"
271                   />
272            <label i18n:translate="label_override" for="custommetatags_override">
273              Override
274            </label><br />
275            <table class="custom-metatags-table"
276                   id="datagridwidget-table-custommetatags"
277                   style="width: 100%"
278                   tal:define="columnNames python:['meta name', 'meta content'];
279                               columnIds   python:['meta_name', 'meta_content'];
280                               globalMT    here/@@seo_context/seo_globalWithoutLocalCustomMetaTags;
281                               localMT    here/@@seo_context/seo_localCustomMetaTags;">
282                <thead>
283                    <tr>
284                        <th class="discreet" style="text-align: left"
285                            tal:repeat="columnName columnNames"
286                            tal:content="columnName"
287                            i18n:translate="">Column name</th>
288                        <th />
289                        <th />
290                    </tr>
291                </thead>
292                <tbody id="datagridwidget-tbody-custommetatags">
293                    <tal:row-loop tal:repeat="row globalMT">
294                        <tr id="datagridwidget-row">
295                            <tal:vars define="fieldId string:${fieldName}_${repeat/row/number}">
296                                <td class="datagridwidget-cell"
297                                    tal:repeat="column columnIds">
298                                    <tal:cell tal:define="cell_value python:row.get(column);">
299                                        <input type="text"
300                                               id="columnId_fieldId"
301                                               value=""
302                                               name="fieldId.columnId:records"
303                                               style="width: 100%;"
304                                               tal:attributes="name string:${fieldName}.${column}:records;
305                                                               id string:${column}_${fieldId};
306                                                               value cell_value"/>
307                                    </tal:cell>
308                                </td>
309                            </tal:vars>
310                        </tr>
311                    </tal:row-loop>
312                    <tal:row-loop tal:repeat="row localMT">
313                        <tr id="datagridwidget-row">
314                            <tal:vars define="fieldId string:${fieldName}_${repeat/row/number}">
315                                <td class="datagridwidget-cell"
316                                    tal:repeat="column columnIds">
317                                    <tal:cell tal:define="cell_value python:row.get(column);">
318                                        <input type="text"
319                                               id="columnId_fieldId"
320                                               value=""
321                                               name="fieldId.columnId:records"
322                                               style="width: 100%;"
323                                               tal:attributes="name string:${fieldName}.${column}:records;
324                                                               id string:${column}_${fieldId};
325                                                               value cell_value"/>
326                                    </tal:cell>
327                                </td>
328                                <td  class="datagridwidget-manipulator">
329                                    <img alt="Delete row"
330                                         onclick="customMetaTagsFunctions.removeFieldRow(this);return false"
331                                         tal:attributes="src string:${portal_url}/delete_icon.gif;" />
332                                </td>
333                                <td class="datagridwidget-hidden-data">
334                                    <input type="hidden"
335                                           tal:attributes="name string:${fieldName}.orderindex_:records;
336                                                           id string:orderindex__${fieldId};
337                                                           value repeat/row/number;" />
338                                </td>
339                            </tal:vars>
340                        </tr>
341                    </tal:row-loop>
342                    <tr id="datagridwidget-empty-row"
343                        class="datagridwidget-empty-row"
344                        tal:define="fieldId string:${fieldName}_new">
345                        <td class="datagridwidget-cell"
346                            tal:repeat="column columnIds">
347                            <span>
348                                <input type="text"
349                                       id="columnId_fieldName_new"
350                                       value=""
351                                       name="fieldName.columnId:records"
352                                       style="width: 100%;"
353                                       tal:attributes="id string:${column}_${fieldName}_new;
354                                                       name string:${fieldName}.${column}:records;" />
355                           </span>
356                        </td>
357                        <td  class="datagridwidget-manipulator">
358                            <img alt="Delete row"
359                                 onclick="customMetaTagsFunctions.removeFieldRow(this);return false"
360                                 tal:attributes="src string:${portal_url}/delete_icon.gif;" />
361                        </td>
362                        <td class="datagridwidget-hidden-data">
363                            <input type="hidden"
364                                   value="template_row_marker"
365                                   tal:attributes="name string:${fieldName}.orderindex_:records;
366                                                  id string:orderindex__${fieldId};" />
367                        </td>
368                    </tr>
369                </tbody>
370            </table>
371            <input type="button"
372                   class="datagridwidget-add-button"
373                   id="datagridwidget-add-button"
374                   value="Add new row"
375                   tal:attributes="onclick string:customMetaTagsFunctions.addRow('${fieldName}')" />
376          </div>
377          <div class="formControls"
378               tal:define="process_creation request/process_creation|nothing;"
379               i18n:domain="plone">
380            <input class="context"
381                   tabindex=""
382                   type="submit"
383                   name="form.button.Save"
384                   value="Save"
385                   i18n:attributes="value"
386                   tal:attributes="tabindex tabindex/next;" />
387            <input class="standalone"
388                   tabindex=""
389                   type="submit"
390                   name="form.button.Cancel"
391                   value="Cancel"
392                   i18n:attributes="value"
393                   tal:attributes="tabindex tabindex/next;" />
394          </div>
395        </fieldset>
396        <input type="hidden" name="form.submitted" value="1" />
397      </form>
398    </div>
399  </body>
400</html>
401
Note: See TracBrowser for help on using the repository browser.