From 1d3e17cdfbf065f55d01fdea44190619d4517065 Mon Sep 17 00:00:00 2001 From: Jonathan Druart <jonathan.druart@biblibre.com> Date: Tue, 8 Oct 2013 15:44:21 +0200 Subject: [PATCH] Bug 8015: The template name is a required field Test plan: Try to add a template with an empty string as name. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- .../modules/tools/marc_modification_templates.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt index 4ad56ac..1003271 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt @@ -481,8 +481,8 @@ function setSelectByValue( selectId, value ) { <fieldset> <legend>Create a new template</legend> - <label for="template_name">Name: </label> - <input name="template_name" id="template_name" type="text" size="30" /> + <label for="template_name" class="required">Name: </label> + <input name="template_name" id="template_name" type="text" size="30" required="required" /> <input type="hidden" name="op" value="create_template" /> <input type="submit" value="Create template" /> -- 1.7.9.5