Commit 3e09f8a4 authored by Jean Pommier's avatar Jean Pommier
Browse files

[template-editor] Don't disable the save button

Didn't manage to re-enable it
parent a6ecea04
...@@ -77,9 +77,9 @@ public class AbstractTemplateFormPanel extends Panel { ...@@ -77,9 +77,9 @@ public class AbstractTemplateFormPanel extends Panel {
} }
}; };
save_btn.setEnabled(true);
save_btn.setOutputMarkupId(true); save_btn.setOutputMarkupId(true);
add(save_btn); add(save_btn);
save_btn.setEnabled(true);
reload_btn = new AjaxLink("reload_btn", Model.of("Reload")) { reload_btn = new AjaxLink("reload_btn", Model.of("Reload")) {
@Override @Override
...@@ -106,7 +106,6 @@ public class AbstractTemplateFormPanel extends Panel { ...@@ -106,7 +106,6 @@ public class AbstractTemplateFormPanel extends Panel {
srcpath_label.add(AttributeModifier.replace("class", "")); srcpath_label.add(AttributeModifier.replace("class", ""));
destpath_label.add(AttributeModifier.replace("class", "active")); destpath_label.add(AttributeModifier.replace("class", "active"));
destpath_label_dirty.add(AttributeModifier.replace("class", "active")); destpath_label_dirty.add(AttributeModifier.replace("class", "active"));
// TODO rewrite this
target.add(srcpath_label); target.add(srcpath_label);
target.add(destpath_label); target.add(destpath_label);
target.add(destpath_label_dirty); target.add(destpath_label_dirty);
...@@ -118,7 +117,6 @@ public class AbstractTemplateFormPanel extends Panel { ...@@ -118,7 +117,6 @@ public class AbstractTemplateFormPanel extends Panel {
destpath_label.add(AttributeModifier.replace("class", "")); destpath_label.add(AttributeModifier.replace("class", ""));
templateModel.getObject().setDirty(""); templateModel.getObject().setDirty("");
destpath_label_dirty.add(AttributeModifier.replace("class", "")); destpath_label_dirty.add(AttributeModifier.replace("class", ""));
// TODO rewrite this
target.add(tpl); target.add(tpl);
target.add(srcpath_label); target.add(srcpath_label);
target.add(destpath_label); target.add(destpath_label);
...@@ -129,4 +127,5 @@ public class AbstractTemplateFormPanel extends Panel { ...@@ -129,4 +127,5 @@ public class AbstractTemplateFormPanel extends Panel {
this.templateEditorPage = page; this.templateEditorPage = page;
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment