custom_field_list.twig (4836B)
1 {{ header }}{{ column_left }} 2 <div id="content"> 3 <div class="page-header"> 4 <div class="container-fluid"> 5 <div class="pull-right"><a href="{{ add }}" data-toggle="tooltip" title="{{ button_add }}" class="btn btn-primary"><i class="fa fa-plus"></i></a> 6 <button type="button" data-toggle="tooltip" title="{{ button_delete }}" class="btn btn-danger" onclick="confirm('{{ text_confirm }}') ? $('#form-custom-field').submit() : false;"><i class="fa fa-trash-o"></i></button> 7 </div> 8 <h1>{{ heading_title }}</h1> 9 <ul class="breadcrumb"> 10 {% for breadcrumb in breadcrumbs %} 11 <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li> 12 {% endfor %} 13 </ul> 14 </div> 15 </div> 16 <div class="container-fluid"> 17 {% if error_warning %} 18 <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }} 19 <button type="button" class="close" data-dismiss="alert">×</button> 20 </div> 21 {% endif %} 22 {% if success %} 23 <div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> {{ success }} 24 <button type="button" class="close" data-dismiss="alert">×</button> 25 </div> 26 {% endif %} 27 <div class="panel panel-default"> 28 <div class="panel-heading"> 29 <h3 class="panel-title"><i class="fa fa-list"></i> {{ text_list }}</h3> 30 </div> 31 <div class="panel-body"> 32 <form action="{{ delete }}" method="post" enctype="multipart/form-data" id="form-custom-field"> 33 <div class="table-responsive"> 34 <table class="table table-bordered table-hover"> 35 <thead> 36 <tr> 37 <td style="width: 1px;" class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);" /></td> 38 <td class="text-left">{% if sort == 'cfd.name' %} 39 <a href="{{ sort_name }}" class="{{ order|lower }}">{{ column_name }}</a> 40 {% else %} 41 <a href="{{ sort_name }}">{{ column_name }}</a> 42 {% endif %}</td> 43 <td class="text-left">{% if sort == 'cf.location' %} 44 <a href="{{ sort_location }}" class="{{ order|lower }}">{{ column_location }}</a> 45 {% else %} 46 <a href="{{ sort_location }}">{{ column_location }}</a> 47 {% endif %}</td> 48 <td class="text-left">{% if sort == 'cf.type' %} 49 <a href="{{ sort_type }}" class="{{ order|lower }}">{{ column_type }}</a> 50 {% else %} 51 <a href="{{ sort_type }}">{{ column_type }}</a> 52 {% endif %}</td> 53 <td class="text-right">{% if sort == 'cf.sort_order' %} 54 <a href="{{ sort_sort_order }}" class="{{ order|lower }}">{{ column_sort_order }}</a> 55 {% else %} 56 <a href="{{ sort_sort_order }}">{{ column_sort_order }}</a> 57 {% endif %}</td> 58 <td class="text-right">{{ column_action }}</td> 59 </tr> 60 </thead> 61 <tbody> 62 {% if custom_fields %} 63 {% for custom_field in custom_fields %} 64 <tr> 65 <td class="text-center">{% if custom_field.custom_field_id in selected %} 66 <input type="checkbox" name="selected[]" value="{{ custom_field.custom_field_id }}" checked="checked" /> 67 {% else %} 68 <input type="checkbox" name="selected[]" value="{{ custom_field.custom_field_id }}" /> 69 {% endif %}</td> 70 <td class="text-left">{{ custom_field.name }}</td> 71 <td class="text-left">{{ custom_field.location }}</td> 72 <td class="text-left">{{ custom_field.type }}</td> 73 <td class="text-right">{{ custom_field.sort_order }}</td> 74 <td class="text-right"><a href="{{ custom_field.edit }}" data-toggle="tooltip" title="{{ button_edit }}" class="btn btn-primary"><i class="fa fa-pencil"></i></a></td> 75 </tr> 76 {% endfor %} 77 {% else %} 78 <tr> 79 <td class="text-center" colspan="6">{{ text_no_results }}</td> 80 </tr> 81 {% endif %} 82 </tbody> 83 </table> 84 </div> 85 </form> 86 <div class="row"> 87 <div class="col-sm-6 text-left">{{ pagination }}</div> 88 <div class="col-sm-6 text-right">{{ results }}</div> 89 </div> 90 </div> 91 </div> 92 </div> 93 </div> 94 {{ footer }}