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

Last change on this file since 896 was 896, checked in by chervol, 17 years ago

fixed the recent portlet markup, added extra css class for the 'more...' link

  • Property svn:eol-style set to native
File size: 17.2 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 ape 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
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 into &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 displayed right below title
83              in search engine results. It is indexed and considered to be
84              more important then the page content by several SE.
85            </div>
86            <input type="checkbox"
87                   id="description_override"
88                   name="description_override"
89                   tabindex=""
90                   tal:attributes="checked python:test(here.hasProperty('qSEO_description'), 'on', None);
91                                   tabindex tabindex/next;"
92                   />
93            <label i18n:translate="label_override" for="description_override">
94              Override
95            </label>
96            <textarea
97                      type="text"
98                      id="seo_description"
99                      name="description"
100                      rows="5"
101                      cols="15"
102                      tabindex=""
103                      tal:attributes="tabindex tabindex/next;"
104                      tal:content="request/description | here/@@seo_context/seo_description"
105                      ></textarea>
106
107          </div>
108           
109          <div class="field">
110            <label i18n:translate="label_meta_keywords_tag" for="keywords">
111              Meta Keywords Tag
112            </label>
113            <div class="formHelp" i18n:translate="help_seo_keywords">
114              Keywords of the page to be indexed with.
115              <strong>Enter each keyword in separate line, please.</strong>
116              Though the relevance of listing meta keywords is of
117              questionable value now it is useful to document what
118              meta keywords you are focusing on for this page - for
119              furture reference.
120            </div>
121            <input type="checkbox"
122                   id="keywords_override"
123                   name="keywords_override"
124                   tabindex=""
125                   tal:attributes="checked python:test(here.hasProperty('qSEO_keywords'), 'on', None);
126                                   tabindex tabindex/next;"
127                   />
128            <label i18n:translate="label_override" for="keywords_override">
129              Override
130            </label>
131            <textarea
132                      id="seo_keywords"
133                      name="keywords:lines"
134                      rows="11"
135                      cols="15"
136                      wrap="off"
137                      tabindex=""
138                      tal:attributes="tabindex tabindex/next;"
139                      tal:define="keywords request/keywords | here/@@seo_context/seo_keywords"
140                      tal:content="python:'\n'.join(keywords)"
141                      ></textarea>
142          </div>
143          <div class="field">
144            <label i18n:translate="label_html_comment" for="html_commment">
145              HTML Comment
146            </label>
147            <div class="formHelp" i18n:translate="help_seo_html_comment">
148              Comments embedded into HTML header.
149            </div>
150            <input type="checkbox"
151                   id="html_comment_override"
152                   name="html_comment_override"
153                   tabindex=""
154                   tal:attributes="checked python:test(here.hasProperty('qSEO_html_comment'), 'on', None);
155                                   tabindex tabindex/next;"
156                   />
157            <label i18n:translate="label_override" for="html_comment_override">
158              Override
159            </label>
160            <br />
161            <textarea
162                      id="seo_html_comment"
163                      name="html_comment"
164                      rows="5"
165                      cols="15"
166                      tabindex=""
167                      tal:attributes="tabindex tabindex/next;"
168                      tal:content="request/html_comment | here/@@seo_context/seo_html_comment"
169                      ></textarea>
170          </div>
171          <div class="field">
172            <label i18n:translate="label_robot_tag" for="robots">
173              Robot Tag
174            </label>
175            <div class="formHelp" i18n:translate="help_seo_robots">
176              Robots meta tag value. Allows or denies indefing, following
177              links, etc. for spiders indexing your content.
178            </div>
179            <input type="checkbox"
180                   id="robots_override"
181                   name="robots_override"
182                   tabindex=""
183                   tal:attributes="checked python:test(here.hasProperty('qSEO_robots'), 'on', None);
184                                   tabindex tabindex/next;"
185                   />
186            <label i18n:translate="label_override" for="robots_override">
187              Override
188            </label><br />
189            <input type="text"
190                   id="seo_robots"
191                   name="robots"
192                   size="25"
193                   value=""
194                   tabindex=""
195                   tal:attributes="value request/robots | here/@@seo_context/seo_robots;
196                                   tabindex tabindex/next;"
197                   />
198          </div>
199          <div class="field">
200            <label i18n:translate="label_distribution_tag" for="distribution">
201              Distribution Tag
202            </label>
203            <div class="formHelp" i18n:translate="help_seo_distribution">
204              Distribution meta tag to designate time and area disribution
205              of the document.
206            </div>
207            <input type="checkbox"
208                   id="distribution_override"
209                   name="distribution_override"
210                   tabindex=""
211                   tal:attributes="checked python:test(here.hasProperty('qSEO_distribution'), 'on', None);
212                                   tabindex tabindex/next;"
213                   />
214            <label i18n:translate="label_override" for="distribution_override">
215              Override
216            </label><br />
217            <input type="text"
218                   id="seo_distribution"
219                   name="distribution"
220                   size="25"
221                   value=""
222                   tabindex=""
223                   tal:attributes="value request/distribution | here/@@seo_context/seo_distribution;
224                                   tabindex tabindex/next;"
225                   />
226          </div>
227          <div class="field"
228               tal:define="error errors/canonical|nothing;"
229               tal:attributes="class python:test(error, 'field error', 'field')">
230            <label i18n:translate="label_canonical_tag" for="canonical">
231              Canonical URL
232            </label>
233            <div class="formHelp" i18n:translate="help_seo_canonical">
234              Specify your canonical URL.
235              If your site has identical or vastly similar content that's accessible through multiple URLs,
236              this format provides you with more control over the URL returned in search results.
237            </div>
238            <input type="checkbox"
239                   id="canonical_override"
240                   name="canonical_override"
241                   tabindex=""
242                   tal:attributes="checked python:test(here.hasProperty('qSEO_canonical'), 'on', None);
243                                   tabindex tabindex/next;"
244                   />
245            <label i18n:translate="label_override" for="canonical_override">
246              Override
247            </label><br />
248            <div tal:content="error">Validation error output</div>
249            <input type="text"
250                   id="seo_canonical"
251                   name="canonical"
252                   size="55"
253                   value=""
254                   tabindex=""
255                   tal:attributes="value request/canonical | here/@@seo_context/seo_canonical;
256                                   tabindex tabindex/next;"
257                   />
258          </div>
259          <div class="field"
260               tal:define="fieldName string:custommetatags;">
261            <label i18n:translate="label_custom_metatags" for="custom_metatags">
262              Custom Meta Tags
263            </label>
264            <div class="formHelp" i18n:translate="help_seo_custommetatags">
265              Here you can manage your custom meta tags.
266            </div>
267            <table class="custom-metatags-table"
268                   id="datagridwidget-table-custommetatags"
269                   style="width: 100%"
270                   tal:define="columnNames python:['meta name', 'meta content'];
271                               columnIds   python:['meta_name', 'meta_content'];
272                               fielddata context/qSEO_CustomMetaTags|python:[];">
273                <thead>
274                    <tr>
275                        <th class="discreet" style="text-align: left"
276                            tal:repeat="columnName columnNames"
277                            tal:content="columnName"
278                            i18n:translate="">Column name</th>
279                        <th />
280                        <th />
281                    </tr>
282                </thead>
283                <tbody id="datagridwidget-tbody-custommetatags">
284                    <tal:row-loop tal:repeat="row fielddata">
285                        <tr id="datagridwidget-row">
286                            <tal:vars define="fieldId string:${fieldName}_${repeat/row/number}">
287                                <td class="datagridwidget-cell"
288                                    tal:repeat="column columnIds">
289                                    <tal:cell tal:define="cell_value python:row.get(column);">
290                                        <input type="text"
291                                               id="columnId_fieldId"
292                                               value=""
293                                               name="fieldId.columnId:records"
294                                               style="width: 100%;"
295                                               tal:attributes="name string:${fieldName}.${column}:records;
296                                                               id string:${column}_${fieldId};
297                                                               value cell_value"/>
298                                    </tal:cell>
299                                </td>
300                                <td  class="datagridwidget-manipulator">
301                                    <img alt="Delete row"
302                                         onclick="customMetaTagsFunctions.removeFieldRow(this);return false"
303                                         tal:attributes="src string:${portal_url}/delete_icon.gif;" />
304                                </td>
305                                <td class="datagridwidget-hidden-data">
306                                    <input type="hidden"
307                                           tal:attributes="name string:${fieldName}.orderindex_:records;
308                                                           id string:orderindex__${fieldId};
309                                                           value repeat/row/number;" />
310                                </td>
311                            </tal:vars>
312                        </tr>
313                    </tal:row-loop>
314                    <tr id="datagridwidget-empty-row"
315                        class="datagridwidget-empty-row"
316                        tal:define="fieldId string:${fieldName}_new">
317                        <td class="datagridwidget-cell"
318                            tal:repeat="column columnIds">
319                            <span>
320                                <input type="text"
321                                       id="columnId_fieldName_new"
322                                       value=""
323                                       name="fieldName.columnId:records"
324                                       style="width: 100%;"
325                                       tal:attributes="id string:${column}_${fieldName}_new;
326                                                       name string:${fieldName}.${column}:records;" />
327                           </span>
328                        </td>
329                        <td  class="datagridwidget-manipulator">
330                            <img alt="Delete row"
331                                 onclick="customMetaTagsFunctions.removeFieldRow(this);return false"
332                                 tal:attributes="src string:${portal_url}/delete_icon.gif;" />
333                        </td>
334                        <td class="datagridwidget-hidden-data">
335                            <input type="hidden"
336                                   value="template_row_marker"
337                                   tal:attributes="name string:${fieldName}.orderindex_:records;
338                                                  id string:orderindex__${fieldId};" />
339                        </td>
340                    </tr>
341                </tbody>
342            </table>
343            <input type="button"
344                   class="datagridwidget-add-button"
345                   id="datagridwidget-add-button"
346                   value="Add new row"
347                   tal:attributes="onclick string:customMetaTagsFunctions.addRow('${fieldName}')" />
348          </div>
349          <div class="formControls"
350               tal:define="process_creation request/process_creation|nothing;"
351               i18n:domain="plone">
352            <input class="context"
353                   tabindex=""
354                   type="submit"
355                   name="form.button.Save"
356                   value="Save"
357                   i18n:attributes="value"
358                   tal:attributes="tabindex tabindex/next;" />
359            <input class="standalone"
360                   tabindex=""
361                   type="submit"
362                   name="form.button.Cancel"
363                   value="Cancel"
364                   i18n:attributes="value"
365                   tal:attributes="tabindex tabindex/next;" />
366          </div>
367        </fieldset>
368        <input type="hidden" name="form.submitted" value="1" />
369      </form>
370    </div>
371  </body>
372</html>
373
Note: See TracBrowser for help on using the repository browser.