Skip to content

Commit

Permalink
update form
Browse files Browse the repository at this point in the history
  • Loading branch information
odenypeter committed Sep 16, 2019
1 parent eab5243 commit 9240479
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 80 deletions.
78 changes: 0 additions & 78 deletions formlibrary/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,84 +121,6 @@ def __init__(self, *args, **kwargs):
self.helper.error_text_inline = True
self.helper.help_text_inline = True
self.helper.html5_required = True
# self.helper.layout = Layout(
# 'distribution_name',
# Row(
# Column('program', css_class='form-group col-md-6 mb-0'),
# Column('initiation', css_class='form-group col-md-6 mb-0'),
# css_class='form-row'
# ),
# Row(
# Column('office_code', css_class='form-group col-md-6 mb-0'),
# Column('province', css_class='form-group col-md-6 mb-0'),
# css_class='form-row'
# ),
# Row(
# Column('distribution_implementer', css_class='form-group col-md-6 mb-0'),
# Column('distribution_location', css_class='form-group col-md-6 mb-0'),
# css_class='form-row'
# ),
# Row(
# Column('input_type_distributed', css_class='form-group col-md-6 mb-0'),
# Column('total_beneficiaries_received_input', css_class='form-group col-md-6 mb-0'),
# css_class='form-row'
# ),
# Row(
# Column('distribution_indicator', css_class='form-group col-md-6 mb-0'),
# Column('reporting_period', css_class='form-group col-md-6 mb-0'),
# css_class='form-row'
# ),
# Row(
# Column('distributor_name_and_affiliation', css_class='form-group col-md-6 mb-0'),
# Column('distributor_contact_number', css_class='form-group col-md-6 mb-0'),
# css_class='form-row'
# ),
# Row(
# Column('form_filled_by', css_class='form-group col-md-4 mb-0'),
# Column('form_filled_by_position', css_class='form-group col-md-4 mb-0'),
# Column('form_filled_by_contact_num', css_class='form-group col-md-4 mb-0'),
# css_class='form-row'
# ),
# Row(
# Column('form_verified_by', css_class='form-group col-md-4 mb-0'),
# Column('form_verified_by_position', css_class='form-group col-md-4 mb-0'),
# Column('form_verified_by_contact_num', css_class='form-group col-md-4 mb-0'),
# css_class='form-row'
# ),
# Row(
# Column('total_received_input', css_class='form-group col-md-4 mb-0'),
# Column('total_male', css_class='form-group col-md-4 mb-0'),
# Column('total_female', css_class='form-group col-md-4 mb-0'),
# css_class='form-row'
# ),
# Row(
# Column('total_age_0_14_male', css_class='form-group col-md-6 mb-0'),
# Column('total_age_0_14_female', css_class='form-group col-md-6 mb-0'),
# css_class='form-row'
# ),
# Row(
# Column('total_age_15_24_male', css_class='form-group col-md-6 mb-0'),
# Column('total_age_15_24_female', css_class='form-group col-md-6 mb-0'),
# css_class='form-row'
# ),
# Row(
# Column('total_age_25_59_male', css_class='form-group col-md-6 mb-0'),
# Column('total_age_25_59_female', css_class='form-group col-md-6 mb-0'),
# css_class='form-row'
# ),
# # Row(
# # Column('total_age_25_59_male', css_class='form-group col-md-6 mb-0'),
# # Column('total_age_25_59_female', css_class='form-group col-md-6 mb-0'),
# # css_class='form-row'
# # ),
# Row(
# Column('start_date', css_class='form-group col-md-3 mb-0'),
# Column('end_date', css_class='form-group col-md-3 mb-0'),
# Column('form_filled_date', css_class='form-group col-md-3 mb-0'),
# Column('form_verified_date', css_class='form-group col-md-3 mb-0'),
# css_class='form-row'
# )
# )

super(DistributionForm, self).__init__(*args, **kwargs)

Expand Down
5 changes: 3 additions & 2 deletions static/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,9 @@ select[readonly].select2-hidden-accessible+.select2-container .select2-selection
.nav-tabs>li>a {
color: #737581;
/* padding-left: 0px; */
/* margin-right: 4px; */
margin-right: 0px;
margin-left: 0px;
border-radius: 0px;
}

.nav-tabs>li.active>a,
Expand All @@ -914,6 +916,5 @@ select[readonly].select2-hidden-accessible+.select2-container .select2-selection
cursor: default;
background-color: #fff;
/* border: transparent; */
border-radius: 0px;
border-top: 2px solid #25CED1;
}

0 comments on commit 9240479

Please sign in to comment.