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