PATH:
home
/
centosnipponia
/
public_html
/
ticketing.nipponia.com
/
ticketing-old
/
include
/
staff
/
templates
<h3 class="drag-handle"><i class="icon-paste"></i> <?php echo __('Manage Forms'); ?></i></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <hr/><?php echo __( 'Sort the forms on this ticket by click and dragging on them. Use the box below the forms list to add new forms to the ticket.' ); ?> <br/> <br/> <form method="post" action="<?php echo $info['action']; ?>"> <div id="ticket-entries"> <?php $current_list = array(); foreach ($forms as $e) { ?> <div class="sortable row-item" data-id="<?php echo $e->get('id'); ?>"> <input type="hidden" name="forms[]" value="<?php echo $e->get('form_id'); ?>" /> <i class="icon-reorder"></i> <?php echo $e->getTitle(); $current_list[] = $e->get('form_id'); if ($e->getDynamicForm()->get('type') == 'G') { ?> <div class="button-group"> <div class="delete"><a href="#" onclick="$(this).closest('div.row-item').remove();$('#delete-warning').show();"><i class="icon-trash"></i></a></div> </div> <?php } ?> </div> <?php } ?> </div> <hr/> <div> <i class="icon-plus"></i> <select name="new-form" onchange="javascript: $(this).parent().find('button').trigger('click');"> <option selected="selected" disabled="disabled"><?php echo __('Add a form'); ?></option> <?php foreach (DynamicForm::objects() ->filter(array('type'=>'G')) ->exclude(array('flags__hasbit' => DynamicForm::FLAG_DELETED)) as $f) { if (in_array($f->get('id'), $current_list)) continue; ?><option value="<?php echo $f->get('id'); ?>"><?php echo $f->getTitle(); ?></option><?php } ?> </select> <button type="button" class="inline green button" onclick="javascript: var select = $(this).parent().find('select'), $sel = select.find('option:selected'), id = $sel.val(); if (!id || !parseInt(id)) return; if ($sel.prop('disabled')) return; $('#ticket-entries').append($('<div></div>').addClass('sortable row-item') .text(' '+$sel.text()) .data('id', id) .prepend($('<i>').addClass('icon-reorder')) .append($('<input/>').attr({name:'forms[]', type:'hidden'}).val(id)) .append($('<div></div>').addClass('button-group') .append($('<div></div>').addClass('delete') .append($('<a href=\'#\'>') .append($('<i>').addClass('icon-trash')) .click(function() { $sel.prop('disabled',false); $(this).closest('div.row-item').remove(); $('#delete-warning').show(); return false; }) ) )) ); $sel.prop('disabled',true);"><i class="icon-plus-sign"></i> <?php echo __('Add'); ?></button> </div> <div id="delete-warning" style="display:none"> <hr> <div id="msg_warning"><?php echo __( 'Clicking <strong>Save Changes</strong> will permanently delete data associated with the deleted forms' ); ?> </div> </div> <hr> <p class="full-width"> <span class="buttons pull-left"> <input type="reset" value="<?php echo __('Reset'); ?>"> <input type="button" name="cancel" class="<?php echo $user ? 'cancel' : 'close' ?>" value="<?php echo __('Cancel'); ?>"> </span> <span class="buttons pull-right"> <input type="submit" value="<?php echo __('Save Changes'); ?>"> </span> </p> <script type="text/javascript"> $(function() { $('#ticket-entries').sortable({containment:'parent',tolerance:'pointer'}); }); </script>
[+]
..
[-] 2fas.tmpl.php
[edit]
[-] advanced-search-criteria.tmpl.php
[edit]
[-] advanced-search-field.tmpl.php
[edit]
[-] advanced-search.tmpl.php
[edit]
[-] assign.tmpl.php
[edit]
[-] collaborators-preview.tmpl.php
[edit]
[-] collaborators.tmpl.php
[edit]
[-] confirm.tmpl.php
[edit]
[-] content-manage.tmpl.php
[edit]
[-] delete.tmpl.php
[edit]
[-] dynamic-field-config.tmpl.php
[edit]
[-] dynamic-form-fields-view.tmpl.php
[edit]
[-] dynamic-form-simple.tmpl.php
[edit]
[-] dynamic-form.tmpl.php
[edit]
[-] email-basicauth.tmpl.php
[edit]
[-] email-mailbox.tmpl.php
[edit]
[-] email-oauth2auth.tmpl.php
[edit]
[-] email-smtp.tmpl.php
[edit]
[-] export.tmpl.php
[edit]
[-] faq-print.tmpl.php
[edit]
[-] field-edit.tmpl.php
[edit]
[-] field-view.tmpl.php
[edit]
[-] form-manage.tmpl.php
[edit]
[-] inline-form.tmpl.php
[edit]
[-] list-import.tmpl.php
[edit]
[-] list-item-preview.tmpl.php
[edit]
[-] list-item-properties.tmpl.php
[edit]
[-] list-item-row.tmpl.php
[edit]
[-] list-items.tmpl.php
[edit]
[-] mark-as.tmpl.php
[edit]
[-] merge-preview.tmpl.php
[edit]
[-] merge-tickets.tmpl.php
[edit]
[-] navigation.tmpl.php
[edit]
[-] note.tmpl.php
[edit]
[-] notes.tmpl.php
[edit]
[-] org-delete.tmpl.php
[edit]
[-] org-lookup.tmpl.php
[edit]
[-] org-profile.tmpl.php
[edit]
[-] org.tmpl.php
[edit]
[-] plugin-instance-modal.tmpl.php
[edit]
[-] plugin-instance.tmpl.php
[edit]
[-] plugin-instances.tmpl.php
[edit]
[-] queue-column-add.tmpl.php
[edit]
[-] queue-column-condition-prop.tmpl.php
[edit]
[-] queue-column-condition.tmpl.php
[edit]
[-] queue-column-edit.tmpl.php
[edit]
[-] queue-column.tmpl.php
[edit]
[-] queue-columns.tmpl.php
[edit]
[-] queue-export.tmpl.php
[edit]
[-] queue-fields.tmpl.php
[edit]
[-] queue-navigation.tmpl.php
[edit]
[-] queue-preview.tmpl.php
[edit]
[-] queue-quickfilter.tmpl.php
[edit]
[-] queue-savedsearches-nav.tmpl.php
[edit]
[-] queue-sort.tmpl.php
[edit]
[-] queue-sorting-add.tmpl.php
[edit]
[-] queue-sorting-edit.tmpl.php
[edit]
[-] queue-sorting.tmpl.php
[edit]
[-] queue-subnavigation.tmpl.php
[edit]
[-] queue-tickets.tmpl.php
[edit]
[-] quick-add-role.tmpl.php
[edit]
[-] quick-add.tmpl.php
[edit]
[-] refer.tmpl.php
[edit]
[-] release.tmpl.php
[edit]
[-] reset-agent-permissions.tmpl.php
[edit]
[-] savedqueue-settings.tmpl.php
[edit]
[-] schedule-add.tmpl.php
[edit]
[-] schedule-diagnostic.tmpl.php
[edit]
[-] schedule-entries.tmpl.php
[edit]
[-] schedule-entry.tmpl.php
[edit]
[-] schedule-holidays.tmpl.php
[edit]
[-] sequence-manage.tmpl.php
[edit]
[-] set-password.tmpl.php
[edit]
[-] simple-form.tmpl.php
[edit]
[-] status-options.tmpl.php
[edit]
[-] sub-navigation.tmpl.php
[edit]
[-] task-edit.tmpl.php
[edit]
[-] task-preview.tmpl.php
[edit]
[-] task-print.tmpl.php
[edit]
[-] task-status.tmpl.php
[edit]
[-] task-view.tmpl.php
[edit]
[-] task.tmpl.php
[edit]
[-] tasks-actions.tmpl.php
[edit]
[-] tasks-queue-sort.tmpl.php
[edit]
[-] thread-email-headers.tmpl.php
[edit]
[-] thread-email-recipients.tmpl.php
[edit]
[-] thread-entries-preview.tmpl.php
[edit]
[-] thread-entries.tmpl.php
[edit]
[-] thread-entry-edit.tmpl.php
[edit]
[-] thread-entry-resend.tmpl.php
[edit]
[-] thread-entry-view.tmpl.php
[edit]
[-] thread-entry.tmpl.php
[edit]
[-] thread-event.tmpl.php
[edit]
[-] ticket-preview.tmpl.php
[edit]
[-] ticket-print.tmpl.php
[edit]
[-] ticket-status.tmpl.php
[edit]
[-] tickets-actions.tmpl.php
[edit]
[-] tickets.tmpl.php
[edit]
[-] timezone.tmpl.php
[edit]
[-] transfer.tmpl.php
[edit]
[-] user-account.tmpl.php
[edit]
[-] user-delete.tmpl.php
[edit]
[-] user-import.tmpl.php
[edit]
[-] user-lookup.tmpl.php
[edit]
[-] user.tmpl.php
[edit]
[-] user-register.tmpl.php
[edit]
[-] users.tmpl.php
[edit]