2010-09-03 07:06:13 +02:00
|
|
|
<% require css(userforms/css/FieldEditor.css) %>
|
|
|
|
<% require javascript(sapphire/thirdparty/jquery-ui/jquery-ui-1.8rc3.custom.js) %>
|
|
|
|
<% require javascript(userforms/javascript/UserForm.js) %>
|
|
|
|
|
|
|
|
<div class="FieldEditor <% if canEdit %><% else %>readonly<% end_if %>" id="Fields">
|
2009-04-27 02:20:20 +02:00
|
|
|
|
2009-03-26 02:28:57 +01:00
|
|
|
<div class="FieldListHold">
|
2009-04-18 04:49:46 +02:00
|
|
|
<ul class="FieldList" id="Fields_fields">
|
|
|
|
<% control Fields %>
|
2009-06-08 06:42:17 +02:00
|
|
|
$EditSegment
|
2009-04-18 04:49:46 +02:00
|
|
|
<% end_control %>
|
|
|
|
</ul>
|
2009-03-26 02:28:57 +01:00
|
|
|
</div>
|
2009-04-21 07:10:39 +02:00
|
|
|
|
2010-09-03 07:06:13 +02:00
|
|
|
<% if canEdit %>
|
|
|
|
<div class="MenuHolder">
|
|
|
|
<h2><% _t('ADD', 'Add') %></h2>
|
|
|
|
|
|
|
|
<select name="AddUserFormField" id="AddUserFormField">
|
|
|
|
<option value=""><% _t('SELECTAFIELD', 'Select a Field') %></option>
|
|
|
|
|
|
|
|
<% control CreatableFields %>
|
|
|
|
<option value="$ClassName">$Title</option>
|
|
|
|
<% end_control %>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<input type="submit" class="action" value="<% _t('ADD', 'Add') %>" />
|
|
|
|
</div>
|
|
|
|
<% end_if %>
|
2009-03-25 03:06:28 +01:00
|
|
|
</div>
|