Lines 85-91
Link Here
|
85 |
var li_node = $("li.attributes:last"); |
85 |
var li_node = $("li.attributes:last"); |
86 |
var li_clone = $(li_node).clone(); |
86 |
var li_clone = $(li_node).clone(); |
87 |
if ( $(li_clone).find("a.delete").length == 0 ) { |
87 |
if ( $(li_clone).find("a.delete").length == 0 ) { |
88 |
$(li_clone).append('<a href="#" title="Delete" class="delete clear-field" onclick="del_attributes(this);return false;">Delete</a>'); |
88 |
$(li_clone).append('<a href="#" title="Delete" class="delete" onclick="del_attributes(this);return false;"><i class="fa fa-fw fa-trash"></i> Delete</a>'); |
89 |
} |
89 |
} |
90 |
$(li_clone).find('select[name="patron_attributes"]').change(function() { |
90 |
$(li_clone).find('select[name="patron_attributes"]').change(function() { |
91 |
updateAttrValues(this); |
91 |
updateAttrValues(this); |
Lines 338-344
Link Here
|
338 |
[% END %] |
338 |
[% END %] |
339 |
[% IF ( field.type == 'date' ) %] |
339 |
[% IF ( field.type == 'date' ) %] |
340 |
<input type="text" name="[% field.name %]" id="[% field.name %]" value="" size="10" maxlength="10" readonly="readonly" class="datepicker" /> |
340 |
<input type="text" name="[% field.name %]" id="[% field.name %]" value="" size="10" maxlength="10" readonly="readonly" class="datepicker" /> |
341 |
<a href="#" class="clear-field" onclick="clearDate('[% field.name %]');return false;">Clear</a> |
341 |
<a href="#" onclick="clearDate('[% field.name %]');return false;"><i class="fa fa-fw fa-trash"></i> Clear</a> |
342 |
[% END %] |
342 |
[% END %] |
343 |
[% IF field.mandatory %] |
343 |
[% IF field.mandatory %] |
344 |
<span class="required">Required fields cannot be cleared</span> |
344 |
<span class="required">Required fields cannot be cleared</span> |
Lines 356-362
Link Here
|
356 |
</label> |
356 |
</label> |
357 |
<input type="checkbox" title="check to delete this field" name="disable_input" value="attr0_value" /> |
357 |
<input type="checkbox" title="check to delete this field" name="disable_input" value="attr0_value" /> |
358 |
<span class="patron_attributes_value"></span> |
358 |
<span class="patron_attributes_value"></span> |
359 |
<a href="#" class="clone-field" title="Add an attribute" onclick="add_attributes(); return false;">New</a> |
359 |
<a href="#" title="Add an attribute" onclick="add_attributes(); return false;"><i class="fa fa-fw fa-plus"></i> New</a> |
360 |
<span class="information_category hint" style="width:25%;float:right;"></span> |
360 |
<span class="information_category hint" style="width:25%;float:right;"></span> |
361 |
</li> |
361 |
</li> |
362 |
[% END %] |
362 |
[% END %] |
363 |
- |
|
|