[freeside-commits]
freeside/httemplate/edit/elements edit.html, 1.6, 1.7
Ivan,,,
ivan at wavetail.420.am
Sun Aug 6 19:44:31 PDT 2006
Update of /home/cvs/cvsroot/freeside/httemplate/edit/elements
In directory wavetail:/tmp/cvs-serv32577/httemplate/edit/elements
Modified Files:
edit.html
Log Message:
add internal user disable-ing
Index: edit.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/elements/edit.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- edit.html 12 Jul 2006 00:20:22 -0000 1.6
+++ edit.html 7 Aug 2006 02:44:29 -0000 1.7
@@ -15,7 +15,9 @@
# 'fields' => [
# 'columname',
# { 'field' => 'another_columname',
- # 'type' => 'text', #text, fixed, hidden
+ # 'type' => 'text', #text, fixed, hidden, checkbox
+ # #eventually more for <SELECT>, etc.
+ # 'value' => 'Y', #only for checkbox
# },
# ]
#
@@ -150,14 +152,17 @@
%>
</TD>
- <%
- #eventually more options for <SELECT>, etc. fields
- if ( $type eq 'fixed' ) {
- %>
+ <% if ( $type eq 'fixed' ) { %>
<TD BGCOLOR="#dddddd"><%= $f->{'value'} %></TD>
<INPUT TYPE="hidden" NAME="<%= $field %>" VALUE="<%= $f->{'value'} %>">
+ <% } elsif ( $type eq 'checkbox' ) { %>
+
+ <TD>
+ <INPUT TYPE="checkbox" NAME="<%= $field %>" VALUE="<%= $f->{'value'} %>" <%= $object->$field() eq $f->{'value'} ? ' CHECKED' : '' %>>
+ </TD>
+
<% } else { %>
<TD>
More information about the freeside-commits
mailing list