Updates for n3 refactoring
This commit is contained in:
parent
17a60cb81c
commit
c4bbdd4154
16 changed files with 1896 additions and 522 deletions
|
@ -0,0 +1,24 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#assign formTitle>
|
||||
${editConfiguration.propertyPublicDomainTitle} entry for ${editConfiguration.subjectName}
|
||||
</#assign>
|
||||
<#if editConfiguration.objectUri?has_content>
|
||||
<#assign formTitle>Edit ${formTitle} </#assign>
|
||||
<#else>
|
||||
<#assign formTitle>Create ${formTitle} </#assign>
|
||||
</#if>
|
||||
|
||||
<h2>${formTitle}</h2>
|
||||
|
||||
<form class="editForm" action = "${submitUrl}">
|
||||
<input type="hidden" name="editKey" id="editKey" value="${editKey}" />
|
||||
<input type="text" name="name" id="name" label="name (required" size="30"/>
|
||||
<br/>
|
||||
<div style="margin-top: 0.2em">
|
||||
<input type="submit" id="submit" value="${editConfiguration.submitLabel}" cancel="true"/>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
|
@ -2,26 +2,27 @@
|
|||
|
||||
<h2>${editConfiguration.formTitle}</h2>
|
||||
|
||||
<#assign predicateProperty = "${editConfiguration.predicateProperty}" />
|
||||
<#assign literalValues = "${editConfiguration.dataLiteralValuesAsString}" />
|
||||
|
||||
<form class="editForm" action = "${submitUrl}" method="post">
|
||||
<input type="hidden" name="editKey" id="editKey" value="${editKey}" />
|
||||
<#if editConfiguration.propertyPublicDescription?has_content>
|
||||
<label for="${editConfiguration.dataLiteral}"><p class="propEntryHelpText">${predicateProperty.publicDescription}</p></label>
|
||||
</#if>
|
||||
<p>${editConfiguration.propertyPublicDescription}</p>
|
||||
|
||||
<input rows="2" type="textarea"
|
||||
id="${editConfiguration.dataLiteral}" name="${editConfiguration.dataLiteral}"
|
||||
value="${literalValues}"/>
|
||||
|
||||
<div style="margin-top: 0.2em">
|
||||
<input type="submit" id="submit" value="${editConfiguration.submitLabel}" cancel="true"/>
|
||||
</div>
|
||||
</#if>
|
||||
</form>
|
||||
|
||||
<#--ToDo: Include delete portion-->
|
||||
|
||||
<form class="editForm" action = "${submitUrl}" method="post">
|
||||
<input type="hidden" name="editKey" id="editKey" value="${editKey}" />
|
||||
<#if editConfiguration.dataPredicatePublicDescription?has_content>
|
||||
<label for="${editConfiguration.dataLiteral}"><p class="propEntryHelpText">${editConfiguration.dataPredicatePublicDescription}</p></label>
|
||||
</#if>
|
||||
|
||||
<input rows="2" type="textarea"
|
||||
id="${editConfiguration.dataLiteral}" name="${editConfiguration.dataLiteral}"
|
||||
value="${literalValues}"/>
|
||||
|
||||
<div style="margin-top: 0.2em">
|
||||
<input type="submit" id="submit" value="${editConfiguration.submitLabel}" cancel="true"/>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<#if editConfiguration.includeDeletionForm = true>
|
||||
<#include "defaultDeletePropertyForm.ftl">
|
||||
</#if>
|
||||
|
||||
<#include "defaultFormScripts.ftl">
|
||||
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
<form class="deleteForm" action="${editConfiguration.mainEditUrl}" method="get">
|
||||
<label for="delete"><h3 class="delete-entry">Delete this entry?</h3></label>
|
||||
<input type="hidden" name="subjectUri" value="${editConfiguration.subjectUri}"/>
|
||||
<input type="hidden" name="predicateUri" value="${editConfiguration.predicateUri}"/>
|
||||
<input type="hidden" name="cmd" value="delete"/>
|
||||
|
||||
<#if editConfiguration.dataProperty = true>
|
||||
<input type="hidden" name="datapropKey" value="${editConfiguration.datapropKey}" />
|
||||
<input type="submit" id="delete" value="Delete">
|
||||
<a class="cancel">Cancel</a>
|
||||
</#if>
|
||||
|
||||
<#--The original jsp included vinput tag with cancel=empty string for case where both select from existing
|
||||
and offer create new option are true below
|
||||
so leaving as Cancel for now but unclear as to what the result would have been-->
|
||||
<#if editConfiguration.objectProperty = true>
|
||||
<input type="hidden" name="objectUri" value="${editConfiguration.objectUri}"/>
|
||||
|
||||
<#if editConfiguration.propertySelectFromExisting = false
|
||||
&& editConfiguration.propertyOfferCreateNewOption = false>
|
||||
<input type="submit" id="delete" value="Delete">
|
||||
<a class="cancel">Cancel</a>
|
||||
</#if>
|
||||
|
||||
<#if editConfiguration.propertySelectFromExisting = true
|
||||
&& editConfiguration.propertyOfferCreateNewOption = true>
|
||||
<input type="submit" id="delete" value="Delete">
|
||||
<a class="cancel">Cancel</a>
|
||||
</#if>
|
||||
|
||||
</#if>
|
||||
</form>
|
|
@ -0,0 +1,69 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Template to setup and call scripts for form editing -->
|
||||
|
||||
<#-- Like original jsp, allow the passing of variables -->
|
||||
<#assign defaultHeight="200" />
|
||||
<#assign defaultWidth="75%" />
|
||||
<#assign defaultButton="bold,italic,underline,separator,link,bullist,numlist,separator,sub,sup,charmap,separator,undo,redo,separator,code"/>
|
||||
<#assign defaultToolbarLocation = "top" />
|
||||
<#if !height?has_content>
|
||||
<#assign height=defaultHeight/>
|
||||
</#if>
|
||||
|
||||
<#if !width?has_content>
|
||||
<#assign width=defaultWidth />
|
||||
</#if>
|
||||
|
||||
<#if !buttons?has_content>
|
||||
<#assign buttons = defaultButton />
|
||||
</#if>
|
||||
|
||||
<#if !toolbarLocation?has_content>
|
||||
<#assign toolbarLocation = defaultToolbarLocation />
|
||||
</#if>
|
||||
|
||||
<#-- Set up data -->
|
||||
<script type="text/javascript">
|
||||
var tinyMCEData = {
|
||||
theme : "advanced",
|
||||
mode : "textareas",
|
||||
theme_advanced_buttons1 : "${buttons}",
|
||||
theme_advanced_buttons2 : "",
|
||||
theme_advanced_buttons3 : "",
|
||||
theme_advanced_toolbar_location : "{toolbarLocation}",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_statusbar_location : "bottom",
|
||||
theme_advanced_path : false,
|
||||
theme_advanced_resizing : true,
|
||||
height : "${height}",
|
||||
width : "${width}",
|
||||
valid_elements : "a[href|name|title],br,p,i,em,cite,strong/b,u,sub,sup,ul,ol,li",
|
||||
fix_list_elements : true,
|
||||
fix_nesting : true,
|
||||
cleanup_on_startup : true,
|
||||
gecko_spellcheck : true,
|
||||
forced_root_block: false
|
||||
//forced_root_block : 'p',
|
||||
// plugins: "paste",
|
||||
// theme_advanced_buttons1_add : "pastetext,pasteword,selectall",
|
||||
// paste_create_paragraphs: false,
|
||||
// paste_create_linebreaks: false,
|
||||
// paste_use_dialog : true,
|
||||
// paste_auto_cleanup_on_paste: true,
|
||||
// paste_convert_headers_to_strong : true
|
||||
// save_callback : "customSave",
|
||||
// content_css : "example_advanced.css",
|
||||
// extended_valid_elements : "a[href|target|name]",
|
||||
// plugins : "table",
|
||||
// theme_advanced_buttons3_add_before : "tablecontrols,separator",
|
||||
// invalid_elements : "li",
|
||||
// theme_advanced_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1", // Theme specific setting CSS classes
|
||||
};
|
||||
</script>
|
||||
|
||||
<#-- Script to enable browsing individuals within a class -->
|
||||
<#--'<script type="text/javascript" src="${urls.base}/js/jquery_plugins/jquery.scrollTo-min.js"></script>',-->
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/tiny_mce/tiny_mce.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/tiny_mce/jquery-tinymce.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/edit/initTinyMce.js"></script>')}
|
|
@ -0,0 +1,22 @@
|
|||
<#if editConfiguration.rangeOptionsExist = true >
|
||||
<p style="margin-top: 2.2em">If you don't find the appropriate entry on the selection list above:</p>
|
||||
<#else>
|
||||
<p style="margin-top: 5em">Please create a new entry.</p>
|
||||
</#if>
|
||||
|
||||
<#assign typesList = editConfiguration.offerTypesCreateNew />
|
||||
<form class="editForm" action="{editConfiguration.mainEditUrl}">
|
||||
<input type="hidden" value="${editConfiguration.subjectUri}" name="subjectUri"/>
|
||||
<input type="hidden" value="${editConfiguration.predicateUri}" name="predicateUri"/>
|
||||
<input type="hidden" value="${editConfiguration.objectUri}" name="objectUri"/>
|
||||
<input type="hidden" value="create" name="cmd"/>
|
||||
<select id="typeOfNew" name="typeOfNew">
|
||||
<#assign typeKeys = typesList?keys />
|
||||
<#list typeKeys as typeKey>
|
||||
<option value="${typeKey}"> ${typesList[typeKey]} </option>
|
||||
</#list>
|
||||
</select>
|
||||
|
||||
<input type="submit" name="submit" id="submit" value="Add a new item of this type" />
|
||||
<a class="cancel">Cancel</a>
|
||||
</form>
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
<h2>${editConfiguration.formTitle}</h2>
|
||||
|
||||
<#assign predicateProperty = "${editConfiguration.predicateProperty}" />
|
||||
|
||||
<#if editConfiguration.propertySelectFromExisting = true>
|
||||
<#if editConfiguration.rangeOptionsExist = true >
|
||||
<#assign rangeOptionKeys = editConfiguration.rangeOptions?keys />
|
||||
|
@ -30,3 +28,18 @@
|
|||
<p> There are no entries in the system from which to select. </p>
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
<#if editConfiguration.propertyOfferCreateNewOption = true>
|
||||
<#include "defaultOfferCreateNewOptionForm.ftl">
|
||||
|
||||
</#if>
|
||||
|
||||
<#if editConfiguration.propertySelectFromExisting = false && editConfiguration.propertyOfferCreateNewOption = false>
|
||||
<p>This property is currently configured to prohibit editing. </p>
|
||||
</#if>
|
||||
|
||||
|
||||
<#if editConfiguration.includeDeletionForm = true>
|
||||
<#include "defaultDeletePropertyForm.ftl">
|
||||
</#if>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue