[% currentPage = 'editPrototype.html' %] [% currentPageTitle = 'Edit Prototype' %] [% execute = modwheel.getParam('execute') type = modwheel.getParam('type') name = modwheel.getParam('name') keywords = modwheel.getParam('keywords') description = modwheel.getParam('description') data = modwheel.getParam('data') confirm = modwheel.getParam('confirm') %] [% current = modwheel.getPrototypeForType(type) %] [% DEFAULT name = current.name %] [% DEFAULT keywords = current.keywords %] [% DEFAULT description = current.description %] [% DEFAULT data = current.data %] [% IF execute %] [% id = modwheel.createPrototype( type => type, name => name, keywords => keywords, description => description, data => data) %] [% UNLESS error %] [% IF id %] [% success = 'Prototype saved!' %] [% ELSE %] [% error = 'An error occured' %] [% END %] [% END %] [% END %] [% INCLUDE header.html %]

Edit prototype: [% type %]

Type name:

 

Edit the names of the fields for this type:

Name field:

Keywords field:

Description field:

Data field:

[% IF error %]

[% error %]

[% END %] [% IF success %]

[% success %]

[% END %] [% INCLUDE footer.html %]