Bigtop

 view release on metacpan or  search on metacpan

t/tentmaker/ajax_09/billing_initial  view on Meta::CPAN

            is datetime;
        }
        foreign_display `%number`;
        field company {
            is int4;
            label Company;
            refers_to company;
            html_form_type select;
        }
        field customer {
            is int4;
            label Customer;
            refers_to customer;
            html_form_type select;
        }
        field status {
            is int4;
            label Status;
            html_form_type select;
            html_form_options
                `Working on it` => 1,
                Billed => 2,
                Paid => 3;
        }
        field sent {
            is date;
            label Sent;
            html_form_type text;
            html_form_optional 1;
            date_select_text `Select Date`;
        }
        field paid {
            is date;
            label Paid;
            html_form_type text;
            html_form_optional 1;
            date_select_text `Select Date`;
        }
        field notes {
            is varchar;
            label Notes;
            html_form_type text;
            html_form_optional 1;
        }
    }
    controller Invoice is AutoCRUD {
        controls_table invoice;
        rel_location invoice;
        text_description invoice;
        page_link_label Invoice;
        method do_main is main_listing {
            cols number, description;
            header_options Add;
            row_options Edit, Delete, Tasks => `"/task/main/$id"`;
            title Invoice;
        }
        method form is AutoCRUD_form {
            all_fields_but id, created, modified;
            extra_keys
                legend => `$self->path_info =~ /edit/i ? 'Edit' : 'Add'`,
                javascript => `$self->calendar_month_js( 'invoice' )`;
            form_name invoice;
        }
        uses Gantry::Plugins::Calendar;
    }
    table task {
        field id {
            is int4, primary_key, auto;
        }
        field name {
            is varchar;
            label Name;
            html_form_type text;
        }
        field description {
            is varchar;
            label Description;
            html_form_type text;
        }
        field created {
            is datetime;
        }
        field modified {
            is datetime;
        }
        foreign_display `%name`;
        field invoice {
            is int4;
            label Invoice;
            refers_to invoice;
            html_form_type select;
        }
        field due_date {
            is date;
            label `Due Date`;
            html_form_type text;
            date_select_text `Select Date`;
        }
        field hours {
            is int4;
            label Hours;
            html_form_type text;
        }
        field charge_per_hour {
            is int4;
            label `Charge Per Hour`;
            html_form_type text;
        }
        field notes {
            is varchar;
            label Notes;
            html_form_type text;
            html_form_optional 1;
        }
    }
    controller Task is AutoCRUD {
        controls_table task;
        rel_location task;
        text_description task;
        page_link_label Task;
        method do_main is main_listing {
            cols name, description;
            header_options Add;
            row_options Edit, Delete;
            title Task;
            limit_by invoice;
        }
        method form is AutoCRUD_form {
            all_fields_but id, created, modified;
            extra_keys
                legend => `$self->path_info =~ /edit/i ? 'Edit' : 'Add'`,
                javascript => `$self->calendar_month_js( 'task' )`;
            form_name task;
        }
        uses Gantry::Plugins::Calendar;
    }
}


    </div>
    </fieldset>

  </div>

  <div
    
        class='tab'
    
    id='tab-app-body'>
    

<div class='app_block_new' >
    <fieldset>
    <legend>Create</legend>
    <table>
        <tr>
            <td> Name: </td>
            <td>
                <input type='text' id='new_app_block_name'/>
            </td>
            <td> Type: </td>
            <td>
                <select id='new_app_block_type'>
                    <option value='table'>      Table      </option>
                    <option value='controller'> Controller </option>
                    <option value='base_controller'> Base Controller </option>
                    <option value='literal'>    Literal    </option>
                    <option value='join_table'> Join Table </option>
                    <option value='schema'>     Schema (Postgres only)</option>
                    <option value='sequence'>   Sequence   </option>
                </select>
            </td>
            <td colspan='2'>
                <button type='button'
                        name='new_app_block_create'
                        onclick='javascript:create_app_block()'
                > Create </button>
            </td>
        </tr>
    </table>
    </fieldset>
</div>
<br/>


  
  <div class='app_block_controller'
       id='div_ident_3'>
      
      
        
          

t/tentmaker/ajax_09/billing_initial  view on Meta::CPAN

      <table id='ident_49::extra_keys_input_table'>
        <tr><th> key </th>
            <th> value
                 
            </th></tr>
    
      
      
      
        <tr><td>
                <input
                    type='text'
                    name='ident_49::extra_keys_key'
                    value="legend"
                    class='urgency_0'
                    onblur='javascript:update_pairs(
                        "method_statement_pair",
                        "ident_49::extra_keys",
                        1,
                        this
                    )'
                />
            </td>
            <td>
                <input
                    type='text'
                    name='ident_49::extra_keys_value'
                    value="$self->path_info =~ /edit/i ? 'Edit' : 'Add'"
                    class='urgency_0'
                    onblur='javascript:update_pairs(
                        "method_statement_pair",
                        "ident_49::extra_keys",
                        1,
                        this
                    )'
                />
            </td>
        </tr>
    
      
      
      
        <tr><td>
                <input
                    type='text'
                    name='ident_49::extra_keys_key'
                    value="javascript"
                    class='urgency_0'
                    onblur='javascript:update_pairs(
                        "method_statement_pair",
                        "ident_49::extra_keys",
                        1,
                        this
                    )'
                />
            </td>
            <td>
                <input
                    type='text'
                    name='ident_49::extra_keys_value'
                    value="$self->calendar_month_js( 'invoice' )"
                    class='urgency_0'
                    onblur='javascript:update_pairs(
                        "method_statement_pair",
                        "ident_49::extra_keys",
                        1,
                        this
                    )'
                />
            </td>
        </tr>
    
            <tr><td>
                <input
                    type='text'
                    name='ident_49::extra_keys_key'
                    class='urgency_0'
                    onblur='javascript:update_pairs(
                        "method_statement_pair",
                        "ident_49::extra_keys",
                        1,
                        this
                    )'
                />
            </td>
            <td>
                <input
                    type='text'
                    name='ident_49::extra_keys_value'
                    class='urgency_0'
                    onblur='javascript:update_pairs(
                        "method_statement_pair",
                        "ident_49::extra_keys",
                        1,
                        this
                    )'
                />
            </td>
        </tr>
      
      </table>


        </td>
        <td>
            Extra keys to put in the form method hash
        </td>
    </tr>
  
    
    
    <tr>
        <td> form_name </td>
        <td>

            
            
<!-- values are double qouted to prevent clashes with single
     quotes in the values -->


t/tentmaker/ajax_09/billing_initial  view on Meta::CPAN

      <table id='ident_63::extra_keys_input_table'>
        <tr><th> key </th>
            <th> value
                 
            </th></tr>
    
      
      
      
        <tr><td>
                <input
                    type='text'
                    name='ident_63::extra_keys_key'
                    value="legend"
                    class='urgency_0'
                    onblur='javascript:update_pairs(
                        "method_statement_pair",
                        "ident_63::extra_keys",
                        1,
                        this
                    )'
                />
            </td>
            <td>
                <input
                    type='text'
                    name='ident_63::extra_keys_value'
                    value="$self->path_info =~ /edit/i ? 'Edit' : 'Add'"
                    class='urgency_0'
                    onblur='javascript:update_pairs(
                        "method_statement_pair",
                        "ident_63::extra_keys",
                        1,
                        this
                    )'
                />
            </td>
        </tr>
    
      
      
      
        <tr><td>
                <input
                    type='text'
                    name='ident_63::extra_keys_key'
                    value="javascript"
                    class='urgency_0'
                    onblur='javascript:update_pairs(
                        "method_statement_pair",
                        "ident_63::extra_keys",
                        1,
                        this
                    )'
                />
            </td>
            <td>
                <input
                    type='text'
                    name='ident_63::extra_keys_value'
                    value="$self->calendar_month_js( 'task' )"
                    class='urgency_0'
                    onblur='javascript:update_pairs(
                        "method_statement_pair",
                        "ident_63::extra_keys",
                        1,
                        this
                    )'
                />
            </td>
        </tr>
    
            <tr><td>
                <input
                    type='text'
                    name='ident_63::extra_keys_key'
                    class='urgency_0'
                    onblur='javascript:update_pairs(
                        "method_statement_pair",
                        "ident_63::extra_keys",
                        1,
                        this
                    )'
                />
            </td>
            <td>
                <input
                    type='text'
                    name='ident_63::extra_keys_value'
                    class='urgency_0'
                    onblur='javascript:update_pairs(
                        "method_statement_pair",
                        "ident_63::extra_keys",
                        1,
                        this
                    )'
                />
            </td>
        </tr>
      
      </table>


        </td>
        <td>
            Extra keys to put in the form method hash
        </td>
    </tr>
  
    
    
    <tr>
        <td> form_name </td>
        <td>

            
            
<!-- values are double qouted to prevent clashes with single
     quotes in the values -->




( run in 0.754 second using v1.01-cache-2.11-cpan-5735350b133 )