ebay_profile_list.twig (3596B)
1 {{ header }}{{ column_left }} 2 <div id="content"> 3 <div class="page-header"> 4 <div class="container-fluid"> 5 <h1>{{ heading_title }}</h1> 6 <ul class="breadcrumb"> 7 {% for breadcrumb in breadcrumbs %} 8 <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li> 9 {% endfor %} 10 </ul> 11 </div> 12 </div> 13 <div class="container-fluid"> 14 {% if error_warning %} 15 <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}</div> 16 {% endif %} 17 {% if success %} 18 <div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> {{ success }}</div> 19 {% endif %} 20 </div> 21 <div class="container-fluid"> 22 <div class="panel panel-default"> 23 <div class="panel-heading"> 24 <h3 class="panel-title"><i class="fa fa-list"></i> {{ text_list }}</h3> 25 </div> 26 <div class="panel-body"> 27 <div class="well"> 28 <div class="row"> 29 <div class="col-sm-12"> 30 <form action="{{ add }}" method="post" id="add-profile-form" class="form-inline pull-right" role="form"> 31 <input type="hidden" name="step1" value="1" /> 32 <div class="form-group"> 33 <div class="input-group"> 34 <select name="type"class="form-control"> 35 {% for key, val in types %} 36 37 38 <option value="{{ key }}">{{ val.name }}</option> 39 {% endfor %} 40 </select> 41 <a data-toggle="tooltip" title="{{ button_add }}" class="btn btn-primary input-group-addon" onclick="$('#add-profile-form').submit();"><i class="fa fa-plus-circle"></i> {{ button_add }}</a> 42 </div> 43 </div> 44 </form> 45 </div> 46 </div> 47 </div> 48 <table class="table table-bordered table-hover"> 49 <thead> 50 <tr> 51 <td class="text-left">{{ text_profile_name }}</td> 52 <td class="text-left">{{ text_profile_type }}</td> 53 <td class="text-left">{{ text_profile_desc }}</td> 54 <td class="text-left"></td> 55 </tr> 56 </thead> 57 <tbody> 58 {% if profiles %} 59 {% for profile in profiles %} 60 <tr> 61 <td class="text-left">{% if profile.default == 1 %} <strong>[{{ text_profile_default }}]</strong> {% endif %} {{ profile.name }}</td> 62 <td class="text-left">{{ types[profile.type].name }}</td> 63 <td class="text-left">{{ profile.description }}</td> 64 <td class="text-right"> 65 <a href="{{ profile.link_edit }}" data-toggle="tooltip" title="{{ button_edit }}" class="btn btn-primary"><i class="fa fa-pencil"></i></a> 66 <a href="{{ profile.link_delete }}" data-toggle="tooltip" title="{{ button_delete }}" class="btn btn-danger profile-delete"><i class="fa fa-minus-circle"></i></a> 67 </td> 68 </tr> 69 {% endfor %} 70 {% else %} 71 <tr> 72 <td class="text-center" colspan="4">{{ text_no_results }}</td> 73 </tr> 74 {% endif %} 75 </tbody> 76 </table> 77 </div> 78 </div> 79 </div> 80 </div> 81 <script type="text/javascript"><!-- 82 $(document).ready(function () { 83 $('a.profileDelete').click(function (event) { 84 event.preventDefault(); 85 var url = $(this).attr('href'); 86 var confirm_box = confirm('{{ text_confirm_delete }}'); 87 if (confirm_box) { 88 window.location = url; 89 } 90 }); 91 }); 92 //--></script> 93 {{ footer }}