348 [self.tr("List Variable:"), self.tr("Common Attribute:"), |
348 [self.tr("List Variable:"), self.tr("Common Attribute:"), |
349 self.tr("Name of resulting list:")], |
349 self.tr("Name of resulting list:")], |
350 ["cities", "country", "country_list"]) |
350 ["cities", "country", "country_list"]) |
351 if ok: |
351 if ok: |
352 templateText = '{{% regroup {0} by {1} as {2} %}}'.format( |
352 templateText = '{{% regroup {0} by {1} as {2} %}}'.format( |
353 data[0], data[1], data[2]) |
353 data[0], data[1], data[2]) |
354 elif tag == "spaceless": |
354 elif tag == "spaceless": |
355 templateText = "{{% spaceless %}} {0} {{% endspaceless %}}".format( |
355 templateText = "{{% spaceless %}} {0} {{% endspaceless %}}".format( |
356 selectedText) |
356 selectedText) |
357 replace = True |
357 replace = True |
358 elif tag == "ssi": |
358 elif tag == "ssi": |
359 data, ok = DjangoTagInputDialog.getText( |
359 data, ok = DjangoTagInputDialog.getText( |
360 None, |
360 None, |
361 self.tr("SSI"), |
361 self.tr("SSI"), |
408 data[1] = ' ' + data[1] |
408 data[1] = ' ' + data[1] |
409 templateText = '{{% url "{0}"{1} as {2} %}}'.format( |
409 templateText = '{{% url "{0}"{1} as {2} %}}'.format( |
410 data[0], data[1], data[2]) |
410 data[0], data[1], data[2]) |
411 elif tag == "verbatim": |
411 elif tag == "verbatim": |
412 templateText = "{{% verbatim %}} {0} {{% endverbatim %}}".format( |
412 templateText = "{{% verbatim %}} {0} {{% endverbatim %}}".format( |
413 selectedText) |
413 selectedText) |
414 replace = True |
414 replace = True |
415 elif tag == "widthratio": |
415 elif tag == "widthratio": |
416 data, ok = DjangoTagInputDialog.getText( |
416 data, ok = DjangoTagInputDialog.getText( |
417 None, |
417 None, |
418 self.tr("Width Ratio"), |
418 self.tr("Width Ratio"), |