Some more layout cleanups.

agranig/1_0_subfix
Andreas Granig 13 years ago
parent 8eabbecde9
commit baa377581e

@ -10,8 +10,8 @@ has_field 'id' => (
required => 1, required => 1,
template => 'share/templates/helpers/datatables_field.tt', template => 'share/templates/helpers/datatables_field.tt',
ajax_src => '/domain/ajax', ajax_src => '/domain/ajax',
table_titles => ['#', 'Domain'], table_titles => ['Domain'],
table_fields => ['id', 'domain'], table_fields => ['domain'],
); );
has_field 'create' => ( has_field 'create' => (

@ -17,6 +17,7 @@ has_field 'id' => (
has_field 'domain' => ( has_field 'domain' => (
type => 'Text', type => 'Text',
required => 1, required => 1,
label => 'SIP Domain',
); );
has_field 'save' => ( has_field 'save' => (

@ -33,7 +33,7 @@ has_field 'e164' => (
has_field 'e164.cc' => ( has_field 'e164.cc' => (
type => 'PosInteger', type => 'PosInteger',
label => 'cc:', label => 'cc:',
element_attr => { class => ['e164_cc'] }, element_attr => { class => ['ngcp_e164_cc'] },
do_label => 0, do_label => 0,
do_wrapper => 0, do_wrapper => 0,
); );
@ -41,7 +41,7 @@ has_field 'e164.cc' => (
has_field 'e164.ac' => ( has_field 'e164.ac' => (
type => 'PosInteger', type => 'PosInteger',
label => 'ac:', label => 'ac:',
element_attr => { class => ['e164_ac'] }, element_attr => { class => ['ngcp_e164_ac'] },
do_label => 0, do_label => 0,
do_wrapper => 0, do_wrapper => 0,
); );
@ -49,7 +49,7 @@ has_field 'e164.ac' => (
has_field 'e164.sn' => ( has_field 'e164.sn' => (
type => 'PosInteger', type => 'PosInteger',
label => 'sn:', label => 'sn:',
element_attr => { class => ['e164_sn'] }, element_attr => { class => ['ngcp_e164_sn'] },
do_label => 0, do_label => 0,
do_wrapper => 0, do_wrapper => 0,
); );
@ -94,7 +94,7 @@ has_field 'save' => (
has_block 'fields' => ( has_block 'fields' => (
tag => 'div', tag => 'div',
class => [qw/modal-body/], class => [qw/modal-body/],
render_list => [qw/webusername webpassword e164 sipusername sipdomain sippassword administrative external_id/], render_list => [qw/webusername webpassword e164 sipusername sipdomain sippassword external_id administrative/ ],
); );
has_block 'actions' => ( has_block 'actions' => (

@ -22,7 +22,6 @@
<link rel="stylesheet" href="/css/ui-lightness/jquery-ui-1.8.21.custom.css"> <link rel="stylesheet" href="/css/ui-lightness/jquery-ui-1.8.21.custom.css">
<link rel="stylesheet" href="/css/application.css"> <link rel="stylesheet" href="/css/application.css">
<link rel="stylesheet" href="/css/pages/pricing.css"> <link rel="stylesheet" href="/css/pages/pricing.css">
<link rel="stylesheet" href="/css/ngcp.css">
<script src="/js/libs/modernizr-2.5.3.min.js"></script> <script src="/js/libs/modernizr-2.5.3.min.js"></script>
<script src="/js/libs/jquery-1.7.2.min.js"></script> <script src="/js/libs/jquery-1.7.2.min.js"></script>

@ -14,7 +14,7 @@ div.ngcp-modal {
max-width: 816px; max-width: 816px;
width: 100%; width: 100%;
margin: -250px 0 0 -408px; margin: -250px 0 0 -408px;
top: 50%; /*top: 50%;*/
left: 50%; /* override responsive css (bootstrap-responsive.css) */ left: 50%; /* override responsive css (bootstrap-responsive.css) */
display: block; display: block;
} }
@ -191,3 +191,16 @@ div.ngcp-modal .control-group.error .dataTables_wrapper input[type="text"] {
.ngcp-quickform div.form-actions { .ngcp-quickform div.form-actions {
padding-left: 0px; padding-left: 0px;
} }
/* -------------
Various form fields
----------------*/
input.ngcp_e164_cc {
width: 4em;
}
input.ngcp_e164_ac {
width: 4em;
}
input.ngcp_e164_sn {
width: 15em;
}

@ -1,9 +0,0 @@
input.e164_cc {
width: 4em;
}
input.e164_ac {
width: 4em;
}
input.e164_sn {
width: 15em;
}
Loading…
Cancel
Save