2010-09-03 05:06:13 +00:00
|
|
|
<% require css(userforms/css/FieldEditor.css) %>
|
|
|
|
<% require javascript(userforms/javascript/UserForm.js) %>
|
|
|
|
|
2012-05-07 17:06:37 +12:00
|
|
|
<div class="FieldEditor <% if canEdit %><% else %>readonly<% end_if %>" id="Fields" $AttributesHTML>
|
2009-04-27 00:20:20 +00:00
|
|
|
|
2009-03-26 01:28:57 +00:00
|
|
|
<div class="FieldListHold">
|
2009-04-18 02:49:46 +00:00
|
|
|
<ul class="FieldList" id="Fields_fields">
|
2013-03-21 10:51:35 +01:00
|
|
|
<% loop Fields %>
|
2009-06-08 04:42:17 +00:00
|
|
|
$EditSegment
|
2013-03-21 10:51:35 +01:00
|
|
|
<% end_loop %>
|
2009-04-18 02:49:46 +00:00
|
|
|
</ul>
|
2009-03-26 01:28:57 +00:00
|
|
|
</div>
|
2012-05-10 17:52:49 +12:00
|
|
|
|
2010-09-03 05:06:13 +00:00
|
|
|
<% if canEdit %>
|
2013-03-21 23:32:05 +13:00
|
|
|
<div class="MenuHolder no-change-track">
|
2013-11-06 14:23:47 +01:00
|
|
|
<h2><% _t('FieldEditor.ADD', 'Add') %></h2>
|
2012-05-10 17:52:49 +12:00
|
|
|
|
|
|
|
<select name="AddUserFormField" id="AddUserFormField">
|
2013-11-06 14:23:47 +01:00
|
|
|
<option value=""><% _t('FieldEditor.SELECTAFIELD', 'Select a Field') %></option>
|
2010-09-03 05:06:13 +00:00
|
|
|
|
2013-03-21 10:51:35 +01:00
|
|
|
<% loop CreatableFields %>
|
2012-05-10 17:52:49 +12:00
|
|
|
<option value="$ClassName">$Title</option>
|
2013-03-21 10:51:35 +01:00
|
|
|
<% end_loop %>
|
2012-05-10 17:52:49 +12:00
|
|
|
</select>
|
2010-09-03 05:06:13 +00:00
|
|
|
|
2013-09-04 23:34:21 +12:00
|
|
|
<input type="hidden" name="SecurityID" value="$SecurityID" />
|
2013-11-06 14:23:47 +01:00
|
|
|
<input type="submit" class="action" value="<% _t('FieldEditor.ADD', 'Add') %>" />
|
2012-05-10 17:52:49 +12:00
|
|
|
</div>
|
2010-09-03 05:06:13 +00:00
|
|
|
<% end_if %>
|
2012-05-10 17:52:49 +12:00
|
|
|
|
2013-03-21 10:51:35 +01:00
|
|
|
</div>
|