Changeset 5668

Show
Ignore:
Timestamp:
02/23/10 21:24:43 (3 years ago)
Author:
blogic
Message:

fixes typo, should be tsection and not stemplate

Location:
luci2/cbi2
Files:
2 modified
1 moved

Legend:

Unmodified
Added
Removed
  • luci2/cbi2/Makefile

    r5667 r5668  
    1111    $(CC) $(CFLAGS) -o $@ $^ 
    1212 
    13 luci: luci.c cbi.c validate.c uvl.c blob.c widget.c validator/boolean.c widgets/page.c widgets/form.c widgets/section.c widgets/option.c widgets/field.c widgets/foreach.c widgets/file.c widgets/stemplate.c  
     13luci: luci.c cbi.c validate.c uvl.c blob.c widget.c validator/boolean.c widgets/page.c widgets/form.c widgets/section.c widgets/option.c widgets/field.c widgets/foreach.c widgets/file.c widgets/tsection.c  
    1414    $(CC) $(CFLAGS) -o $@ $^ 
    1515 
  • luci2/cbi2/network.luci

    r5666 r5668  
    2020</luci:page> 
    2121 
    22 <luci:stemplate package="network" uci="interface"> 
     22<luci:tsection package="network" uci="interface"> 
    2323    <luci:title>Lan Configuration</luci:title> 
    2424    Lan Configuration description 
    2525    <luci:option uci="ipaddr">IP</luci:option> 
    2626    <luci:option uci="netmask" >Netmask</luci:option> 
    27 </luci:stemplate> 
     27</luci:tsection> 
    2828 
    29 <luci:stemplate package="dhcp" uci="leases"> 
     29<luci:tsection package="dhcp" uci="leases"> 
    3030    <luci:title>DHCP lease</luci:title> 
    3131    <luci:option uci="ipaddr">IP</luci:option> 
    3232    <luci:option uci="netmask" >Netmask</luci:option> 
    33 </luci:stemplate> 
     33</luci:tsection> 
    3434 
    3535<luci:page uci="network"> 
  • luci2/cbi2/widgets/tsection.c

    r5666 r5668  
    11#include "../cbi.h" 
    22 
    3 int stemplate_init(struct cbi_ctx *ctx, struct cbi_element *e) 
     3int tsection_init(struct cbi_ctx *ctx, struct cbi_element *e) 
    44{ 
    55    return 0; 
    66} 
    77 
    8 struct cbi_widget_property stemplate_props[] = { 
     8struct cbi_widget_property tsection_props[] = { 
    99    { "uci", PROP_REQUIRED }, 
    1010    { "id", PROP_REQUIRED }, 
     
    1313}; 
    1414 
    15 struct cbi_widget stemplate = { 
     15struct cbi_widget tsection = { 
    1616    .caps = CAP_UCI | CAP_SECTION | CAP_TEMPLATE, 
    1717    .parent_caps = CAP_PACKAGE, 
    18     .props = stemplate_props, 
    19     .init = stemplate_init, 
     18    .props = tsection_props, 
     19    .init = tsection_init, 
    2020}; 
    2121 
    22 WIDGET(stemplate) 
     22WIDGET(tsection)