|
Lines 149-154
Link Here
|
| 149 |
cannot be given to a different record.</span> |
149 |
cannot be given to a different record.</span> |
| 150 |
</li> |
150 |
</li> |
| 151 |
|
151 |
|
|
|
152 |
<li> |
| 153 |
<label for="is_date">Is a date: </label> |
| 154 |
[% IF attribute_type.is_date %] |
| 155 |
<input type="checkbox" id="is_date" name="is_date" checked="checked" /> |
| 156 |
[% ELSE %] |
| 157 |
<input type="checkbox" id="is_date" name="is_date" /> |
| 158 |
[% END %] |
| 159 |
<span class="hint">If checked, attribute will be a date. Date attributes cannot be repeatable or linked to an authorised value category.</span> |
| 160 |
</li> |
| 161 |
|
| 152 |
<li><label for="opac_display">Display in OPAC: </label> |
162 |
<li><label for="opac_display">Display in OPAC: </label> |
| 153 |
[% IF attribute_type AND attribute_type.opac_display %] |
163 |
[% IF attribute_type AND attribute_type.opac_display %] |
| 154 |
<input type="checkbox" id="opac_display" name="opac_display" checked="checked" /> |
164 |
<input type="checkbox" id="opac_display" name="opac_display" checked="checked" /> |
|
Lines 431-436
Link Here
|
| 431 |
} |
441 |
} |
| 432 |
} ).change(); |
442 |
} ).change(); |
| 433 |
|
443 |
|
|
|
444 |
$("#is_date").change( function() { |
| 445 |
if ( this.checked ) { |
| 446 |
$("#repeatable, #authorised_value_category").attr('disabled', true).parent().attr('aria-disabled', 'true'); |
| 447 |
} else { |
| 448 |
$("#repeatable, #authorised_value_category").removeAttr('disabled').parent().removeAttr('aria-disabled'); |
| 449 |
} |
| 450 |
} ).change(); |
| 451 |
|
| 452 |
$("#repeatable").change( function() { |
| 453 |
if ( this.checked ) { |
| 454 |
$("#is_date").attr('disabled', true).parent().attr('aria-disabled', 'true'); |
| 455 |
} else { |
| 456 |
$("#is_date").removeAttr('disabled').parent().removeAttr('aria-disabled'); |
| 457 |
} |
| 458 |
} ).change(); |
| 459 |
|
| 460 |
$("#authorised_value_category").change( function() { |
| 461 |
if ( $(this).val() != "" ) { |
| 462 |
$("#is_date").attr('disabled', true).parent().attr('aria-disabled', 'true'); |
| 463 |
} else { |
| 464 |
$("#is_date").removeAttr('disabled').parent().removeAttr('aria-disabled'); |
| 465 |
} |
| 466 |
} ).change(); |
| 467 |
|
| 434 |
$(".patron_attributes_types").each(function(){ |
468 |
$(".patron_attributes_types").each(function(){ |
| 435 |
var tableid = $(this).attr("id"); |
469 |
var tableid = $(this).attr("id"); |
| 436 |
KohaTable( tableid, { |
470 |
KohaTable( tableid, { |
| 437 |
- |
|
|