View | Details | Raw Unified | Return to bug 33028
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-9 / +4 lines)
Lines 462-468 Link Here
462
                                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
462
                                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
463
                                </td>
463
                                </td>
464
                                <td><input type="text" name="decreaseloanholds" id="decreaseloanholds" size="2" /></td>
464
                                <td><input type="text" name="decreaseloanholds" id="decreaseloanholds" size="2" /></td>
465
                                <td><input type="text" name="fine" id="fine" size="4" inputmode="decimal" pattern="^\d+(\.\d{2})?$" /></td>
465
                                <td><input type="text" name="fine" id="fine" size="4"/></td>
466
                                <td><input type="text" name="chargeperiod" id="chargeperiod" size="2" /></td>
466
                                <td><input type="text" name="chargeperiod" id="chargeperiod" size="2" /></td>
467
                                <td>
467
                                <td>
468
                                    <select name="chargeperiod_charge_at" id="chargeperiod_charge_at">
468
                                    <select name="chargeperiod_charge_at" id="chargeperiod_charge_at">
Lines 471-477 Link Here
471
                                    </select>
471
                                    </select>
472
                                </td>
472
                                </td>
473
                                <td><input type="text" name="firstremind" id="firstremind" size="2" /> </td>
473
                                <td><input type="text" name="firstremind" id="firstremind" size="2" /> </td>
474
                                <td><input type="text" name="overduefinescap" id="overduefinescap" size="6" inputmode="decimal" pattern="^\d+(\.\d{2})?$" /> </td>
474
                                <td><input type="text" name="overduefinescap" id="overduefinescap" size="6"/> </td>
475
                                <td><input type="checkbox" name="cap_fine_to_replacement_price" id="cap_fine_to_replacement_price" /></td>
475
                                <td><input type="checkbox" name="cap_fine_to_replacement_price" id="cap_fine_to_replacement_price" /></td>
476
                                <td><input type="text" name="finedays" id="fined" size="3" /> </td>
476
                                <td><input type="text" name="finedays" id="fined" size="3" /> </td>
477
                                <td><input type="text" name="maxsuspensiondays" id="maxsuspensiondays" size="3" /> </td>
477
                                <td><input type="text" name="maxsuspensiondays" id="maxsuspensiondays" size="3" /> </td>
Lines 531-537 Link Here
531
                                        </select>
531
                                        </select>
532
                                    </td>
532
                                    </td>
533
                                    <td><input type="text" name="recall_due_date_interval" id="recall_due_date_interval" size="3"></td>
533
                                    <td><input type="text" name="recall_due_date_interval" id="recall_due_date_interval" size="3"></td>
534
                                    <td><input type="text" name="recall_overdue_fine" id="recall_overdue_fine" size="6" inputmode="decimal" pattern="^\d+(\.\d{2})?$"></td>
534
                                    <td><input type="text" name="recall_overdue_fine" id="recall_overdue_fine" size="6"></td>
535
                                    <td><input type="text" name="recall_shelf_time" id="recall_shelf_time" size="3"></td>
535
                                    <td><input type="text" name="recall_shelf_time" id="recall_shelf_time" size="3"></td>
536
                                [% END %]
536
                                [% END %]
537
                                <td class="actions">
537
                                <td class="actions">
Lines 1050-1056 Link Here
1050
                                    [% END %]
1050
                                    [% END %]
1051
                                    </select>
1051
                                    </select>
1052
                                </td>
1052
                                </td>
1053
                                <td><input name="article_request_fee" size="5" type="text" inputmode="decimal" pattern="^\d+(\.\d{2})?$" /></td>
1053
                                <td><input name="article_request_fee" size="5" type="text"/></td>
1054
                                <td class="actions"><button type="submit" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Add</button></td>
1054
                                <td class="actions"><button type="submit" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Add</button></td>
1055
                            </tr>
1055
                            </tr>
1056
                        </table>
1056
                        </table>
Lines 1487-1496 Link Here
1487
                        $('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') );
1487
                        $('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') );
1488
                    } else {
1488
                    } else {
1489
                        $(current_column).find("input[type='text']").val(itm);
1489
                        $(current_column).find("input[type='text']").val(itm);
1490
                        // unformat prices
1491
                        $(current_column).find("input[inputmode='decimal']").each(function() {
1492
                          $(this).val(itm.unformat_price());
1493
                        });
1494
                        // select the corresponding option
1490
                        // select the corresponding option
1495
                        $(current_column).find("select option").each(function(){
1491
                        $(current_column).find("select option").each(function(){
1496
                            opt = $(this).text().toLowerCase();
1492
                            opt = $(this).text().toLowerCase();
1497
- 

Return to bug 33028