NIHVIVO-1381 Reapplied some previous changes lost when Brian moved dateTime files to vitro (change template file name to start with lowercase and added <#list> directives). Also moved dateTimeWithPrecision.ftl out of widgets directory since it's not a true widget as currently implemented.
This commit is contained in:
parent
e1e2959a8a
commit
c34c2ed627
3 changed files with 125 additions and 278 deletions
|
@ -71,14 +71,14 @@ public class DateTimeWithPrecision extends BaseEditElement {
|
|||
}
|
||||
|
||||
private static final Log log = LogFactory.getLog(DateTimeWithPrecision.class);
|
||||
protected String TEMPATE_NAME = "DateTimeWithPrecision.ftl";
|
||||
protected String TEMPLATE_NAME = "dateTimeWithPrecision.ftl";
|
||||
|
||||
@Override
|
||||
public String draw(String fieldName, EditConfiguration editConfig,
|
||||
EditSubmission editSub, Configuration fmConfig) {
|
||||
Map map = getMapForTemplate( editConfig, editSub);
|
||||
map.putAll( FreemarkerHttpServlet.getDirectives());
|
||||
return merge( fmConfig, TEMPATE_NAME, map);
|
||||
return merge( fmConfig, TEMPLATE_NAME, map);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue