mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
93d7da417a
- Use the correct path to the icons where ever they might be - Print out added HTML attributes for FieldEditor to support data-add-url set via PHP
29 lines
801 B
Scheme
Executable File
29 lines
801 B
Scheme
Executable File
<% require css(userforms/css/FieldEditor.css) %>
|
|
<% require javascript(userforms/javascript/UserForm.js) %>
|
|
|
|
<div class="FieldEditor <% if canEdit %><% else %>readonly<% end_if %>" id="Fields" $AttributesHTML>
|
|
|
|
<div class="FieldListHold">
|
|
<ul class="FieldList" id="Fields_fields">
|
|
<% control Fields %>
|
|
$EditSegment
|
|
<% end_control %>
|
|
</ul>
|
|
</div>
|
|
|
|
<% 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 %>
|
|
</div> |