create button optional

agranig/1_0_subfix
Lars Dieckow 13 years ago
parent d37314bfc1
commit c86e11c596

@ -1,6 +1,7 @@
[% META title = 'Administrators' -%]
[%
helper.name = 'Administrator';
helper.show_create_button = 1;
helper.data = admins;
helper.messages = messages;
helper.column_titles = [ '#', 'Login', 'Master', 'Active', 'Read only', 'Show passwords', 'Call data', 'Lawful intercept' ];

@ -2,6 +2,7 @@
[%
helper.name = 'Billing Fees';
helper.show_create_button = 1;
helper.messages = messages;
helper.column_titles = [ '#', 'Source', 'Destination', 'Direction', 'Zone' ];
helper.column_fields = [ 'id', 'source', 'destination', 'direction', 'zone' ];

@ -1,6 +1,7 @@
[% META title = 'Billing Profiles' -%]
[%
helper.name = 'Billing Profiles';
helper.show_create_button = 1;
helper.messages = messages;
helper.column_titles = [ '#', 'Profile' ];
helper.column_fields = [ 'id', 'name' ];

@ -53,6 +53,7 @@
[%
helper.name = 'Date Definitions';
helper.show_create_button = 1;
helper.column_titles = [ '#', 'Date', 'Start-End' ];
helper.column_fields = [ 'id', 'date', 'startend' ];

@ -1,6 +1,7 @@
[% META title = 'Billing Zones' -%]
[%
helper.name = 'Billing Zones';
helper.show_create_button = 1;
helper.messages = messages;
helper.column_titles = [ '#', 'Zone', 'Zone Detail' ];
helper.column_fields = [ 'id', 'zone', 'detail' ];

@ -1,6 +1,7 @@
[% META title = 'Contacts' -%]
[%
helper.name = 'Contact';
helper.show_create_button = 1;
helper.data = contacts;
helper.messages = messages;
helper.column_titles = [ '#', 'First Name', 'Last Name', 'Email' ];

@ -1,6 +1,7 @@
[% META title = 'Contracts' -%]
[%
helper.name = 'Contract';
helper.show_create_button = 1;
helper.data = contracts;
helper.messages = messages;
helper.column_titles = [ '#', 'Contact #', 'Billing Profile #', 'Status' ];

@ -1,6 +1,7 @@
[% META title = 'Domains' -%]
[%
helper.name = 'Domain';
helper.show_create_button = 1;
helper.data = domains;
helper.messages = messages;
helper.column_titles = [ '#', 'Domain' ];

@ -2,6 +2,7 @@
[%
helper.name = 'Domain';
helper.show_create_button = 1;
helper.messages = messages;
helper.edit_preference = edit_preference;

@ -56,7 +56,7 @@ $(document).ready(function() {
} );
</script>
[% IF helper.show_create_button %]
<div class="row">
[% FOR button IN helper.top_buttons -%]
<span>
@ -64,6 +64,7 @@ $(document).ready(function() {
</span>
[% END -%]
</div>
[% END %]
[% IF helper.messages -%]
<div class="row">
[% FOREACH m IN helper.messages -%]

@ -1,6 +1,7 @@
[% META title = 'NCOS Levels' -%]
[%
helper.name = 'NCOS Levels';
helper.show_create_button = 1;
helper.messages = messages;
helper.column_titles = [ '#', 'Level', 'Mode', 'Description' ];
helper.column_fields = [ 'id', 'level', 'mode', 'description' ];

@ -2,6 +2,7 @@
[%
helper.name = 'Number Pattern';
helper.show_create_button = 1;
helper.messages = messages;
helper.column_titles = [ '#', 'Pattern', 'Description' ];
helper.column_fields = [ 'id', 'pattern', 'description' ];

@ -1,6 +1,7 @@
[% META title = 'SIP Peering Groups' -%]
[%
helper.name = 'SIP Peering Groups';
helper.show_create_button = 1;
helper.messages = messages;
helper.column_titles = [ '#', 'Name', 'Priority', 'Description', 'Contract #' ];
helper.column_fields = [ 'id', 'name', 'priority', 'description', 'peering_contract_id' ];

@ -1,6 +1,7 @@
[% site_config.title = 'SIP Peering Group ' _ group.name -%]
[%
helper.name = 'Peering Servers';
helper.show_create_button = 1;
helper.messages = messages;
helper.column_titles = [ '#', 'Name', 'IP Address', 'Hostname', 'Port', 'Protocol', 'Weight' ];
helper.column_fields = [ 'id', 'name', 'ip', 'host', 'port', 'transport', 'weight' ];
@ -26,6 +27,7 @@
[%
helper.name = 'Peering Rules';
helper.show_create_button = 1;
helper.messages = rules_messages;
helper.column_titles = [ '#', 'Callee Prefix', 'Callee Pattern', 'Caller Pattern', 'Description' ];
helper.column_fields = [ 'id', 'callee_prefix', 'callee_pattern', 'caller_pattern', 'description' ];

@ -1,6 +1,7 @@
[% META title = 'Resellers' -%]
[%
helper.name = 'Resellers';
helper.show_create_button = 1;
helper.data = resellers;
helper.messages = messages;
helper.column_titles = [ '#', 'Contract #', 'Name', 'Status' ];

@ -1,6 +1,7 @@
[% META title = 'Rewrite Rule Sets' -%]
[%
helper.name = 'Rewrite Rule Sets';
helper.show_create_button = 1;
helper.messages = messages;
helper.column_titles = [ '#', 'Name', 'Description' ];
helper.column_fields = [ 'id', 'name', 'description' ];

Loading…
Cancel
Save