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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/templates-add-modify.tt (-5 / +30 lines)
Lines 1-5 Link Here
1
[% USE Branches %]
1
[% USE Branches %]
2
[% USE AuthorisedValues %]
2
[% USE AuthorisedValues %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Tools &rsaquo; Patron clubs &rsaquo;
5
<title>Koha &rsaquo; Tools &rsaquo; Patron clubs &rsaquo;
5
    [% IF club_template %]
6
    [% IF club_template %]
Lines 124-130 Link Here
124
                        [% END %]
125
                        [% END %]
125
                    </div>
126
                    </div>
126
                    <fieldset class="action">
127
                    <fieldset class="action">
127
                        <a href="#" onclick="$('#new-field-template').clone().attr('id','').show().appendTo('#club-template-fields'); return false;">
128
                        <a href="#" class="add_club_field">
128
                            <i class="fa fa-plus"></i> Add new field
129
                            <i class="fa fa-plus"></i> Add new field
129
                        </a>
130
                        </a>
130
                    </fieldset>
131
                    </fieldset>
Lines 169-175 Link Here
169
                        [% END %]
170
                        [% END %]
170
                    </div>
171
                    </div>
171
                    <fieldset class="action">
172
                    <fieldset class="action">
172
                        <a href="#" onclick="$('#new-enrollment-field-template').clone().attr('id','').show().appendTo('#club-template-enrollment-fields'); return false;">
173
                        <a href="#" class="add_enrollment_field">
173
                            <i class="fa fa-plus"></i> Add new field
174
                            <i class="fa fa-plus"></i> Add new field
174
                        </a>
175
                        </a>
175
                    </fieldset>
176
                    </fieldset>
Lines 209-215 Link Here
209
            </select>
210
            </select>
210
        </li>
211
        </li>
211
    </ol>
212
    </ol>
212
    <fieldset class="action"><a href="#" onclick="$(this).parent().parent().remove(); return false;"><i class="fa fa-trash"></i> Delete field</a></fieldset>
213
    <fieldset class="action"><a href="#" class="delete_club_field"><i class="fa fa-trash"></i> Delete field</a></fieldset>
213
    <hr/>
214
    <hr/>
214
</div>
215
</div>
215
216
Lines 236-242 Link Here
236
            </select>
237
            </select>
237
        </li>
238
        </li>
238
    </ol>
239
    </ol>
239
    <fieldset class="action"><a href="#" onclick="$(this).parent().parent().remove(); return false;"><i class="fa fa-trash"></i> Delete field</a></fieldset>
240
    <fieldset class="action"><a href="#" class="delete_enrollment_field"><i class="fa fa-trash"></i> Delete field</a></fieldset>
240
</div>
241
</div>
241
242
243
244
[% MACRO jsinclude BLOCK %]
245
    <script>
246
        $("body").on("click", ".add_club_field", function(e){
247
            e.preventDefault();
248
            $("#new-field-template").clone().attr("id","").show().appendTo("#club-template-fields");
249
        });
250
251
        $("body").on("click", ".delete_club_field", function(e){
252
            e.preventDefault();
253
            $(this).parent().parent().remove();
254
        });
255
256
        $("body").on("click", ".delete_enrollment_field", function(e){
257
            e.preventDefault();
258
            $(this).parent().parent().remove();
259
        });
260
261
        $("body").on("click", ".add_enrollment_field", function(e){
262
            e.preventDefault();
263
            $('#new-enrollment-field-template').clone().attr('id','').show().appendTo('#club-template-enrollment-fields');
264
        });
265
    </script>
266
[% END %]
267
242
[% INCLUDE 'intranet-bottom.inc' %]
268
[% INCLUDE 'intranet-bottom.inc' %]
243
- 

Return to bug 24391