Thellmann / callimachus

Automatically exported from code.google.com/p/callimachus
Other
0 stars 0 forks source link

Input field added outside form in view editor #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The mechanism for adding input fields to forms has broken between release 0.11 
and 0.12.
I'm using Safari/Mac OS X but it looks like the problem is common to all 
platforms.

Editing a new 'create' template. Place the cursor after the 'Label' field, 
pressing return adds a new paragraph. With the cursor in the paragraph select 
the input field button and complete the dialog box. In 0.11 the input field is 
added to the paragraph after 'Label' where the cursor was. In 0.12 it's added 
at the end, outside the 'form' (as can be seen below).

<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="/layout/template.xsl"?>
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<head>
    <title>New Resource</title>
</head>
<body>
    <h1>New Resource</h1>
    <form enctype="application/sparql-update">
        <div class="vbox">
            <div class="input field">
                <label for="label">Label</label>
                <input id="label" value="{rdfs:label}" class="auto-expand" required="required" autofocus="autofocus" />
            </div><p></p>
            <div class="text field">
                <label for="comment">Comment</label>
                <textarea id="comment" class="auto-expand">{rdfs:comment}</textarea>
            </div>
        </div>
        <button type="submit">Create</button>
    </form>

            <div class="input field">
                <label for="title">Title</label>
                <input id="title" value="{books:title}" />
            </div>
        </body>
</html>

Original issue reported on code.google.com by steven.a...@gmail.com on 30 Aug 2011 at 5:27

GoogleCodeExporter commented 9 years ago
Obsolete in 0.13

Original comment by ja...@3roundstones.com on 31 Oct 2011 at 2:07