Getting closer to a first concept of handling resellers.agranig/1_0_subfix
parent
b87c9ea71c
commit
a32be4d6f7
@ -1,44 +1,48 @@
|
||||
[% META title = 'Resellers' -%]
|
||||
<div class="row">
|
||||
[% UNLESS edit.defined -%]
|
||||
<a class="btn btn-primary btn-large" data-toggle="modal" href="#mod_create" ><i class="icon-star"></i> Create Reseller</a>
|
||||
<a href="#" class="btn btn-primary btn-large"><i class="icon-search"></i> Search Reseller</a>
|
||||
[% ELSE -%]
|
||||
<a href="[% c.uri_for_action('/reseller/reseller') %]" class="btn btn-primary btn-large"><i class="icon-remove"></i> Cancel Edit</a>
|
||||
[% END -%]
|
||||
</div>
|
||||
<div class="row">
|
||||
<table class="table table-bordered table-striped table-highlight table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span2">#</th>
|
||||
<th>#</th>
|
||||
<th>Name</th>
|
||||
<th>Contract #</th>
|
||||
<th>Status</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
[% FOREACH r IN resellers -%]
|
||||
<tr>
|
||||
[% IF r.id == edit.id -%]
|
||||
[% # form.render %]
|
||||
[% ELSE -%]
|
||||
<tr class="sw_action_row">
|
||||
<td>[% r.id %]</td>
|
||||
<td>[% r.name %]</td>
|
||||
<td>[% r.contract_id %]</td>
|
||||
<td>
|
||||
<span>[% r.status %]</span>
|
||||
[% UNLESS edit.defined -%]
|
||||
<div style="float:right">
|
||||
<td>[% r.status %]</td>
|
||||
<td class="span3">
|
||||
<div class="sw_actions pull-right">
|
||||
<a class="btn btn-small btn-primary" href="[% c.uri_for_action('/reseller/edit', r.id) %]"><i class="icon-edit" style="line-height:1em;margin-top:2px"></i> Edit</a>
|
||||
<a class="btn btn-small btn-secondary" href="[% c.uri_for_action('/reseller/delete', r.id) %]" data-confirm="Delete"><i class="icon-trash" style="line-height:1em;margin-top:2px"></i> Delete</a>
|
||||
</div>
|
||||
[% END -%]
|
||||
</td>
|
||||
[% END -%]
|
||||
</tr>
|
||||
[% END -%]
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
[% IF edit.defined -%]
|
||||
<div id="mod_edit" class="modal fade hide" style="display:block">
|
||||
<div class="modal-header"><h3>Edit Reseller</h3></div>
|
||||
[% form.render %]
|
||||
</div>
|
||||
<script>
|
||||
$(function () {
|
||||
$('#mod_edit').modal({keyboard: false, backdrop: 'static'});
|
||||
});
|
||||
</script>
|
||||
[% END -%]
|
||||
|
||||
[% # vim: set tabstop=4 syntax=html expandtab: -%]
|
||||
|
Loading…
Reference in new issue