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

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

qseo_properties_edit_form.cpt description lines updated

  • Property svn:eol-style set to native
File size: 17.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/getId}/${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 test 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            <label i18n:translate="label_custom_metatags" for="custom_metatags">
259              Custom Meta Tags
260            </label>
261            <div class="formHelp" i18n:translate="help_seo_custommetatags">
262              Here you can manage your custom meta tags.
263            </div>
264            <table class="custom-metatags-table"
265                   id="datagridwidget-table-custommetatags"
266                   style="width: 100%"
267                   tal:define="columnNames python:['meta name', 'meta content'];
268                               columnIds   python:['meta_name', 'meta_content'];
269                               fielddata context/qSEO_CustomMetaTags|python:[];">
270                <thead>
271                    <tr>
272                        <th class="discreet" style="text-align: left"
273                            tal:repeat="columnName columnNames"
274                            tal:content="columnName"
275                            i18n:translate="">Column name</th>
276                        <th />
277                        <th />
278                    </tr>
279                </thead>
280                <tbody id="datagridwidget-tbody-custommetatags">
281                    <tal:row-loop tal:repeat="row fielddata">
282                        <tr id="datagridwidget-row">
283                            <tal:vars define="fieldId string:${fieldName}_${repeat/row/number}">
284                                <td class="datagridwidget-cell"
285                                    tal:repeat="column columnIds">
286                                    <tal:cell tal:define="cell_value python:row.get(column);">
287                                        <input type="text"
288                                               id="columnId_fieldId"
289                                               value=""
290                                               name="fieldId.columnId:records"
291                                               style="width: 100%;"
292                                               tal:attributes="name string:${fieldName}.${column}:records;
293                                                               id string:${column}_${fieldId};
294                                                               value cell_value"/>
295                                    </tal:cell>
296                                </td>
297                                <td  class="datagridwidget-manipulator">
298                                    <img alt="Delete row"
299                                         onclick="customMetaTagsFunctions.removeFieldRow(this);return false"
300                                         tal:attributes="src string:${portal_url}/delete_icon.gif;" />
301                                </td>
302                                <td class="datagridwidget-hidden-data">
303                                    <input type="hidden"
304                                           tal:attributes="name string:${fieldName}.orderindex_:records;
305                                                           id string:orderindex__${fieldId};
306                                                           value repeat/row/number;" />
307                                </td>
308                            </tal:vars>
309                        </tr>
310                    </tal:row-loop>
311                    <tr id="datagridwidget-empty-row"
312                        class="datagridwidget-empty-row"
313                        tal:define="fieldId string:${fieldName}_new">
314                        <td class="datagridwidget-cell"
315                            tal:repeat="column columnIds">
316                            <span>
317                                <input type="text"
318                                       id="columnId_fieldName_new"
319                                       value=""
320                                       name="fieldName.columnId:records"
321                                       style="width: 100%;"
322                                       tal:attributes="id string:${column}_${fieldName}_new;
323                                                       name string:${fieldName}.${column}:records;" />
324                           </span>
325                        </td>
326                        <td  class="datagridwidget-manipulator">
327                            <img alt="Delete row"
328                                 onclick="customMetaTagsFunctions.removeFieldRow(this);return false"
329                                 tal:attributes="src string:${portal_url}/delete_icon.gif;" />
330                        </td>
331                        <td class="datagridwidget-hidden-data">
332                            <input type="hidden"
333                                   value="template_row_marker"
334                                   tal:attributes="name string:${fieldName}.orderindex_:records;
335                                                  id string:orderindex__${fieldId};" />
336                        </td>
337                    </tr>
338                </tbody>
339            </table>
340            <input type="button"
341                   class="datagridwidget-add-button"
342                   id="datagridwidget-add-button"
343                   value="Add new row"
344                   tal:attributes="onclick string:customMetaTagsFunctions.addRow('${fieldName}')" />
345          </div>
346          <div class="formControls"
347               tal:define="process_creation request/process_creation|nothing;"
348               i18n:domain="plone">
349            <input class="context"
350                   tabindex=""
351                   type="submit"
352                   name="form.button.Save"
353                   value="Save"
354                   i18n:attributes="value"
355                   tal:attributes="tabindex tabindex/next;" />
356            <input class="standalone"
357                   tabindex=""
358                   type="submit"
359                   name="form.button.Cancel"
360                   value="Cancel"
361                   i18n:attributes="value"
362                   tal:attributes="tabindex tabindex/next;" />
363          </div>
364        </fieldset>
365        <input type="hidden" name="form.submitted" value="1" />
366      </form>
367    </div>
368  </body>
369</html>
370
Note: See TracBrowser for help on using the repository browser.