Example #1
0
             '1': {
                 'floodtime': 1,
                 'flooddate': 9,
                 'repairtime_roads': "0.25",
                 'repairtime_buildings': "1",
                 },
             '2': {
                 'floodtime': 1,
                 'flooddate': 9,
                 'repairtime_roads': "0.25",
                 'repairtime_buildings': "1",
                 }
             },
         condition_dict={
             # Step 1, enable for calc_type 0
             '1': views.show_form_condition([0]),
             # Step 2, enable for calc_type 1, etc
             '2': views.show_form_condition([1]),
             '3': views.show_form_condition([2]),
             '4': views.show_form_condition([3]),
             '5': views.show_form_condition([4]),
             '6': views.show_form_condition([5]),
             '7': views.show_form_condition([6]),
             # Check zipfile and show results
             '8': views.show_form_condition([2, 3, 4, 5]),
             '9': views.show_form_condition([6]),  # Batenkaart files
             '10': views.show_form_condition([7]),  # Batch
             }
         ),
     name='lizard_damage_form'
 ),
Example #2
0
             '1': {
                 'floodtime': 1,
                 'flooddate': 9,
                 'repairtime_roads': "0.25",
                 'repairtime_buildings': "1",
                 },
             '2': {
                 'floodtime': 1,
                 'flooddate': 9,
                 'repairtime_roads': "0.25",
                 'repairtime_buildings': "1",
                 }
             },
         condition_dict={
             # '0': views.show_form_condition,
             '1': views.show_form_condition([0]),  # Step 1, enable for calc_type 0
             '2': views.show_form_condition([1]),  # Step 2, enable for calc_type 1, etc
             '3': views.show_form_condition([2]),
             '4': views.show_form_condition([3]),
             '5': views.show_form_condition([4]),
             '6': views.show_form_condition([5]),
             '7': views.show_form_condition([6]),
             '8': views.show_form_condition([2,3,4,5]),  # Check zipfile and show results
             '9': views.show_form_condition([6]),  # Batenkaart files
             }
         ),
     name='lizard_damage_form'
 ),
 url(r'^disclaimer$',
     views.Disclaimer.as_view(template_name="lizard_damage/disclaimer.html"),
     name='lizard_damage_disclaimer'