diff options
Diffstat (limited to 'ratatoeskr/templates')
8 files changed, 15 insertions, 27 deletions
diff --git a/ratatoeskr/templates/src/systemtemplates/image_list.html b/ratatoeskr/templates/src/systemtemplates/image_list.html index 7b40ddc..fe600aa 100644 --- a/ratatoeskr/templates/src/systemtemplates/image_list.html +++ b/ratatoeskr/templates/src/systemtemplates/image_list.html @@ -47,11 +47,7 @@ </tbody> </table> <div> - <input type="submit" name="delete" value="<ste:get_translation for='delete' />" /> - <select name="really_delete"> - <option value="no" selected="selected"><ste:get_translation for="no" /></option> - <option value="yes"><ste:get_translation for="yes" /></option> - </select> + <ste:default_delete_yesno /> </div> </form> </div> diff --git a/ratatoeskr/templates/src/systemtemplates/master.html b/ratatoeskr/templates/src/systemtemplates/master.html index 406bab6..bce92b1 100755 --- a/ratatoeskr/templates/src/systemtemplates/master.html +++ b/ratatoeskr/templates/src/systemtemplates/master.html @@ -19,6 +19,13 @@ </ste:then> </ste:if> </ste:mktag> +<ste:mktag name="default_delete_yesno"> + <input type="submit" name="?{$_tag_parameters[name]|$_tag_parameters[name]|delete}" value="<ste:get_translation for='delete' />" /> + <select name="really_delete"> + <option value="no" selected="selected"><ste:get_translation for="no" /></option> + <option value="yes"><ste:get_translation for="yes" /></option> + </select> +</ste:mktag> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> diff --git a/ratatoeskr/templates/src/systemtemplates/repos.html b/ratatoeskr/templates/src/systemtemplates/repos.html index f724ece..31de6a5 100644 --- a/ratatoeskr/templates/src/systemtemplates/repos.html +++ b/ratatoeskr/templates/src/systemtemplates/repos.html @@ -45,11 +45,7 @@ </tbody> </table> <div> - <input type="submit" name="delete_repos" value="<ste:get_translation for='delete' />" /> - <select name="really_delete"> - <option value="no" selected="selected"><ste:get_translation for="no" /></option> - <option value="yes"><ste:get_translation for="yes" /></option> - </select> + <ste:default_delete_yesno name="delete_repos" /> | <input type="submit" name="force_repo_refresh" value="<ste:get_translation for='force_repo_refresh' />" /> </div> diff --git a/ratatoeskr/templates/src/systemtemplates/sections.html b/ratatoeskr/templates/src/systemtemplates/sections.html index b67563d..7ac3241 100644 --- a/ratatoeskr/templates/src/systemtemplates/sections.html +++ b/ratatoeskr/templates/src/systemtemplates/sections.html @@ -56,10 +56,7 @@ </tbody> </table> <div> - <input type="submit" name="delete" value="<ste:get_translation for='delete' />" /> <select name="really_delete"> - <option value="no" selected="selected"><ste:get_translation for="no" /></option> - <option value="yes"><ste:get_translation for="yes" /></option> - </select> + <ste:default_delete_yesno /> | <input type="submit" name="make_default" value="<ste:get_translation for='make_default' />" /> | diff --git a/ratatoeskr/templates/src/systemtemplates/settings.html b/ratatoeskr/templates/src/systemtemplates/settings.html index b7fee48..31021fe 100644 --- a/ratatoeskr/templates/src/systemtemplates/settings.html +++ b/ratatoeskr/templates/src/systemtemplates/settings.html @@ -38,7 +38,7 @@ </tbody> </table> <div> - <input type="submit" name="delete" value="<ste:get_translation for='delete' />" /> <select name="really_delete"><option value="no" selected="selected"><ste:get_translation for="no" /></option><option value="yes"><ste:get_translation for="yes" /></option></select> + <ste:default_delete_yesno /> | <input type="submit" name="make_default" value="<ste:get_translation for='make_default' />" /> | diff --git a/ratatoeskr/templates/src/systemtemplates/styles.html b/ratatoeskr/templates/src/systemtemplates/styles.html index 71464fb..30c4277 100644 --- a/ratatoeskr/templates/src/systemtemplates/styles.html +++ b/ratatoeskr/templates/src/systemtemplates/styles.html @@ -27,11 +27,7 @@ </tbody> </table> <div> - <input type="submit" name="delete" value="<ste:get_translation for='delete' />" /> - <select name="really_delete"> - <option value="no" selected="selected"><ste:get_translation for="no" /></option> - <option value="yes"><ste:get_translation for="yes" /></option> - </select> + <ste:default_delete_yesno /> </div> </form> <hr /> diff --git a/ratatoeskr/templates/src/systemtemplates/templates.html b/ratatoeskr/templates/src/systemtemplates/templates.html index eca33cf..1a33e31 100644 --- a/ratatoeskr/templates/src/systemtemplates/templates.html +++ b/ratatoeskr/templates/src/systemtemplates/templates.html @@ -27,11 +27,7 @@ </tbody> </table> <div> - <input type="submit" name="delete" value="<ste:get_translation for='delete' />" /> - <select name="really_delete"> - <option value="no" selected="selected"><ste:get_translation for="no" /></option> - <option value="yes"><ste:get_translation for="yes" /></option> - </select> + <ste:default_delete_yesno /> </div> </form> </div> diff --git a/ratatoeskr/templates/src/systemtemplates/users.html b/ratatoeskr/templates/src/systemtemplates/users.html index d9542a2..255759a 100644 --- a/ratatoeskr/templates/src/systemtemplates/users.html +++ b/ratatoeskr/templates/src/systemtemplates/users.html @@ -39,7 +39,7 @@ </tbody> </table> <div> - <input type="submit" name="delete_groups" value="<ste:get_translation for='delete' />" /><select name="really_delete"><option value="no" selected="selected"><ste:get_translation for="no" /></option><option value="yes"><ste:get_translation for="yes" /></option></select> + <ste:default_delete_yesno name="delete_groups" /> </div> </form> @@ -72,7 +72,7 @@ </tbody> </table> <div> - <input type="submit" name="delete_users" value="<ste:get_translation for='delete' />" /><select name="really_delete"><option value="no" selected="selected"><ste:get_translation for="no" /></option><option value="yes"><ste:get_translation for="yes" /></option></select> + <ste:default_delete_yesno name="delete_users" /> </div> </form> </div> |